[2024-12-24 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:00:06 [end_date_ymd] => 2024-12-24 00:00:06 [RateCDR] => 1 ) [2024-12-24 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:00:06' and `end` < '2024-12-24 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:00:20] Production.INFO: count ==677 [2024-12-24 00:00:20] Production.ERROR: pbx CDR StartTime 2024-12-23 21:00:06 - End Time 2024-12-24 00:00:06 [2024-12-24 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088363', 'tblTempUsageDetail_20' ) start [2024-12-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088363', 'tblTempUsageDetail_20' ) end [2024-12-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088363', 'tblTempVendorCDR_20' ) start [2024-12-24 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088363', 'tblTempVendorCDR_20' ) end [2024-12-24 00:00:20] Production.INFO: ProcessCDR(1,14088363,1,1,2) [2024-12-24 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088363', 'tblTempUsageDetail_20' ) start [2024-12-24 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088363', 'tblTempUsageDetail_20' ) end [2024-12-24 00:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:00:26] Production.INFO: ==18263== Releasing lock... [2024-12-24 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:00:26] Production.INFO: 33.75 MB #Memory Used# [2024-12-24 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:01:05 [end_date_ymd] => 2024-12-24 00:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:01:17] Production.INFO: count ==667 [2024-12-24 00:01:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:01:05 - End Time 2024-12-24 00:01:05 [2024-12-24 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088368', 'tblTempUsageDetail_20' ) start [2024-12-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088368', 'tblTempUsageDetail_20' ) end [2024-12-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088368', 'tblTempVendorCDR_20' ) start [2024-12-24 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088368', 'tblTempVendorCDR_20' ) end [2024-12-24 00:01:17] Production.INFO: ProcessCDR(1,14088368,1,1,2) [2024-12-24 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088368', 'tblTempUsageDetail_20' ) start [2024-12-24 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088368', 'tblTempUsageDetail_20' ) end [2024-12-24 00:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:01:20] Production.INFO: ==18359== Releasing lock... [2024-12-24 00:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:01:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-24 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:02:05 [end_date_ymd] => 2024-12-24 00:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:02:17] Production.INFO: count ==119 [2024-12-24 00:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:02:05 - End Time 2024-12-24 00:02:05 [2024-12-24 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088373', 'tblTempUsageDetail_20' ) start [2024-12-24 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088373', 'tblTempUsageDetail_20' ) end [2024-12-24 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088373', 'tblTempVendorCDR_20' ) start [2024-12-24 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088373', 'tblTempVendorCDR_20' ) end [2024-12-24 00:02:17] Production.INFO: ProcessCDR(1,14088373,1,1,2) [2024-12-24 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088373', 'tblTempUsageDetail_20' ) start [2024-12-24 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088373', 'tblTempUsageDetail_20' ) end [2024-12-24 00:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:02:20] Production.INFO: ==18432== Releasing lock... [2024-12-24 00:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:02:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:03:04 [end_date_ymd] => 2024-12-24 00:03:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:03:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:03:17] Production.INFO: count ==119 [2024-12-24 00:03:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:03:04 - End Time 2024-12-24 00:03:04 [2024-12-24 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088378', 'tblTempUsageDetail_20' ) start [2024-12-24 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088378', 'tblTempUsageDetail_20' ) end [2024-12-24 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088378', 'tblTempVendorCDR_20' ) start [2024-12-24 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088378', 'tblTempVendorCDR_20' ) end [2024-12-24 00:03:17] Production.INFO: ProcessCDR(1,14088378,1,1,2) [2024-12-24 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088378', 'tblTempUsageDetail_20' ) start [2024-12-24 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088378', 'tblTempUsageDetail_20' ) end [2024-12-24 00:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:03:20] Production.INFO: ==18500== Releasing lock... [2024-12-24 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:03:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:04:05 [end_date_ymd] => 2024-12-24 00:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:04:17] Production.INFO: count ==119 [2024-12-24 00:04:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:04:05 - End Time 2024-12-24 00:04:05 [2024-12-24 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088383', 'tblTempUsageDetail_20' ) start [2024-12-24 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088383', 'tblTempUsageDetail_20' ) end [2024-12-24 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088383', 'tblTempVendorCDR_20' ) start [2024-12-24 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088383', 'tblTempVendorCDR_20' ) end [2024-12-24 00:04:17] Production.INFO: ProcessCDR(1,14088383,1,1,2) [2024-12-24 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088383', 'tblTempUsageDetail_20' ) start [2024-12-24 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088383', 'tblTempUsageDetail_20' ) end [2024-12-24 00:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:04:20] Production.INFO: ==18570== Releasing lock... [2024-12-24 00:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:04:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:05:04 [end_date_ymd] => 2024-12-24 00:05:04 [RateCDR] => 1 ) [2024-12-24 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:05:04' and `end` < '2024-12-24 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:05:16] Production.INFO: count ==118 [2024-12-24 00:05:16] Production.ERROR: pbx CDR StartTime 2024-12-23 21:05:04 - End Time 2024-12-24 00:05:04 [2024-12-24 00:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088388', 'tblTempUsageDetail_20' ) start [2024-12-24 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088388', 'tblTempUsageDetail_20' ) end [2024-12-24 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088388', 'tblTempVendorCDR_20' ) start [2024-12-24 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088388', 'tblTempVendorCDR_20' ) end [2024-12-24 00:05:16] Production.INFO: ProcessCDR(1,14088388,1,1,2) [2024-12-24 00:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088388', 'tblTempUsageDetail_20' ) start [2024-12-24 00:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088388', 'tblTempUsageDetail_20' ) end [2024-12-24 00:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:05:19] Production.INFO: ==18640== Releasing lock... [2024-12-24 00:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:05:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:06:05 [end_date_ymd] => 2024-12-24 00:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:06:17] Production.INFO: count ==118 [2024-12-24 00:06:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:06:05 - End Time 2024-12-24 00:06:05 [2024-12-24 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088393', 'tblTempUsageDetail_20' ) start [2024-12-24 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088393', 'tblTempUsageDetail_20' ) end [2024-12-24 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088393', 'tblTempVendorCDR_20' ) start [2024-12-24 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088393', 'tblTempVendorCDR_20' ) end [2024-12-24 00:06:17] Production.INFO: ProcessCDR(1,14088393,1,1,2) [2024-12-24 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088393', 'tblTempUsageDetail_20' ) start [2024-12-24 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088393', 'tblTempUsageDetail_20' ) end [2024-12-24 00:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:06:20] Production.INFO: ==18715== Releasing lock... [2024-12-24 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:06:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:07:04 [end_date_ymd] => 2024-12-24 00:07:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:07:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:07:18] Production.INFO: count ==118 [2024-12-24 00:07:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:07:04 - End Time 2024-12-24 00:07:04 [2024-12-24 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088398', 'tblTempUsageDetail_20' ) start [2024-12-24 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088398', 'tblTempUsageDetail_20' ) end [2024-12-24 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088398', 'tblTempVendorCDR_20' ) start [2024-12-24 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088398', 'tblTempVendorCDR_20' ) end [2024-12-24 00:07:18] Production.INFO: ProcessCDR(1,14088398,1,1,2) [2024-12-24 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088398', 'tblTempUsageDetail_20' ) start [2024-12-24 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088398', 'tblTempUsageDetail_20' ) end [2024-12-24 00:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:07:21] Production.INFO: ==18789== Releasing lock... [2024-12-24 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:07:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:08:05 [end_date_ymd] => 2024-12-24 00:08:05 [RateCDR] => 1 ) [2024-12-24 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:08:05' and `end` < '2024-12-24 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:08:17] Production.INFO: count ==117 [2024-12-24 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:08:05 - End Time 2024-12-24 00:08:05 [2024-12-24 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088403', 'tblTempUsageDetail_20' ) start [2024-12-24 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088403', 'tblTempUsageDetail_20' ) end [2024-12-24 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088403', 'tblTempVendorCDR_20' ) start [2024-12-24 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088403', 'tblTempVendorCDR_20' ) end [2024-12-24 00:08:17] Production.INFO: ProcessCDR(1,14088403,1,1,2) [2024-12-24 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088403', 'tblTempUsageDetail_20' ) start [2024-12-24 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088403', 'tblTempUsageDetail_20' ) end [2024-12-24 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:08:20] Production.INFO: ==18860== Releasing lock... [2024-12-24 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:08:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:09:04 [end_date_ymd] => 2024-12-24 00:09:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:09:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:09:17] Production.INFO: count ==116 [2024-12-24 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:09:04 - End Time 2024-12-24 00:09:04 [2024-12-24 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088408', 'tblTempUsageDetail_20' ) start [2024-12-24 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088408', 'tblTempUsageDetail_20' ) end [2024-12-24 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088408', 'tblTempVendorCDR_20' ) start [2024-12-24 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088408', 'tblTempVendorCDR_20' ) end [2024-12-24 00:09:17] Production.INFO: ProcessCDR(1,14088408,1,1,2) [2024-12-24 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088408', 'tblTempUsageDetail_20' ) start [2024-12-24 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088408', 'tblTempUsageDetail_20' ) end [2024-12-24 00:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:09:20] Production.INFO: ==18933== Releasing lock... [2024-12-24 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:09:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:10:06 [end_date_ymd] => 2024-12-24 00:10:06 [RateCDR] => 1 ) [2024-12-24 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:10:06' and `end` < '2024-12-24 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:10:18] Production.INFO: count ==124 [2024-12-24 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:10:06 - End Time 2024-12-24 00:10:06 [2024-12-24 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088414', 'tblTempUsageDetail_20' ) start [2024-12-24 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088414', 'tblTempUsageDetail_20' ) end [2024-12-24 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088414', 'tblTempVendorCDR_20' ) start [2024-12-24 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088414', 'tblTempVendorCDR_20' ) end [2024-12-24 00:10:18] Production.INFO: ProcessCDR(1,14088414,1,1,2) [2024-12-24 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088414', 'tblTempUsageDetail_20' ) start [2024-12-24 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088414', 'tblTempUsageDetail_20' ) end [2024-12-24 00:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:10:21] Production.INFO: ==19008== Releasing lock... [2024-12-24 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:10:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:11:04 [end_date_ymd] => 2024-12-24 00:11:04 [RateCDR] => 1 ) [2024-12-24 00:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:11:04' and `end` < '2024-12-24 00:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:11:17] Production.INFO: count ==126 [2024-12-24 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:11:04 - End Time 2024-12-24 00:11:04 [2024-12-24 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088419', 'tblTempUsageDetail_20' ) start [2024-12-24 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088419', 'tblTempUsageDetail_20' ) end [2024-12-24 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088419', 'tblTempVendorCDR_20' ) start [2024-12-24 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088419', 'tblTempVendorCDR_20' ) end [2024-12-24 00:11:17] Production.INFO: ProcessCDR(1,14088419,1,1,2) [2024-12-24 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088419', 'tblTempUsageDetail_20' ) start [2024-12-24 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088419', 'tblTempUsageDetail_20' ) end [2024-12-24 00:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:11:20] Production.INFO: ==19080== Releasing lock... [2024-12-24 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:11:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:12:05 [end_date_ymd] => 2024-12-24 00:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:12:18] Production.INFO: count ==126 [2024-12-24 00:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:12:05 - End Time 2024-12-24 00:12:05 [2024-12-24 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088424', 'tblTempUsageDetail_20' ) start [2024-12-24 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088424', 'tblTempUsageDetail_20' ) end [2024-12-24 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088424', 'tblTempVendorCDR_20' ) start [2024-12-24 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088424', 'tblTempVendorCDR_20' ) end [2024-12-24 00:12:18] Production.INFO: ProcessCDR(1,14088424,1,1,2) [2024-12-24 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088424', 'tblTempUsageDetail_20' ) start [2024-12-24 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088424', 'tblTempUsageDetail_20' ) end [2024-12-24 00:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:12:21] Production.INFO: ==19153== Releasing lock... [2024-12-24 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:12:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:13:04 [end_date_ymd] => 2024-12-24 00:13:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:13:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:13:17] Production.INFO: count ==126 [2024-12-24 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:13:04 - End Time 2024-12-24 00:13:04 [2024-12-24 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088429', 'tblTempUsageDetail_20' ) start [2024-12-24 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088429', 'tblTempUsageDetail_20' ) end [2024-12-24 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088429', 'tblTempVendorCDR_20' ) start [2024-12-24 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088429', 'tblTempVendorCDR_20' ) end [2024-12-24 00:13:17] Production.INFO: ProcessCDR(1,14088429,1,1,2) [2024-12-24 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088429', 'tblTempUsageDetail_20' ) start [2024-12-24 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088429', 'tblTempUsageDetail_20' ) end [2024-12-24 00:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:13:20] Production.INFO: ==19226== Releasing lock... [2024-12-24 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:13:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:14:05 [end_date_ymd] => 2024-12-24 00:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:14:17] Production.INFO: count ==122 [2024-12-24 00:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:14:05 - End Time 2024-12-24 00:14:05 [2024-12-24 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088434', 'tblTempUsageDetail_20' ) start [2024-12-24 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088434', 'tblTempUsageDetail_20' ) end [2024-12-24 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088434', 'tblTempVendorCDR_20' ) start [2024-12-24 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088434', 'tblTempVendorCDR_20' ) end [2024-12-24 00:14:17] Production.INFO: ProcessCDR(1,14088434,1,1,2) [2024-12-24 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088434', 'tblTempUsageDetail_20' ) start [2024-12-24 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088434', 'tblTempUsageDetail_20' ) end [2024-12-24 00:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:14:20] Production.INFO: ==19337== Releasing lock... [2024-12-24 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:14:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:15:05 [end_date_ymd] => 2024-12-24 00:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:15:17] Production.INFO: count ==122 [2024-12-24 00:15:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:15:05 - End Time 2024-12-24 00:15:05 [2024-12-24 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088439', 'tblTempUsageDetail_20' ) start [2024-12-24 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088439', 'tblTempUsageDetail_20' ) end [2024-12-24 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088439', 'tblTempVendorCDR_20' ) start [2024-12-24 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088439', 'tblTempVendorCDR_20' ) end [2024-12-24 00:15:17] Production.INFO: ProcessCDR(1,14088439,1,1,2) [2024-12-24 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088439', 'tblTempUsageDetail_20' ) start [2024-12-24 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088439', 'tblTempUsageDetail_20' ) end [2024-12-24 00:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:15:20] Production.INFO: ==19410== Releasing lock... [2024-12-24 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:15:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:16:04 [end_date_ymd] => 2024-12-24 00:16:04 [RateCDR] => 1 ) [2024-12-24 00:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:16:04' and `end` < '2024-12-24 00:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:16:16] Production.INFO: count ==123 [2024-12-24 00:16:16] Production.ERROR: pbx CDR StartTime 2024-12-23 21:16:04 - End Time 2024-12-24 00:16:04 [2024-12-24 00:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088444', 'tblTempUsageDetail_20' ) start [2024-12-24 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088444', 'tblTempUsageDetail_20' ) end [2024-12-24 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088444', 'tblTempVendorCDR_20' ) start [2024-12-24 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088444', 'tblTempVendorCDR_20' ) end [2024-12-24 00:16:16] Production.INFO: ProcessCDR(1,14088444,1,1,2) [2024-12-24 00:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088444', 'tblTempUsageDetail_20' ) start [2024-12-24 00:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088444', 'tblTempUsageDetail_20' ) end [2024-12-24 00:16:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:16:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:16:19] Production.INFO: ==19480== Releasing lock... [2024-12-24 00:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:16:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:17:05 [end_date_ymd] => 2024-12-24 00:17:05 [RateCDR] => 1 ) [2024-12-24 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:17:05' and `end` < '2024-12-24 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:17:17] Production.INFO: count ==124 [2024-12-24 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:17:05 - End Time 2024-12-24 00:17:05 [2024-12-24 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088449', 'tblTempUsageDetail_20' ) start [2024-12-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088449', 'tblTempUsageDetail_20' ) end [2024-12-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088449', 'tblTempVendorCDR_20' ) start [2024-12-24 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088449', 'tblTempVendorCDR_20' ) end [2024-12-24 00:17:17] Production.INFO: ProcessCDR(1,14088449,1,1,2) [2024-12-24 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088449', 'tblTempUsageDetail_20' ) start [2024-12-24 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088449', 'tblTempUsageDetail_20' ) end [2024-12-24 00:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:17:22] Production.INFO: ==19563== Releasing lock... [2024-12-24 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:17:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:18:04 [end_date_ymd] => 2024-12-24 00:18:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:18:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:18:16] Production.INFO: count ==124 [2024-12-24 00:18:16] Production.ERROR: pbx CDR StartTime 2024-12-23 21:18:04 - End Time 2024-12-24 00:18:04 [2024-12-24 00:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088454', 'tblTempUsageDetail_20' ) start [2024-12-24 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088454', 'tblTempUsageDetail_20' ) end [2024-12-24 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088454', 'tblTempVendorCDR_20' ) start [2024-12-24 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088454', 'tblTempVendorCDR_20' ) end [2024-12-24 00:18:16] Production.INFO: ProcessCDR(1,14088454,1,1,2) [2024-12-24 00:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088454', 'tblTempUsageDetail_20' ) start [2024-12-24 00:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088454', 'tblTempUsageDetail_20' ) end [2024-12-24 00:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:18:19] Production.INFO: ==19636== Releasing lock... [2024-12-24 00:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:18:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:19:05 [end_date_ymd] => 2024-12-24 00:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:19:18] Production.INFO: count ==121 [2024-12-24 00:19:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:19:05 - End Time 2024-12-24 00:19:05 [2024-12-24 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088459', 'tblTempUsageDetail_20' ) start [2024-12-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088459', 'tblTempUsageDetail_20' ) end [2024-12-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088459', 'tblTempVendorCDR_20' ) start [2024-12-24 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088459', 'tblTempVendorCDR_20' ) end [2024-12-24 00:19:18] Production.INFO: ProcessCDR(1,14088459,1,1,2) [2024-12-24 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088459', 'tblTempUsageDetail_20' ) start [2024-12-24 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088459', 'tblTempUsageDetail_20' ) end [2024-12-24 00:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:19:21] Production.INFO: ==19707== Releasing lock... [2024-12-24 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:19:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:20:06 [end_date_ymd] => 2024-12-24 00:20:06 [RateCDR] => 1 ) [2024-12-24 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:20:06' and `end` < '2024-12-24 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:20:18] Production.INFO: count ==131 [2024-12-24 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:20:06 - End Time 2024-12-24 00:20:06 [2024-12-24 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088464', 'tblTempUsageDetail_20' ) start [2024-12-24 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088464', 'tblTempUsageDetail_20' ) end [2024-12-24 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088464', 'tblTempVendorCDR_20' ) start [2024-12-24 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088464', 'tblTempVendorCDR_20' ) end [2024-12-24 00:20:18] Production.INFO: ProcessCDR(1,14088464,1,1,2) [2024-12-24 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088464', 'tblTempUsageDetail_20' ) start [2024-12-24 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088464', 'tblTempUsageDetail_20' ) end [2024-12-24 00:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:20:22] Production.INFO: ==19782== Releasing lock... [2024-12-24 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:20:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:21:05 [end_date_ymd] => 2024-12-24 00:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:21:17] Production.INFO: count ==143 [2024-12-24 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:21:05 - End Time 2024-12-24 00:21:05 [2024-12-24 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088470', 'tblTempUsageDetail_20' ) start [2024-12-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088470', 'tblTempUsageDetail_20' ) end [2024-12-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088470', 'tblTempVendorCDR_20' ) start [2024-12-24 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088470', 'tblTempVendorCDR_20' ) end [2024-12-24 00:21:17] Production.INFO: ProcessCDR(1,14088470,1,1,2) [2024-12-24 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088470', 'tblTempUsageDetail_20' ) start [2024-12-24 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088470', 'tblTempUsageDetail_20' ) end [2024-12-24 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:21:20] Production.INFO: ==19856== Releasing lock... [2024-12-24 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:21:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:22:05 [end_date_ymd] => 2024-12-24 00:22:05 [RateCDR] => 1 ) [2024-12-24 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:22:05' and `end` < '2024-12-24 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:22:18] Production.INFO: count ==143 [2024-12-24 00:22:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:22:05 - End Time 2024-12-24 00:22:05 [2024-12-24 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088475', 'tblTempUsageDetail_20' ) start [2024-12-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088475', 'tblTempUsageDetail_20' ) end [2024-12-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088475', 'tblTempVendorCDR_20' ) start [2024-12-24 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088475', 'tblTempVendorCDR_20' ) end [2024-12-24 00:22:18] Production.INFO: ProcessCDR(1,14088475,1,1,2) [2024-12-24 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088475', 'tblTempUsageDetail_20' ) start [2024-12-24 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088475', 'tblTempUsageDetail_20' ) end [2024-12-24 00:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:22:21] Production.INFO: ==19929== Releasing lock... [2024-12-24 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:22:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:23:04 [end_date_ymd] => 2024-12-24 00:23:04 [RateCDR] => 1 ) [2024-12-24 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:23:04' and `end` < '2024-12-24 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:23:17] Production.INFO: count ==143 [2024-12-24 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:23:04 - End Time 2024-12-24 00:23:04 [2024-12-24 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088480', 'tblTempUsageDetail_20' ) start [2024-12-24 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088480', 'tblTempUsageDetail_20' ) end [2024-12-24 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088480', 'tblTempVendorCDR_20' ) start [2024-12-24 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088480', 'tblTempVendorCDR_20' ) end [2024-12-24 00:23:17] Production.INFO: ProcessCDR(1,14088480,1,1,2) [2024-12-24 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088480', 'tblTempUsageDetail_20' ) start [2024-12-24 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088480', 'tblTempUsageDetail_20' ) end [2024-12-24 00:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:23:21] Production.INFO: ==20002== Releasing lock... [2024-12-24 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:23:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:24:04 [end_date_ymd] => 2024-12-24 00:24:04 [RateCDR] => 1 ) [2024-12-24 00:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:24:04' and `end` < '2024-12-24 00:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:24:17] Production.INFO: count ==147 [2024-12-24 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:24:04 - End Time 2024-12-24 00:24:04 [2024-12-24 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088485', 'tblTempUsageDetail_20' ) start [2024-12-24 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088485', 'tblTempUsageDetail_20' ) end [2024-12-24 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088485', 'tblTempVendorCDR_20' ) start [2024-12-24 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088485', 'tblTempVendorCDR_20' ) end [2024-12-24 00:24:17] Production.INFO: ProcessCDR(1,14088485,1,1,2) [2024-12-24 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088485', 'tblTempUsageDetail_20' ) start [2024-12-24 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088485', 'tblTempUsageDetail_20' ) end [2024-12-24 00:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:24:21] Production.INFO: ==20078== Releasing lock... [2024-12-24 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:24:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:25:04 [end_date_ymd] => 2024-12-24 00:25:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:25:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:25:16] Production.INFO: count ==147 [2024-12-24 00:25:16] Production.ERROR: pbx CDR StartTime 2024-12-23 21:25:04 - End Time 2024-12-24 00:25:04 [2024-12-24 00:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088490', 'tblTempUsageDetail_20' ) start [2024-12-24 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088490', 'tblTempUsageDetail_20' ) end [2024-12-24 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088490', 'tblTempVendorCDR_20' ) start [2024-12-24 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088490', 'tblTempVendorCDR_20' ) end [2024-12-24 00:25:16] Production.INFO: ProcessCDR(1,14088490,1,1,2) [2024-12-24 00:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088490', 'tblTempUsageDetail_20' ) start [2024-12-24 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088490', 'tblTempUsageDetail_20' ) end [2024-12-24 00:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:25:19] Production.INFO: ==20157== Releasing lock... [2024-12-24 00:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:25:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:26:05 [end_date_ymd] => 2024-12-24 00:26:05 [RateCDR] => 1 ) [2024-12-24 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:26:05' and `end` < '2024-12-24 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:26:17] Production.INFO: count ==145 [2024-12-24 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:26:05 - End Time 2024-12-24 00:26:05 [2024-12-24 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088495', 'tblTempUsageDetail_20' ) start [2024-12-24 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088495', 'tblTempUsageDetail_20' ) end [2024-12-24 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088495', 'tblTempVendorCDR_20' ) start [2024-12-24 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088495', 'tblTempVendorCDR_20' ) end [2024-12-24 00:26:17] Production.INFO: ProcessCDR(1,14088495,1,1,2) [2024-12-24 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088495', 'tblTempUsageDetail_20' ) start [2024-12-24 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088495', 'tblTempUsageDetail_20' ) end [2024-12-24 00:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:26:20] Production.INFO: ==20245== Releasing lock... [2024-12-24 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:26:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:27:05 [end_date_ymd] => 2024-12-24 00:27:05 [RateCDR] => 1 ) [2024-12-24 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:27:05' and `end` < '2024-12-24 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:27:18] Production.INFO: count ==145 [2024-12-24 00:27:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:27:05 - End Time 2024-12-24 00:27:05 [2024-12-24 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088500', 'tblTempUsageDetail_20' ) start [2024-12-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088500', 'tblTempUsageDetail_20' ) end [2024-12-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088500', 'tblTempVendorCDR_20' ) start [2024-12-24 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088500', 'tblTempVendorCDR_20' ) end [2024-12-24 00:27:18] Production.INFO: ProcessCDR(1,14088500,1,1,2) [2024-12-24 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088500', 'tblTempUsageDetail_20' ) start [2024-12-24 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088500', 'tblTempUsageDetail_20' ) end [2024-12-24 00:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:27:21] Production.INFO: ==20317== Releasing lock... [2024-12-24 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:27:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:28:04 [end_date_ymd] => 2024-12-24 00:28:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:28:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:28:17] Production.INFO: count ==144 [2024-12-24 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:28:04 - End Time 2024-12-24 00:28:04 [2024-12-24 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088505', 'tblTempUsageDetail_20' ) start [2024-12-24 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088505', 'tblTempUsageDetail_20' ) end [2024-12-24 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088505', 'tblTempVendorCDR_20' ) start [2024-12-24 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088505', 'tblTempVendorCDR_20' ) end [2024-12-24 00:28:17] Production.INFO: ProcessCDR(1,14088505,1,1,2) [2024-12-24 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088505', 'tblTempUsageDetail_20' ) start [2024-12-24 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088505', 'tblTempUsageDetail_20' ) end [2024-12-24 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:28:20] Production.INFO: ==20390== Releasing lock... [2024-12-24 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:28:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:29:05 [end_date_ymd] => 2024-12-24 00:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:29:17] Production.INFO: count ==144 [2024-12-24 00:29:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:29:05 - End Time 2024-12-24 00:29:05 [2024-12-24 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088510', 'tblTempUsageDetail_20' ) start [2024-12-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088510', 'tblTempUsageDetail_20' ) end [2024-12-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088510', 'tblTempVendorCDR_20' ) start [2024-12-24 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088510', 'tblTempVendorCDR_20' ) end [2024-12-24 00:29:18] Production.INFO: ProcessCDR(1,14088510,1,1,2) [2024-12-24 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088510', 'tblTempUsageDetail_20' ) start [2024-12-24 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088510', 'tblTempUsageDetail_20' ) end [2024-12-24 00:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:29:21] Production.INFO: ==20504== Releasing lock... [2024-12-24 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:29:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:30:05 [end_date_ymd] => 2024-12-24 00:30:05 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:30:05' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:30:17] Production.INFO: count ==150 [2024-12-24 00:30:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:30:05 - End Time 2024-12-24 00:30:05 [2024-12-24 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088516', 'tblTempUsageDetail_20' ) start [2024-12-24 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088516', 'tblTempUsageDetail_20' ) end [2024-12-24 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088516', 'tblTempVendorCDR_20' ) start [2024-12-24 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088516', 'tblTempVendorCDR_20' ) end [2024-12-24 00:30:17] Production.INFO: ProcessCDR(1,14088516,1,1,2) [2024-12-24 00:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088516', 'tblTempUsageDetail_20' ) start [2024-12-24 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088516', 'tblTempUsageDetail_20' ) end [2024-12-24 00:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:30:20] Production.INFO: ==20582== Releasing lock... [2024-12-24 00:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:30:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:31:04 [end_date_ymd] => 2024-12-24 00:31:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:31:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:31:17] Production.INFO: count ==168 [2024-12-24 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:31:04 - End Time 2024-12-24 00:31:04 [2024-12-24 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088521', 'tblTempUsageDetail_20' ) start [2024-12-24 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088521', 'tblTempUsageDetail_20' ) end [2024-12-24 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088521', 'tblTempVendorCDR_20' ) start [2024-12-24 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088521', 'tblTempVendorCDR_20' ) end [2024-12-24 00:31:17] Production.INFO: ProcessCDR(1,14088521,1,1,2) [2024-12-24 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088521', 'tblTempUsageDetail_20' ) start [2024-12-24 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088521', 'tblTempUsageDetail_20' ) end [2024-12-24 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:31:20] Production.INFO: ==20655== Releasing lock... [2024-12-24 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:31:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:32:05 [end_date_ymd] => 2024-12-24 00:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:32:17] Production.INFO: count ==169 [2024-12-24 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:32:05 - End Time 2024-12-24 00:32:05 [2024-12-24 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088526', 'tblTempUsageDetail_20' ) start [2024-12-24 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088526', 'tblTempUsageDetail_20' ) end [2024-12-24 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088526', 'tblTempVendorCDR_20' ) start [2024-12-24 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088526', 'tblTempVendorCDR_20' ) end [2024-12-24 00:32:17] Production.INFO: ProcessCDR(1,14088526,1,1,2) [2024-12-24 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088526', 'tblTempUsageDetail_20' ) start [2024-12-24 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088526', 'tblTempUsageDetail_20' ) end [2024-12-24 00:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:32:22] Production.INFO: ==20736== Releasing lock... [2024-12-24 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:32:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:33:05 [end_date_ymd] => 2024-12-24 00:33:05 [RateCDR] => 1 ) [2024-12-24 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:33:05' and `end` < '2024-12-24 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:33:18] Production.INFO: count ==169 [2024-12-24 00:33:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:33:05 - End Time 2024-12-24 00:33:05 [2024-12-24 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088531', 'tblTempUsageDetail_20' ) start [2024-12-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088531', 'tblTempUsageDetail_20' ) end [2024-12-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088531', 'tblTempVendorCDR_20' ) start [2024-12-24 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088531', 'tblTempVendorCDR_20' ) end [2024-12-24 00:33:18] Production.INFO: ProcessCDR(1,14088531,1,1,2) [2024-12-24 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088531', 'tblTempUsageDetail_20' ) start [2024-12-24 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088531', 'tblTempUsageDetail_20' ) end [2024-12-24 00:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:33:21] Production.INFO: ==20808== Releasing lock... [2024-12-24 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:33:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:34:05 [end_date_ymd] => 2024-12-24 00:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:34:18] Production.INFO: count ==169 [2024-12-24 00:34:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:34:05 - End Time 2024-12-24 00:34:05 [2024-12-24 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088536', 'tblTempUsageDetail_20' ) start [2024-12-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088536', 'tblTempUsageDetail_20' ) end [2024-12-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088536', 'tblTempVendorCDR_20' ) start [2024-12-24 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088536', 'tblTempVendorCDR_20' ) end [2024-12-24 00:34:18] Production.INFO: ProcessCDR(1,14088536,1,1,2) [2024-12-24 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088536', 'tblTempUsageDetail_20' ) start [2024-12-24 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088536', 'tblTempUsageDetail_20' ) end [2024-12-24 00:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:34:21] Production.INFO: ==20884== Releasing lock... [2024-12-24 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:34:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:35:04 [end_date_ymd] => 2024-12-24 00:35:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:35:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:35:17] Production.INFO: count ==169 [2024-12-24 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:35:04 - End Time 2024-12-24 00:35:04 [2024-12-24 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088541', 'tblTempUsageDetail_20' ) start [2024-12-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088541', 'tblTempUsageDetail_20' ) end [2024-12-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088541', 'tblTempVendorCDR_20' ) start [2024-12-24 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088541', 'tblTempVendorCDR_20' ) end [2024-12-24 00:35:17] Production.INFO: ProcessCDR(1,14088541,1,1,2) [2024-12-24 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088541', 'tblTempUsageDetail_20' ) start [2024-12-24 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088541', 'tblTempUsageDetail_20' ) end [2024-12-24 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:35:20] Production.INFO: ==20953== Releasing lock... [2024-12-24 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:35:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:36:05 [end_date_ymd] => 2024-12-24 00:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:36:17] Production.INFO: count ==168 [2024-12-24 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:36:05 - End Time 2024-12-24 00:36:05 [2024-12-24 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088546', 'tblTempUsageDetail_20' ) start [2024-12-24 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088546', 'tblTempUsageDetail_20' ) end [2024-12-24 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088546', 'tblTempVendorCDR_20' ) start [2024-12-24 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088546', 'tblTempVendorCDR_20' ) end [2024-12-24 00:36:17] Production.INFO: ProcessCDR(1,14088546,1,1,2) [2024-12-24 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088546', 'tblTempUsageDetail_20' ) start [2024-12-24 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088546', 'tblTempUsageDetail_20' ) end [2024-12-24 00:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:36:20] Production.INFO: ==21028== Releasing lock... [2024-12-24 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:36:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:37:04 [end_date_ymd] => 2024-12-24 00:37:04 [RateCDR] => 1 ) [2024-12-24 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:37:04' and `end` < '2024-12-24 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:37:16] Production.INFO: count ==167 [2024-12-24 00:37:16] Production.ERROR: pbx CDR StartTime 2024-12-23 21:37:04 - End Time 2024-12-24 00:37:04 [2024-12-24 00:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088551', 'tblTempUsageDetail_20' ) start [2024-12-24 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088551', 'tblTempUsageDetail_20' ) end [2024-12-24 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088551', 'tblTempVendorCDR_20' ) start [2024-12-24 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088551', 'tblTempVendorCDR_20' ) end [2024-12-24 00:37:16] Production.INFO: ProcessCDR(1,14088551,1,1,2) [2024-12-24 00:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088551', 'tblTempUsageDetail_20' ) start [2024-12-24 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088551', 'tblTempUsageDetail_20' ) end [2024-12-24 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:37:20] Production.INFO: ==21098== Releasing lock... [2024-12-24 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:37:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:38:05 [end_date_ymd] => 2024-12-24 00:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:38:17] Production.INFO: count ==166 [2024-12-24 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:38:05 - End Time 2024-12-24 00:38:05 [2024-12-24 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088556', 'tblTempUsageDetail_20' ) start [2024-12-24 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088556', 'tblTempUsageDetail_20' ) end [2024-12-24 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088556', 'tblTempVendorCDR_20' ) start [2024-12-24 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088556', 'tblTempVendorCDR_20' ) end [2024-12-24 00:38:17] Production.INFO: ProcessCDR(1,14088556,1,1,2) [2024-12-24 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088556', 'tblTempUsageDetail_20' ) start [2024-12-24 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088556', 'tblTempUsageDetail_20' ) end [2024-12-24 00:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:38:20] Production.INFO: ==21176== Releasing lock... [2024-12-24 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:38:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:39:05 [end_date_ymd] => 2024-12-24 00:39:05 [RateCDR] => 1 ) [2024-12-24 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:39:05' and `end` < '2024-12-24 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:39:18] Production.INFO: count ==166 [2024-12-24 00:39:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:39:05 - End Time 2024-12-24 00:39:05 [2024-12-24 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088561', 'tblTempUsageDetail_20' ) start [2024-12-24 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088561', 'tblTempUsageDetail_20' ) end [2024-12-24 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088561', 'tblTempVendorCDR_20' ) start [2024-12-24 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088561', 'tblTempVendorCDR_20' ) end [2024-12-24 00:39:18] Production.INFO: ProcessCDR(1,14088561,1,1,2) [2024-12-24 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088561', 'tblTempUsageDetail_20' ) start [2024-12-24 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088561', 'tblTempUsageDetail_20' ) end [2024-12-24 00:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:39:21] Production.INFO: ==21253== Releasing lock... [2024-12-24 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:39:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:40:06 [end_date_ymd] => 2024-12-24 00:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:40:18] Production.INFO: count ==174 [2024-12-24 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:40:06 - End Time 2024-12-24 00:40:06 [2024-12-24 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088567', 'tblTempUsageDetail_20' ) start [2024-12-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088567', 'tblTempUsageDetail_20' ) end [2024-12-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088567', 'tblTempVendorCDR_20' ) start [2024-12-24 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088567', 'tblTempVendorCDR_20' ) end [2024-12-24 00:40:18] Production.INFO: ProcessCDR(1,14088567,1,1,2) [2024-12-24 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088567', 'tblTempUsageDetail_20' ) start [2024-12-24 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088567', 'tblTempUsageDetail_20' ) end [2024-12-24 00:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:40:21] Production.INFO: ==21328== Releasing lock... [2024-12-24 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:40:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:41:05 [end_date_ymd] => 2024-12-24 00:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:41:17] Production.INFO: count ==177 [2024-12-24 00:41:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:41:05 - End Time 2024-12-24 00:41:05 [2024-12-24 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088572', 'tblTempUsageDetail_20' ) start [2024-12-24 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088572', 'tblTempUsageDetail_20' ) end [2024-12-24 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088572', 'tblTempVendorCDR_20' ) start [2024-12-24 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088572', 'tblTempVendorCDR_20' ) end [2024-12-24 00:41:17] Production.INFO: ProcessCDR(1,14088572,1,1,2) [2024-12-24 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088572', 'tblTempUsageDetail_20' ) start [2024-12-24 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088572', 'tblTempUsageDetail_20' ) end [2024-12-24 00:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:41:20] Production.INFO: ==21405== Releasing lock... [2024-12-24 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:41:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:42:04 [end_date_ymd] => 2024-12-24 00:42:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:42:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:42:17] Production.INFO: count ==172 [2024-12-24 00:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:42:04 - End Time 2024-12-24 00:42:04 [2024-12-24 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088577', 'tblTempUsageDetail_20' ) start [2024-12-24 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088577', 'tblTempUsageDetail_20' ) end [2024-12-24 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088577', 'tblTempVendorCDR_20' ) start [2024-12-24 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088577', 'tblTempVendorCDR_20' ) end [2024-12-24 00:42:17] Production.INFO: ProcessCDR(1,14088577,1,1,2) [2024-12-24 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088577', 'tblTempUsageDetail_20' ) start [2024-12-24 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088577', 'tblTempUsageDetail_20' ) end [2024-12-24 00:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:42:20] Production.INFO: ==21479== Releasing lock... [2024-12-24 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:42:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:43:05 [end_date_ymd] => 2024-12-24 00:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:43:17] Production.INFO: count ==171 [2024-12-24 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:43:05 - End Time 2024-12-24 00:43:05 [2024-12-24 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088582', 'tblTempUsageDetail_20' ) start [2024-12-24 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088582', 'tblTempUsageDetail_20' ) end [2024-12-24 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088582', 'tblTempVendorCDR_20' ) start [2024-12-24 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088582', 'tblTempVendorCDR_20' ) end [2024-12-24 00:43:17] Production.INFO: ProcessCDR(1,14088582,1,1,2) [2024-12-24 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088582', 'tblTempUsageDetail_20' ) start [2024-12-24 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088582', 'tblTempUsageDetail_20' ) end [2024-12-24 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:43:20] Production.INFO: ==21555== Releasing lock... [2024-12-24 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:43:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:44:04 [end_date_ymd] => 2024-12-24 00:44:04 [RateCDR] => 1 ) [2024-12-24 00:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:44:04' and `end` < '2024-12-24 00:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:44:16] Production.INFO: count ==174 [2024-12-24 00:44:16] Production.ERROR: pbx CDR StartTime 2024-12-23 21:44:04 - End Time 2024-12-24 00:44:04 [2024-12-24 00:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088587', 'tblTempUsageDetail_20' ) start [2024-12-24 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088587', 'tblTempUsageDetail_20' ) end [2024-12-24 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088587', 'tblTempVendorCDR_20' ) start [2024-12-24 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088587', 'tblTempVendorCDR_20' ) end [2024-12-24 00:44:16] Production.INFO: ProcessCDR(1,14088587,1,1,2) [2024-12-24 00:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088587', 'tblTempUsageDetail_20' ) start [2024-12-24 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088587', 'tblTempUsageDetail_20' ) end [2024-12-24 00:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:44:20] Production.INFO: ==21627== Releasing lock... [2024-12-24 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:44:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:45:05 [end_date_ymd] => 2024-12-24 00:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:45:18] Production.INFO: count ==176 [2024-12-24 00:45:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:45:05 - End Time 2024-12-24 00:45:05 [2024-12-24 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088592', 'tblTempUsageDetail_20' ) start [2024-12-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088592', 'tblTempUsageDetail_20' ) end [2024-12-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088592', 'tblTempVendorCDR_20' ) start [2024-12-24 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088592', 'tblTempVendorCDR_20' ) end [2024-12-24 00:45:18] Production.INFO: ProcessCDR(1,14088592,1,1,2) [2024-12-24 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088592', 'tblTempUsageDetail_20' ) start [2024-12-24 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088592', 'tblTempUsageDetail_20' ) end [2024-12-24 00:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:45:22] Production.INFO: ==21743== Releasing lock... [2024-12-24 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:45:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:46:04 [end_date_ymd] => 2024-12-24 00:46:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:46:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:46:18] Production.INFO: count ==176 [2024-12-24 00:46:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:46:04 - End Time 2024-12-24 00:46:04 [2024-12-24 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088597', 'tblTempUsageDetail_20' ) start [2024-12-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088597', 'tblTempUsageDetail_20' ) end [2024-12-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088597', 'tblTempVendorCDR_20' ) start [2024-12-24 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088597', 'tblTempVendorCDR_20' ) end [2024-12-24 00:46:18] Production.INFO: ProcessCDR(1,14088597,1,1,2) [2024-12-24 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088597', 'tblTempUsageDetail_20' ) start [2024-12-24 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088597', 'tblTempUsageDetail_20' ) end [2024-12-24 00:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:46:21] Production.INFO: ==21817== Releasing lock... [2024-12-24 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:46:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:47:04 [end_date_ymd] => 2024-12-24 00:47:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:47:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:47:17] Production.INFO: count ==181 [2024-12-24 00:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:47:04 - End Time 2024-12-24 00:47:04 [2024-12-24 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088602', 'tblTempUsageDetail_20' ) start [2024-12-24 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088602', 'tblTempUsageDetail_20' ) end [2024-12-24 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088602', 'tblTempVendorCDR_20' ) start [2024-12-24 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088602', 'tblTempVendorCDR_20' ) end [2024-12-24 00:47:17] Production.INFO: ProcessCDR(1,14088602,1,1,2) [2024-12-24 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088602', 'tblTempUsageDetail_20' ) start [2024-12-24 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088602', 'tblTempUsageDetail_20' ) end [2024-12-24 00:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:47:21] Production.INFO: ==21893== Releasing lock... [2024-12-24 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:47:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:48:05 [end_date_ymd] => 2024-12-24 00:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:48:17] Production.INFO: count ==182 [2024-12-24 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:48:05 - End Time 2024-12-24 00:48:05 [2024-12-24 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088607', 'tblTempUsageDetail_20' ) start [2024-12-24 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088607', 'tblTempUsageDetail_20' ) end [2024-12-24 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088607', 'tblTempVendorCDR_20' ) start [2024-12-24 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088607', 'tblTempVendorCDR_20' ) end [2024-12-24 00:48:17] Production.INFO: ProcessCDR(1,14088607,1,1,2) [2024-12-24 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088607', 'tblTempUsageDetail_20' ) start [2024-12-24 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088607', 'tblTempUsageDetail_20' ) end [2024-12-24 00:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:48:22] Production.INFO: ==21971== Releasing lock... [2024-12-24 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:48:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:49:04 [end_date_ymd] => 2024-12-24 00:49:04 [RateCDR] => 1 ) [2024-12-24 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:49:04' and `end` < '2024-12-24 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:49:17] Production.INFO: count ==181 [2024-12-24 00:49:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:49:04 - End Time 2024-12-24 00:49:04 [2024-12-24 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088611', 'tblTempUsageDetail_20' ) start [2024-12-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088611', 'tblTempUsageDetail_20' ) end [2024-12-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088611', 'tblTempVendorCDR_20' ) start [2024-12-24 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088611', 'tblTempVendorCDR_20' ) end [2024-12-24 00:49:17] Production.INFO: ProcessCDR(1,14088611,1,1,2) [2024-12-24 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088611', 'tblTempUsageDetail_20' ) start [2024-12-24 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088611', 'tblTempUsageDetail_20' ) end [2024-12-24 00:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:49:20] Production.INFO: ==22046== Releasing lock... [2024-12-24 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:49:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:50:06 [end_date_ymd] => 2024-12-24 00:50:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:50:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:50:18] Production.INFO: count ==191 [2024-12-24 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:50:06 - End Time 2024-12-24 00:50:06 [2024-12-24 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088618', 'tblTempUsageDetail_20' ) start [2024-12-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088618', 'tblTempUsageDetail_20' ) end [2024-12-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088618', 'tblTempVendorCDR_20' ) start [2024-12-24 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088618', 'tblTempVendorCDR_20' ) end [2024-12-24 00:50:18] Production.INFO: ProcessCDR(1,14088618,1,1,2) [2024-12-24 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088618', 'tblTempUsageDetail_20' ) start [2024-12-24 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088618', 'tblTempUsageDetail_20' ) end [2024-12-24 00:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:50:21] Production.INFO: ==22125== Releasing lock... [2024-12-24 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:50:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:51:04 [end_date_ymd] => 2024-12-24 00:51:04 [RateCDR] => 1 ) [2024-12-24 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 21:51:04' and `end` < '2024-12-24 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:51:17] Production.INFO: count ==197 [2024-12-24 00:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:51:04 - End Time 2024-12-24 00:51:04 [2024-12-24 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088623', 'tblTempUsageDetail_20' ) start [2024-12-24 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088623', 'tblTempUsageDetail_20' ) end [2024-12-24 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088623', 'tblTempVendorCDR_20' ) start [2024-12-24 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088623', 'tblTempVendorCDR_20' ) end [2024-12-24 00:51:17] Production.INFO: ProcessCDR(1,14088623,1,1,2) [2024-12-24 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088623', 'tblTempUsageDetail_20' ) start [2024-12-24 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088623', 'tblTempUsageDetail_20' ) end [2024-12-24 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:51:20] Production.INFO: ==22204== Releasing lock... [2024-12-24 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:51:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:52:05 [end_date_ymd] => 2024-12-24 00:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:52:18] Production.INFO: count ==197 [2024-12-24 00:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:52:05 - End Time 2024-12-24 00:52:05 [2024-12-24 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088628', 'tblTempUsageDetail_20' ) start [2024-12-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088628', 'tblTempUsageDetail_20' ) end [2024-12-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088628', 'tblTempVendorCDR_20' ) start [2024-12-24 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088628', 'tblTempVendorCDR_20' ) end [2024-12-24 00:52:18] Production.INFO: ProcessCDR(1,14088628,1,1,2) [2024-12-24 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088628', 'tblTempUsageDetail_20' ) start [2024-12-24 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088628', 'tblTempUsageDetail_20' ) end [2024-12-24 00:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:52:21] Production.INFO: ==22285== Releasing lock... [2024-12-24 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:52:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:53:04 [end_date_ymd] => 2024-12-24 00:53:04 [RateCDR] => 1 ) [2024-12-24 00: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` >= '2024-12-23 21:53:04' and `end` < '2024-12-24 00: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 ,'') [2024-12-24 00:53:16] Production.INFO: count ==198 [2024-12-24 00:53:16] Production.ERROR: pbx CDR StartTime 2024-12-23 21:53:04 - End Time 2024-12-24 00:53:04 [2024-12-24 00:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088633', 'tblTempUsageDetail_20' ) start [2024-12-24 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088633', 'tblTempUsageDetail_20' ) end [2024-12-24 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088633', 'tblTempVendorCDR_20' ) start [2024-12-24 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088633', 'tblTempVendorCDR_20' ) end [2024-12-24 00:53:16] Production.INFO: ProcessCDR(1,14088633,1,1,2) [2024-12-24 00:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088633', 'tblTempUsageDetail_20' ) start [2024-12-24 00:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088633', 'tblTempUsageDetail_20' ) end [2024-12-24 00:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:53:19] Production.INFO: ==22360== Releasing lock... [2024-12-24 00:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:53:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:54:05 [end_date_ymd] => 2024-12-24 00:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:54:17] Production.INFO: count ==198 [2024-12-24 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:54:05 - End Time 2024-12-24 00:54:05 [2024-12-24 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088638', 'tblTempUsageDetail_20' ) start [2024-12-24 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088638', 'tblTempUsageDetail_20' ) end [2024-12-24 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088638', 'tblTempVendorCDR_20' ) start [2024-12-24 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088638', 'tblTempVendorCDR_20' ) end [2024-12-24 00:54:17] Production.INFO: ProcessCDR(1,14088638,1,1,2) [2024-12-24 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088638', 'tblTempUsageDetail_20' ) start [2024-12-24 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088638', 'tblTempUsageDetail_20' ) end [2024-12-24 00:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:54:20] Production.INFO: ==22436== Releasing lock... [2024-12-24 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:54:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:55:05 [end_date_ymd] => 2024-12-24 00:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:55:18] Production.INFO: count ==198 [2024-12-24 00:55:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:55:05 - End Time 2024-12-24 00:55:05 [2024-12-24 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088643', 'tblTempUsageDetail_20' ) start [2024-12-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088643', 'tblTempUsageDetail_20' ) end [2024-12-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088643', 'tblTempVendorCDR_20' ) start [2024-12-24 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088643', 'tblTempVendorCDR_20' ) end [2024-12-24 00:55:18] Production.INFO: ProcessCDR(1,14088643,1,1,2) [2024-12-24 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088643', 'tblTempUsageDetail_20' ) start [2024-12-24 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088643', 'tblTempUsageDetail_20' ) end [2024-12-24 00:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:55:21] Production.INFO: ==22509== Releasing lock... [2024-12-24 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:55:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:56:05 [end_date_ymd] => 2024-12-24 00:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:56:17] Production.INFO: count ==197 [2024-12-24 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:56:05 - End Time 2024-12-24 00:56:05 [2024-12-24 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088648', 'tblTempUsageDetail_20' ) start [2024-12-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088648', 'tblTempUsageDetail_20' ) end [2024-12-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088648', 'tblTempVendorCDR_20' ) start [2024-12-24 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088648', 'tblTempVendorCDR_20' ) end [2024-12-24 00:56:17] Production.INFO: ProcessCDR(1,14088648,1,1,2) [2024-12-24 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088648', 'tblTempUsageDetail_20' ) start [2024-12-24 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088648', 'tblTempUsageDetail_20' ) end [2024-12-24 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:56:20] Production.INFO: ==22584== Releasing lock... [2024-12-24 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:56:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:57:05 [end_date_ymd] => 2024-12-24 00:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:57:05' and `end` < '2024-12-24 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 00:57:18] Production.INFO: count ==199 [2024-12-24 00:57:18] Production.ERROR: pbx CDR StartTime 2024-12-23 21:57:05 - End Time 2024-12-24 00:57:05 [2024-12-24 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088653', 'tblTempUsageDetail_20' ) start [2024-12-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088653', 'tblTempUsageDetail_20' ) end [2024-12-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088653', 'tblTempVendorCDR_20' ) start [2024-12-24 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088653', 'tblTempVendorCDR_20' ) end [2024-12-24 00:57:18] Production.INFO: ProcessCDR(1,14088653,1,1,2) [2024-12-24 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088653', 'tblTempUsageDetail_20' ) start [2024-12-24 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088653', 'tblTempUsageDetail_20' ) end [2024-12-24 00:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:57:22] Production.INFO: ==22661== Releasing lock... [2024-12-24 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:57:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:58:05 [end_date_ymd] => 2024-12-24 00:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:58:19] Production.INFO: count ==199 [2024-12-24 00:58:19] Production.ERROR: pbx CDR StartTime 2024-12-23 21:58:05 - End Time 2024-12-24 00:58:05 [2024-12-24 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088658', 'tblTempUsageDetail_20' ) start [2024-12-24 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088658', 'tblTempUsageDetail_20' ) end [2024-12-24 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088658', 'tblTempVendorCDR_20' ) start [2024-12-24 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088658', 'tblTempVendorCDR_20' ) end [2024-12-24 00:58:19] Production.INFO: ProcessCDR(1,14088658,1,1,2) [2024-12-24 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088658', 'tblTempUsageDetail_20' ) start [2024-12-24 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088658', 'tblTempUsageDetail_20' ) end [2024-12-24 00:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:58:22] Production.INFO: ==22733== Releasing lock... [2024-12-24 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:58:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 21:59:05 [end_date_ymd] => 2024-12-24 00:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 21:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 00:59:17] Production.INFO: count ==198 [2024-12-24 00:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 21:59:05 - End Time 2024-12-24 00:59:05 [2024-12-24 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088663', 'tblTempUsageDetail_20' ) start [2024-12-24 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088663', 'tblTempUsageDetail_20' ) end [2024-12-24 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088663', 'tblTempVendorCDR_20' ) start [2024-12-24 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088663', 'tblTempVendorCDR_20' ) end [2024-12-24 00:59:17] Production.INFO: ProcessCDR(1,14088663,1,1,2) [2024-12-24 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088663', 'tblTempUsageDetail_20' ) start [2024-12-24 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088663', 'tblTempUsageDetail_20' ) end [2024-12-24 00:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 00:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 00:59:20] Production.INFO: ==22807== Releasing lock... [2024-12-24 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 00:59:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:00:05 [end_date_ymd] => 2024-12-24 01:00:05 [RateCDR] => 1 ) [2024-12-24 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:00:05' and `end` < '2024-12-24 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:00:18] Production.INFO: count ==201 [2024-12-24 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:00:05 - End Time 2024-12-24 01:00:05 [2024-12-24 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088669', 'tblTempUsageDetail_20' ) start [2024-12-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088669', 'tblTempUsageDetail_20' ) end [2024-12-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088669', 'tblTempVendorCDR_20' ) start [2024-12-24 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088669', 'tblTempVendorCDR_20' ) end [2024-12-24 01:00:18] Production.INFO: ProcessCDR(1,14088669,1,1,2) [2024-12-24 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088669', 'tblTempUsageDetail_20' ) start [2024-12-24 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088669', 'tblTempUsageDetail_20' ) end [2024-12-24 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:00:21] Production.INFO: ==22881== Releasing lock... [2024-12-24 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:00:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:01:05 [end_date_ymd] => 2024-12-24 01:01:05 [RateCDR] => 1 ) [2024-12-24 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:01:05' and `end` < '2024-12-24 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:01:18] Production.INFO: count ==214 [2024-12-24 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:01:05 - End Time 2024-12-24 01:01:05 [2024-12-24 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088674', 'tblTempUsageDetail_20' ) start [2024-12-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088674', 'tblTempUsageDetail_20' ) end [2024-12-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088674', 'tblTempVendorCDR_20' ) start [2024-12-24 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088674', 'tblTempVendorCDR_20' ) end [2024-12-24 01:01:18] Production.INFO: ProcessCDR(1,14088674,1,1,2) [2024-12-24 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088674', 'tblTempUsageDetail_20' ) start [2024-12-24 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088674', 'tblTempUsageDetail_20' ) end [2024-12-24 01:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:01:21] Production.INFO: ==23012== Releasing lock... [2024-12-24 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:01:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:02:04 [end_date_ymd] => 2024-12-24 01:02:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:02:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:02:17] Production.INFO: count ==214 [2024-12-24 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:02:04 - End Time 2024-12-24 01:02:04 [2024-12-24 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088679', 'tblTempUsageDetail_20' ) start [2024-12-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088679', 'tblTempUsageDetail_20' ) end [2024-12-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088679', 'tblTempVendorCDR_20' ) start [2024-12-24 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088679', 'tblTempVendorCDR_20' ) end [2024-12-24 01:02:17] Production.INFO: ProcessCDR(1,14088679,1,1,2) [2024-12-24 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088679', 'tblTempUsageDetail_20' ) start [2024-12-24 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088679', 'tblTempUsageDetail_20' ) end [2024-12-24 01:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:02:20] Production.INFO: ==23091== Releasing lock... [2024-12-24 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:02:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:03:05 [end_date_ymd] => 2024-12-24 01:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:03:17] Production.INFO: count ==214 [2024-12-24 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:03:05 - End Time 2024-12-24 01:03:05 [2024-12-24 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088684', 'tblTempUsageDetail_20' ) start [2024-12-24 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088684', 'tblTempUsageDetail_20' ) end [2024-12-24 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088684', 'tblTempVendorCDR_20' ) start [2024-12-24 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088684', 'tblTempVendorCDR_20' ) end [2024-12-24 01:03:17] Production.INFO: ProcessCDR(1,14088684,1,1,2) [2024-12-24 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088684', 'tblTempUsageDetail_20' ) start [2024-12-24 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088684', 'tblTempUsageDetail_20' ) end [2024-12-24 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:03:20] Production.INFO: ==23170== Releasing lock... [2024-12-24 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:03:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:04:05 [end_date_ymd] => 2024-12-24 01:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:04:19] Production.INFO: count ==213 [2024-12-24 01:04:19] Production.ERROR: pbx CDR StartTime 2024-12-23 22:04:05 - End Time 2024-12-24 01:04:05 [2024-12-24 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088689', 'tblTempUsageDetail_20' ) start [2024-12-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088689', 'tblTempUsageDetail_20' ) end [2024-12-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088689', 'tblTempVendorCDR_20' ) start [2024-12-24 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088689', 'tblTempVendorCDR_20' ) end [2024-12-24 01:04:19] Production.INFO: ProcessCDR(1,14088689,1,1,2) [2024-12-24 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088689', 'tblTempUsageDetail_20' ) start [2024-12-24 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088689', 'tblTempUsageDetail_20' ) end [2024-12-24 01:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:04:22] Production.INFO: ==23246== Releasing lock... [2024-12-24 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:04:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:05:04 [end_date_ymd] => 2024-12-24 01:05:04 [RateCDR] => 1 ) [2024-12-24 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:05:04' and `end` < '2024-12-24 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:05:17] Production.INFO: count ==212 [2024-12-24 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:05:04 - End Time 2024-12-24 01:05:04 [2024-12-24 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088694', 'tblTempUsageDetail_20' ) start [2024-12-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088694', 'tblTempUsageDetail_20' ) end [2024-12-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088694', 'tblTempVendorCDR_20' ) start [2024-12-24 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088694', 'tblTempVendorCDR_20' ) end [2024-12-24 01:05:17] Production.INFO: ProcessCDR(1,14088694,1,1,2) [2024-12-24 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088694', 'tblTempUsageDetail_20' ) start [2024-12-24 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088694', 'tblTempUsageDetail_20' ) end [2024-12-24 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:05:20] Production.INFO: ==23322== Releasing lock... [2024-12-24 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:05:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:06:05 [end_date_ymd] => 2024-12-24 01:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:06:17] Production.INFO: count ==210 [2024-12-24 01:06:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:06:05 - End Time 2024-12-24 01:06:05 [2024-12-24 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088699', 'tblTempUsageDetail_20' ) start [2024-12-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088699', 'tblTempUsageDetail_20' ) end [2024-12-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088699', 'tblTempVendorCDR_20' ) start [2024-12-24 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088699', 'tblTempVendorCDR_20' ) end [2024-12-24 01:06:17] Production.INFO: ProcessCDR(1,14088699,1,1,2) [2024-12-24 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088699', 'tblTempUsageDetail_20' ) start [2024-12-24 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088699', 'tblTempUsageDetail_20' ) end [2024-12-24 01:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:06:20] Production.INFO: ==23399== Releasing lock... [2024-12-24 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:06:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:07:04 [end_date_ymd] => 2024-12-24 01:07:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:07:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:07:17] Production.INFO: count ==209 [2024-12-24 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:07:04 - End Time 2024-12-24 01:07:04 [2024-12-24 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088704', 'tblTempUsageDetail_20' ) start [2024-12-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088704', 'tblTempUsageDetail_20' ) end [2024-12-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088704', 'tblTempVendorCDR_20' ) start [2024-12-24 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088704', 'tblTempVendorCDR_20' ) end [2024-12-24 01:07:17] Production.INFO: ProcessCDR(1,14088704,1,1,2) [2024-12-24 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088704', 'tblTempUsageDetail_20' ) start [2024-12-24 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088704', 'tblTempUsageDetail_20' ) end [2024-12-24 01:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:07:21] Production.INFO: ==23479== Releasing lock... [2024-12-24 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:07:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:08:05 [end_date_ymd] => 2024-12-24 01:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:08:17] Production.INFO: count ==210 [2024-12-24 01:08:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:08:05 - End Time 2024-12-24 01:08:05 [2024-12-24 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088709', 'tblTempUsageDetail_20' ) start [2024-12-24 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088709', 'tblTempUsageDetail_20' ) end [2024-12-24 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088709', 'tblTempVendorCDR_20' ) start [2024-12-24 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088709', 'tblTempVendorCDR_20' ) end [2024-12-24 01:08:17] Production.INFO: ProcessCDR(1,14088709,1,1,2) [2024-12-24 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088709', 'tblTempUsageDetail_20' ) start [2024-12-24 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088709', 'tblTempUsageDetail_20' ) end [2024-12-24 01:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:08:22] Production.INFO: ==23559== Releasing lock... [2024-12-24 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:08:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:09:04 [end_date_ymd] => 2024-12-24 01:09:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:09:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:09:16] Production.INFO: count ==210 [2024-12-24 01:09:16] Production.ERROR: pbx CDR StartTime 2024-12-23 22:09:04 - End Time 2024-12-24 01:09:04 [2024-12-24 01:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088714', 'tblTempUsageDetail_20' ) start [2024-12-24 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088714', 'tblTempUsageDetail_20' ) end [2024-12-24 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088714', 'tblTempVendorCDR_20' ) start [2024-12-24 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088714', 'tblTempVendorCDR_20' ) end [2024-12-24 01:09:16] Production.INFO: ProcessCDR(1,14088714,1,1,2) [2024-12-24 01:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088714', 'tblTempUsageDetail_20' ) start [2024-12-24 01:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088714', 'tblTempUsageDetail_20' ) end [2024-12-24 01:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:09:19] Production.INFO: ==23641== Releasing lock... [2024-12-24 01:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:09:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:10:05 [end_date_ymd] => 2024-12-24 01:10:05 [RateCDR] => 1 ) [2024-12-24 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:10:05' and `end` < '2024-12-24 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:10:18] Production.INFO: count ==216 [2024-12-24 01:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:10:05 - End Time 2024-12-24 01:10:05 [2024-12-24 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088720', 'tblTempUsageDetail_20' ) start [2024-12-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088720', 'tblTempUsageDetail_20' ) end [2024-12-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088720', 'tblTempVendorCDR_20' ) start [2024-12-24 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088720', 'tblTempVendorCDR_20' ) end [2024-12-24 01:10:18] Production.INFO: ProcessCDR(1,14088720,1,1,2) [2024-12-24 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088720', 'tblTempUsageDetail_20' ) start [2024-12-24 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088720', 'tblTempUsageDetail_20' ) end [2024-12-24 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:10:21] Production.INFO: ==23725== Releasing lock... [2024-12-24 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:10:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:11:05 [end_date_ymd] => 2024-12-24 01:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:11:17] Production.INFO: count ==221 [2024-12-24 01:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:11:05 - End Time 2024-12-24 01:11:05 [2024-12-24 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088725', 'tblTempUsageDetail_20' ) start [2024-12-24 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088725', 'tblTempUsageDetail_20' ) end [2024-12-24 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088725', 'tblTempVendorCDR_20' ) start [2024-12-24 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088725', 'tblTempVendorCDR_20' ) end [2024-12-24 01:11:17] Production.INFO: ProcessCDR(1,14088725,1,1,2) [2024-12-24 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088725', 'tblTempUsageDetail_20' ) start [2024-12-24 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088725', 'tblTempUsageDetail_20' ) end [2024-12-24 01:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:11:20] Production.INFO: ==23803== Releasing lock... [2024-12-24 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:11:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:12:04 [end_date_ymd] => 2024-12-24 01:12:04 [RateCDR] => 1 ) [2024-12-24 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:12:04' and `end` < '2024-12-24 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:12:17] Production.INFO: count ==213 [2024-12-24 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:12:04 - End Time 2024-12-24 01:12:04 [2024-12-24 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088730', 'tblTempUsageDetail_20' ) start [2024-12-24 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088730', 'tblTempUsageDetail_20' ) end [2024-12-24 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088730', 'tblTempVendorCDR_20' ) start [2024-12-24 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088730', 'tblTempVendorCDR_20' ) end [2024-12-24 01:12:17] Production.INFO: ProcessCDR(1,14088730,1,1,2) [2024-12-24 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088730', 'tblTempUsageDetail_20' ) start [2024-12-24 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088730', 'tblTempUsageDetail_20' ) end [2024-12-24 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:12:20] Production.INFO: ==23885== Releasing lock... [2024-12-24 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:12:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:13:05 [end_date_ymd] => 2024-12-24 01:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:13:17] Production.INFO: count ==206 [2024-12-24 01:13:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:13:05 - End Time 2024-12-24 01:13:05 [2024-12-24 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088735', 'tblTempUsageDetail_20' ) start [2024-12-24 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088735', 'tblTempUsageDetail_20' ) end [2024-12-24 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088735', 'tblTempVendorCDR_20' ) start [2024-12-24 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088735', 'tblTempVendorCDR_20' ) end [2024-12-24 01:13:17] Production.INFO: ProcessCDR(1,14088735,1,1,2) [2024-12-24 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088735', 'tblTempUsageDetail_20' ) start [2024-12-24 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088735', 'tblTempUsageDetail_20' ) end [2024-12-24 01:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:13:20] Production.INFO: ==23962== Releasing lock... [2024-12-24 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:13:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:14:05 [end_date_ymd] => 2024-12-24 01:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:14:17] Production.INFO: count ==207 [2024-12-24 01:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:14:05 - End Time 2024-12-24 01:14:05 [2024-12-24 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088740', 'tblTempUsageDetail_20' ) start [2024-12-24 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088740', 'tblTempUsageDetail_20' ) end [2024-12-24 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088740', 'tblTempVendorCDR_20' ) start [2024-12-24 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088740', 'tblTempVendorCDR_20' ) end [2024-12-24 01:14:17] Production.INFO: ProcessCDR(1,14088740,1,1,2) [2024-12-24 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088740', 'tblTempUsageDetail_20' ) start [2024-12-24 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088740', 'tblTempUsageDetail_20' ) end [2024-12-24 01:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:14:20] Production.INFO: ==24047== Releasing lock... [2024-12-24 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:14:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:15:05 [end_date_ymd] => 2024-12-24 01:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:15:18] Production.INFO: count ==207 [2024-12-24 01:15:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:15:05 - End Time 2024-12-24 01:15:05 [2024-12-24 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088745', 'tblTempUsageDetail_20' ) start [2024-12-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088745', 'tblTempUsageDetail_20' ) end [2024-12-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088745', 'tblTempVendorCDR_20' ) start [2024-12-24 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088745', 'tblTempVendorCDR_20' ) end [2024-12-24 01:15:18] Production.INFO: ProcessCDR(1,14088745,1,1,2) [2024-12-24 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088745', 'tblTempUsageDetail_20' ) start [2024-12-24 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088745', 'tblTempUsageDetail_20' ) end [2024-12-24 01:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:15:21] Production.INFO: ==24137== Releasing lock... [2024-12-24 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:15:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:16:05 [end_date_ymd] => 2024-12-24 01:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:16:17] Production.INFO: count ==207 [2024-12-24 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:16:05 - End Time 2024-12-24 01:16:05 [2024-12-24 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088750', 'tblTempUsageDetail_20' ) start [2024-12-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088750', 'tblTempUsageDetail_20' ) end [2024-12-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088750', 'tblTempVendorCDR_20' ) start [2024-12-24 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088750', 'tblTempVendorCDR_20' ) end [2024-12-24 01:16:17] Production.INFO: ProcessCDR(1,14088750,1,1,2) [2024-12-24 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088750', 'tblTempUsageDetail_20' ) start [2024-12-24 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088750', 'tblTempUsageDetail_20' ) end [2024-12-24 01:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:16:20] Production.INFO: ==24260== Releasing lock... [2024-12-24 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:16:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:17:04 [end_date_ymd] => 2024-12-24 01:17:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:17:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:17:16] Production.INFO: count ==206 [2024-12-24 01:17:16] Production.ERROR: pbx CDR StartTime 2024-12-23 22:17:04 - End Time 2024-12-24 01:17:04 [2024-12-24 01:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088755', 'tblTempUsageDetail_20' ) start [2024-12-24 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088755', 'tblTempUsageDetail_20' ) end [2024-12-24 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088755', 'tblTempVendorCDR_20' ) start [2024-12-24 01:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088755', 'tblTempVendorCDR_20' ) end [2024-12-24 01:17:16] Production.INFO: ProcessCDR(1,14088755,1,1,2) [2024-12-24 01:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088755', 'tblTempUsageDetail_20' ) start [2024-12-24 01:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088755', 'tblTempUsageDetail_20' ) end [2024-12-24 01:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:17:19] Production.INFO: ==24356== Releasing lock... [2024-12-24 01:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:17:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:18:05 [end_date_ymd] => 2024-12-24 01:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:18:17] Production.INFO: count ==206 [2024-12-24 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:18:05 - End Time 2024-12-24 01:18:05 [2024-12-24 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088760', 'tblTempUsageDetail_20' ) start [2024-12-24 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088760', 'tblTempUsageDetail_20' ) end [2024-12-24 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088760', 'tblTempVendorCDR_20' ) start [2024-12-24 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088760', 'tblTempVendorCDR_20' ) end [2024-12-24 01:18:17] Production.INFO: ProcessCDR(1,14088760,1,1,2) [2024-12-24 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088760', 'tblTempUsageDetail_20' ) start [2024-12-24 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088760', 'tblTempUsageDetail_20' ) end [2024-12-24 01:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:18:20] Production.INFO: ==24438== Releasing lock... [2024-12-24 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:18:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:19:05 [end_date_ymd] => 2024-12-24 01:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:19:18] Production.INFO: count ==204 [2024-12-24 01:19:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:19:05 - End Time 2024-12-24 01:19:05 [2024-12-24 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088765', 'tblTempUsageDetail_20' ) start [2024-12-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088765', 'tblTempUsageDetail_20' ) end [2024-12-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088765', 'tblTempVendorCDR_20' ) start [2024-12-24 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088765', 'tblTempVendorCDR_20' ) end [2024-12-24 01:19:18] Production.INFO: ProcessCDR(1,14088765,1,1,2) [2024-12-24 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088765', 'tblTempUsageDetail_20' ) start [2024-12-24 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088765', 'tblTempUsageDetail_20' ) end [2024-12-24 01:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:19:21] Production.INFO: ==24524== Releasing lock... [2024-12-24 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:19:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:20:06 [end_date_ymd] => 2024-12-24 01:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:20:18] Production.INFO: count ==213 [2024-12-24 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:20:06 - End Time 2024-12-24 01:20:06 [2024-12-24 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088771', 'tblTempUsageDetail_20' ) start [2024-12-24 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088771', 'tblTempUsageDetail_20' ) end [2024-12-24 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088771', 'tblTempVendorCDR_20' ) start [2024-12-24 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088771', 'tblTempVendorCDR_20' ) end [2024-12-24 01:20:18] Production.INFO: ProcessCDR(1,14088771,1,1,2) [2024-12-24 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088771', 'tblTempUsageDetail_20' ) start [2024-12-24 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088771', 'tblTempUsageDetail_20' ) end [2024-12-24 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:20:21] Production.INFO: ==24606== Releasing lock... [2024-12-24 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:20:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:21:05 [end_date_ymd] => 2024-12-24 01:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:21:17] Production.INFO: count ==217 [2024-12-24 01:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:21:05 - End Time 2024-12-24 01:21:05 [2024-12-24 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088776', 'tblTempUsageDetail_20' ) start [2024-12-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088776', 'tblTempUsageDetail_20' ) end [2024-12-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088776', 'tblTempVendorCDR_20' ) start [2024-12-24 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088776', 'tblTempVendorCDR_20' ) end [2024-12-24 01:21:17] Production.INFO: ProcessCDR(1,14088776,1,1,2) [2024-12-24 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088776', 'tblTempUsageDetail_20' ) start [2024-12-24 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088776', 'tblTempUsageDetail_20' ) end [2024-12-24 01:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:21:20] Production.INFO: ==24695== Releasing lock... [2024-12-24 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:21:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:22:05 [end_date_ymd] => 2024-12-24 01:22:05 [RateCDR] => 1 ) [2024-12-24 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:22:05' and `end` < '2024-12-24 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:22:17] Production.INFO: count ==218 [2024-12-24 01:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:22:05 - End Time 2024-12-24 01:22:05 [2024-12-24 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088781', 'tblTempUsageDetail_20' ) start [2024-12-24 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088781', 'tblTempUsageDetail_20' ) end [2024-12-24 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088781', 'tblTempVendorCDR_20' ) start [2024-12-24 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088781', 'tblTempVendorCDR_20' ) end [2024-12-24 01:22:17] Production.INFO: ProcessCDR(1,14088781,1,1,2) [2024-12-24 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088781', 'tblTempUsageDetail_20' ) start [2024-12-24 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088781', 'tblTempUsageDetail_20' ) end [2024-12-24 01:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:22:20] Production.INFO: ==24781== Releasing lock... [2024-12-24 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:22:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:23:04 [end_date_ymd] => 2024-12-24 01:23:04 [RateCDR] => 1 ) [2024-12-24 01:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:23:04' and `end` < '2024-12-24 01:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:23:16] Production.INFO: count ==216 [2024-12-24 01:23:16] Production.ERROR: pbx CDR StartTime 2024-12-23 22:23:04 - End Time 2024-12-24 01:23:04 [2024-12-24 01:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088786', 'tblTempUsageDetail_20' ) start [2024-12-24 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088786', 'tblTempUsageDetail_20' ) end [2024-12-24 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088786', 'tblTempVendorCDR_20' ) start [2024-12-24 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088786', 'tblTempVendorCDR_20' ) end [2024-12-24 01:23:16] Production.INFO: ProcessCDR(1,14088786,1,1,2) [2024-12-24 01:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088786', 'tblTempUsageDetail_20' ) start [2024-12-24 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088786', 'tblTempUsageDetail_20' ) end [2024-12-24 01:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:23:19] Production.INFO: ==24862== Releasing lock... [2024-12-24 01:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:23:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:24:05 [end_date_ymd] => 2024-12-24 01:24:05 [RateCDR] => 1 ) [2024-12-24 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:24:05' and `end` < '2024-12-24 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:24:17] Production.INFO: count ==216 [2024-12-24 01:24:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:24:05 - End Time 2024-12-24 01:24:05 [2024-12-24 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088791', 'tblTempUsageDetail_20' ) start [2024-12-24 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088791', 'tblTempUsageDetail_20' ) end [2024-12-24 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088791', 'tblTempVendorCDR_20' ) start [2024-12-24 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088791', 'tblTempVendorCDR_20' ) end [2024-12-24 01:24:17] Production.INFO: ProcessCDR(1,14088791,1,1,2) [2024-12-24 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088791', 'tblTempUsageDetail_20' ) start [2024-12-24 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088791', 'tblTempUsageDetail_20' ) end [2024-12-24 01:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:24:20] Production.INFO: ==24950== Releasing lock... [2024-12-24 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:24:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:25:05 [end_date_ymd] => 2024-12-24 01:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:25:17] Production.INFO: count ==215 [2024-12-24 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:25:05 - End Time 2024-12-24 01:25:05 [2024-12-24 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088796', 'tblTempUsageDetail_20' ) start [2024-12-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088796', 'tblTempUsageDetail_20' ) end [2024-12-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088796', 'tblTempVendorCDR_20' ) start [2024-12-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088796', 'tblTempVendorCDR_20' ) end [2024-12-24 01:25:17] Production.INFO: ProcessCDR(1,14088796,1,1,2) [2024-12-24 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088796', 'tblTempUsageDetail_20' ) start [2024-12-24 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088796', 'tblTempUsageDetail_20' ) end [2024-12-24 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:25:20] Production.INFO: ==25035== Releasing lock... [2024-12-24 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:25:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:26:05 [end_date_ymd] => 2024-12-24 01:26:05 [RateCDR] => 1 ) [2024-12-24 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:26:05' and `end` < '2024-12-24 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:26:17] Production.INFO: count ==218 [2024-12-24 01:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:26:05 - End Time 2024-12-24 01:26:05 [2024-12-24 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088801', 'tblTempUsageDetail_20' ) start [2024-12-24 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088801', 'tblTempUsageDetail_20' ) end [2024-12-24 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088801', 'tblTempVendorCDR_20' ) start [2024-12-24 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088801', 'tblTempVendorCDR_20' ) end [2024-12-24 01:26:17] Production.INFO: ProcessCDR(1,14088801,1,1,2) [2024-12-24 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088801', 'tblTempUsageDetail_20' ) start [2024-12-24 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088801', 'tblTempUsageDetail_20' ) end [2024-12-24 01:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:26:20] Production.INFO: ==25122== Releasing lock... [2024-12-24 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:26:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:27:05 [end_date_ymd] => 2024-12-24 01:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:27:17] Production.INFO: count ==216 [2024-12-24 01:27:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:27:05 - End Time 2024-12-24 01:27:05 [2024-12-24 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088806', 'tblTempUsageDetail_20' ) start [2024-12-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088806', 'tblTempUsageDetail_20' ) end [2024-12-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088806', 'tblTempVendorCDR_20' ) start [2024-12-24 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088806', 'tblTempVendorCDR_20' ) end [2024-12-24 01:27:17] Production.INFO: ProcessCDR(1,14088806,1,1,2) [2024-12-24 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088806', 'tblTempUsageDetail_20' ) start [2024-12-24 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088806', 'tblTempUsageDetail_20' ) end [2024-12-24 01:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:27:20] Production.INFO: ==25205== Releasing lock... [2024-12-24 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:27:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:28:04 [end_date_ymd] => 2024-12-24 01:28:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:28:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:28:17] Production.INFO: count ==216 [2024-12-24 01:28:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:28:04 - End Time 2024-12-24 01:28:04 [2024-12-24 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088811', 'tblTempUsageDetail_20' ) start [2024-12-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088811', 'tblTempUsageDetail_20' ) end [2024-12-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088811', 'tblTempVendorCDR_20' ) start [2024-12-24 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088811', 'tblTempVendorCDR_20' ) end [2024-12-24 01:28:18] Production.INFO: ProcessCDR(1,14088811,1,1,2) [2024-12-24 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088811', 'tblTempUsageDetail_20' ) start [2024-12-24 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088811', 'tblTempUsageDetail_20' ) end [2024-12-24 01:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:28:21] Production.INFO: ==25288== Releasing lock... [2024-12-24 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:28:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:29:05 [end_date_ymd] => 2024-12-24 01:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:29:17] Production.INFO: count ==216 [2024-12-24 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:29:05 - End Time 2024-12-24 01:29:05 [2024-12-24 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088816', 'tblTempUsageDetail_20' ) start [2024-12-24 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088816', 'tblTempUsageDetail_20' ) end [2024-12-24 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088816', 'tblTempVendorCDR_20' ) start [2024-12-24 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088816', 'tblTempVendorCDR_20' ) end [2024-12-24 01:29:17] Production.INFO: ProcessCDR(1,14088816,1,1,2) [2024-12-24 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088816', 'tblTempUsageDetail_20' ) start [2024-12-24 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088816', 'tblTempUsageDetail_20' ) end [2024-12-24 01:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:29:20] Production.INFO: ==25376== Releasing lock... [2024-12-24 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:29:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:30:05 [end_date_ymd] => 2024-12-24 01:30:05 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:30:05' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:30:18] Production.INFO: count ==221 [2024-12-24 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:30:05 - End Time 2024-12-24 01:30:05 [2024-12-24 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088822', 'tblTempUsageDetail_20' ) start [2024-12-24 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088822', 'tblTempUsageDetail_20' ) end [2024-12-24 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088822', 'tblTempVendorCDR_20' ) start [2024-12-24 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088822', 'tblTempVendorCDR_20' ) end [2024-12-24 01:30:18] Production.INFO: ProcessCDR(1,14088822,1,1,2) [2024-12-24 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088822', 'tblTempUsageDetail_20' ) start [2024-12-24 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088822', 'tblTempUsageDetail_20' ) end [2024-12-24 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:30:21] Production.INFO: ==25462== Releasing lock... [2024-12-24 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:30:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:31:05 [end_date_ymd] => 2024-12-24 01:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:31:19] Production.INFO: count ==228 [2024-12-24 01:31:19] Production.ERROR: pbx CDR StartTime 2024-12-23 22:31:05 - End Time 2024-12-24 01:31:05 [2024-12-24 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088827', 'tblTempUsageDetail_20' ) start [2024-12-24 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088827', 'tblTempUsageDetail_20' ) end [2024-12-24 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088827', 'tblTempVendorCDR_20' ) start [2024-12-24 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088827', 'tblTempVendorCDR_20' ) end [2024-12-24 01:31:19] Production.INFO: ProcessCDR(1,14088827,1,1,2) [2024-12-24 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088827', 'tblTempUsageDetail_20' ) start [2024-12-24 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088827', 'tblTempUsageDetail_20' ) end [2024-12-24 01:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:31:22] Production.INFO: ==25547== Releasing lock... [2024-12-24 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:31:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:32:05 [end_date_ymd] => 2024-12-24 01:32:05 [RateCDR] => 1 ) [2024-12-24 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:32:17] Production.INFO: count ==228 [2024-12-24 01:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:32:05 - End Time 2024-12-24 01:32:05 [2024-12-24 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088832', 'tblTempUsageDetail_20' ) start [2024-12-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088832', 'tblTempUsageDetail_20' ) end [2024-12-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088832', 'tblTempVendorCDR_20' ) start [2024-12-24 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088832', 'tblTempVendorCDR_20' ) end [2024-12-24 01:32:17] Production.INFO: ProcessCDR(1,14088832,1,1,2) [2024-12-24 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088832', 'tblTempUsageDetail_20' ) start [2024-12-24 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088832', 'tblTempUsageDetail_20' ) end [2024-12-24 01:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:32:20] Production.INFO: ==25669== Releasing lock... [2024-12-24 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:32:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:33:05 [end_date_ymd] => 2024-12-24 01:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:33:19] Production.INFO: count ==226 [2024-12-24 01:33:19] Production.ERROR: pbx CDR StartTime 2024-12-23 22:33:05 - End Time 2024-12-24 01:33:05 [2024-12-24 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088837', 'tblTempUsageDetail_20' ) start [2024-12-24 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088837', 'tblTempUsageDetail_20' ) end [2024-12-24 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088837', 'tblTempVendorCDR_20' ) start [2024-12-24 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088837', 'tblTempVendorCDR_20' ) end [2024-12-24 01:33:19] Production.INFO: ProcessCDR(1,14088837,1,1,2) [2024-12-24 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088837', 'tblTempUsageDetail_20' ) start [2024-12-24 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088837', 'tblTempUsageDetail_20' ) end [2024-12-24 01:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:33:22] Production.INFO: ==25749== Releasing lock... [2024-12-24 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:33:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:34:04 [end_date_ymd] => 2024-12-24 01:34:04 [RateCDR] => 1 ) [2024-12-24 01:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:34:04' and `end` < '2024-12-24 01:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:34:16] Production.INFO: count ==224 [2024-12-24 01:34:16] Production.ERROR: pbx CDR StartTime 2024-12-23 22:34:04 - End Time 2024-12-24 01:34:04 [2024-12-24 01:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088842', 'tblTempUsageDetail_20' ) start [2024-12-24 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088842', 'tblTempUsageDetail_20' ) end [2024-12-24 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088842', 'tblTempVendorCDR_20' ) start [2024-12-24 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088842', 'tblTempVendorCDR_20' ) end [2024-12-24 01:34:16] Production.INFO: ProcessCDR(1,14088842,1,1,2) [2024-12-24 01:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088842', 'tblTempUsageDetail_20' ) start [2024-12-24 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088842', 'tblTempUsageDetail_20' ) end [2024-12-24 01:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:34:20] Production.INFO: ==25830== Releasing lock... [2024-12-24 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:34:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:35:05 [end_date_ymd] => 2024-12-24 01:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:35:17] Production.INFO: count ==223 [2024-12-24 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:35:05 - End Time 2024-12-24 01:35:05 [2024-12-24 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088847', 'tblTempUsageDetail_20' ) start [2024-12-24 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088847', 'tblTempUsageDetail_20' ) end [2024-12-24 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088847', 'tblTempVendorCDR_20' ) start [2024-12-24 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088847', 'tblTempVendorCDR_20' ) end [2024-12-24 01:35:17] Production.INFO: ProcessCDR(1,14088847,1,1,2) [2024-12-24 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088847', 'tblTempUsageDetail_20' ) start [2024-12-24 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088847', 'tblTempUsageDetail_20' ) end [2024-12-24 01:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:35:20] Production.INFO: ==25915== Releasing lock... [2024-12-24 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:35:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:36:04 [end_date_ymd] => 2024-12-24 01:36:04 [RateCDR] => 1 ) [2024-12-24 01:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:36:04' and `end` < '2024-12-24 01:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:36:16] Production.INFO: count ==222 [2024-12-24 01:36:16] Production.ERROR: pbx CDR StartTime 2024-12-23 22:36:04 - End Time 2024-12-24 01:36:04 [2024-12-24 01:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088852', 'tblTempUsageDetail_20' ) start [2024-12-24 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088852', 'tblTempUsageDetail_20' ) end [2024-12-24 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088852', 'tblTempVendorCDR_20' ) start [2024-12-24 01:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088852', 'tblTempVendorCDR_20' ) end [2024-12-24 01:36:16] Production.INFO: ProcessCDR(1,14088852,1,1,2) [2024-12-24 01:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088852', 'tblTempUsageDetail_20' ) start [2024-12-24 01:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088852', 'tblTempUsageDetail_20' ) end [2024-12-24 01:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:36:19] Production.INFO: ==26000== Releasing lock... [2024-12-24 01:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:36:19] Production.INFO: 29 MB #Memory Used# [2024-12-24 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:37:05 [end_date_ymd] => 2024-12-24 01:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:37:20] Production.INFO: count ==221 [2024-12-24 01:37:20] Production.ERROR: pbx CDR StartTime 2024-12-23 22:37:05 - End Time 2024-12-24 01:37:05 [2024-12-24 01:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088857', 'tblTempUsageDetail_20' ) start [2024-12-24 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088857', 'tblTempUsageDetail_20' ) end [2024-12-24 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088857', 'tblTempVendorCDR_20' ) start [2024-12-24 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088857', 'tblTempVendorCDR_20' ) end [2024-12-24 01:37:20] Production.INFO: ProcessCDR(1,14088857,1,1,2) [2024-12-24 01:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088857', 'tblTempUsageDetail_20' ) start [2024-12-24 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088857', 'tblTempUsageDetail_20' ) end [2024-12-24 01:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:37:23] Production.INFO: ==26084== Releasing lock... [2024-12-24 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:37:23] Production.INFO: 29 MB #Memory Used# [2024-12-24 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:38:05 [end_date_ymd] => 2024-12-24 01:38:05 [RateCDR] => 1 ) [2024-12-24 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:38:05' and `end` < '2024-12-24 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:38:19] Production.INFO: count ==221 [2024-12-24 01:38:19] Production.ERROR: pbx CDR StartTime 2024-12-23 22:38:05 - End Time 2024-12-24 01:38:05 [2024-12-24 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088862', 'tblTempUsageDetail_20' ) start [2024-12-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088862', 'tblTempUsageDetail_20' ) end [2024-12-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088862', 'tblTempVendorCDR_20' ) start [2024-12-24 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088862', 'tblTempVendorCDR_20' ) end [2024-12-24 01:38:19] Production.INFO: ProcessCDR(1,14088862,1,1,2) [2024-12-24 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088862', 'tblTempUsageDetail_20' ) start [2024-12-24 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088862', 'tblTempUsageDetail_20' ) end [2024-12-24 01:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:38:22] Production.INFO: ==26170== Releasing lock... [2024-12-24 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:38:22] Production.INFO: 29 MB #Memory Used# [2024-12-24 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:39:04 [end_date_ymd] => 2024-12-24 01:39:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:39:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:39:17] Production.INFO: count ==221 [2024-12-24 01:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:39:04 - End Time 2024-12-24 01:39:04 [2024-12-24 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088867', 'tblTempUsageDetail_20' ) start [2024-12-24 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088867', 'tblTempUsageDetail_20' ) end [2024-12-24 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088867', 'tblTempVendorCDR_20' ) start [2024-12-24 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088867', 'tblTempVendorCDR_20' ) end [2024-12-24 01:39:17] Production.INFO: ProcessCDR(1,14088867,1,1,2) [2024-12-24 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088867', 'tblTempUsageDetail_20' ) start [2024-12-24 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088867', 'tblTempUsageDetail_20' ) end [2024-12-24 01:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:39:20] Production.INFO: ==26256== Releasing lock... [2024-12-24 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:39:20] Production.INFO: 29 MB #Memory Used# [2024-12-24 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:40:06 [end_date_ymd] => 2024-12-24 01:40:06 [RateCDR] => 1 ) [2024-12-24 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:40:06' and `end` < '2024-12-24 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:40:18] Production.INFO: count ==232 [2024-12-24 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:40:06 - End Time 2024-12-24 01:40:06 [2024-12-24 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088872', 'tblTempUsageDetail_20' ) start [2024-12-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088872', 'tblTempUsageDetail_20' ) end [2024-12-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088872', 'tblTempVendorCDR_20' ) start [2024-12-24 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088872', 'tblTempVendorCDR_20' ) end [2024-12-24 01:40:18] Production.INFO: ProcessCDR(1,14088872,1,1,2) [2024-12-24 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088872', 'tblTempUsageDetail_20' ) start [2024-12-24 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088872', 'tblTempUsageDetail_20' ) end [2024-12-24 01:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:40:23] Production.INFO: ==26345== Releasing lock... [2024-12-24 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:40:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:41:05 [end_date_ymd] => 2024-12-24 01:41:05 [RateCDR] => 1 ) [2024-12-24 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:41:05' and `end` < '2024-12-24 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:41:17] Production.INFO: count ==238 [2024-12-24 01:41:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:41:05 - End Time 2024-12-24 01:41:05 [2024-12-24 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088878', 'tblTempUsageDetail_20' ) start [2024-12-24 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088878', 'tblTempUsageDetail_20' ) end [2024-12-24 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088878', 'tblTempVendorCDR_20' ) start [2024-12-24 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088878', 'tblTempVendorCDR_20' ) end [2024-12-24 01:41:17] Production.INFO: ProcessCDR(1,14088878,1,1,2) [2024-12-24 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088878', 'tblTempUsageDetail_20' ) start [2024-12-24 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088878', 'tblTempUsageDetail_20' ) end [2024-12-24 01:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:41:20] Production.INFO: ==26427== Releasing lock... [2024-12-24 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:41:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:42:05 [end_date_ymd] => 2024-12-24 01:42:05 [RateCDR] => 1 ) [2024-12-24 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:42:05' and `end` < '2024-12-24 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:42:17] Production.INFO: count ==238 [2024-12-24 01:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:42:05 - End Time 2024-12-24 01:42:05 [2024-12-24 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088879', 'tblTempUsageDetail_20' ) start [2024-12-24 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088879', 'tblTempUsageDetail_20' ) end [2024-12-24 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088879', 'tblTempVendorCDR_20' ) start [2024-12-24 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088879', 'tblTempVendorCDR_20' ) end [2024-12-24 01:42:17] Production.INFO: ProcessCDR(1,14088879,1,1,2) [2024-12-24 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088879', 'tblTempUsageDetail_20' ) start [2024-12-24 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088879', 'tblTempUsageDetail_20' ) end [2024-12-24 01:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:42:20] Production.INFO: ==26515== Releasing lock... [2024-12-24 01:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:42:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:43:04 [end_date_ymd] => 2024-12-24 01:43:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:43:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:43:17] Production.INFO: count ==237 [2024-12-24 01:43:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:43:04 - End Time 2024-12-24 01:43:04 [2024-12-24 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088888', 'tblTempUsageDetail_20' ) start [2024-12-24 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088888', 'tblTempUsageDetail_20' ) end [2024-12-24 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088888', 'tblTempVendorCDR_20' ) start [2024-12-24 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088888', 'tblTempVendorCDR_20' ) end [2024-12-24 01:43:17] Production.INFO: ProcessCDR(1,14088888,1,1,2) [2024-12-24 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088888', 'tblTempUsageDetail_20' ) start [2024-12-24 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088888', 'tblTempUsageDetail_20' ) end [2024-12-24 01:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:43:20] Production.INFO: ==26596== Releasing lock... [2024-12-24 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:43:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:44:05 [end_date_ymd] => 2024-12-24 01:44:05 [RateCDR] => 1 ) [2024-12-24 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:44:05' and `end` < '2024-12-24 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:44:17] Production.INFO: count ==237 [2024-12-24 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:44:05 - End Time 2024-12-24 01:44:05 [2024-12-24 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088893', 'tblTempUsageDetail_20' ) start [2024-12-24 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088893', 'tblTempUsageDetail_20' ) end [2024-12-24 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088893', 'tblTempVendorCDR_20' ) start [2024-12-24 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088893', 'tblTempVendorCDR_20' ) end [2024-12-24 01:44:17] Production.INFO: ProcessCDR(1,14088893,1,1,2) [2024-12-24 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088893', 'tblTempUsageDetail_20' ) start [2024-12-24 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088893', 'tblTempUsageDetail_20' ) end [2024-12-24 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:44:20] Production.INFO: ==26681== Releasing lock... [2024-12-24 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:44:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:45:05 [end_date_ymd] => 2024-12-24 01:45:05 [RateCDR] => 1 ) [2024-12-24 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:45:05' and `end` < '2024-12-24 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:45:20] Production.INFO: count ==237 [2024-12-24 01:45:20] Production.ERROR: pbx CDR StartTime 2024-12-23 22:45:05 - End Time 2024-12-24 01:45:05 [2024-12-24 01:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088898', 'tblTempUsageDetail_20' ) start [2024-12-24 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088898', 'tblTempUsageDetail_20' ) end [2024-12-24 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088898', 'tblTempVendorCDR_20' ) start [2024-12-24 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088898', 'tblTempVendorCDR_20' ) end [2024-12-24 01:45:20] Production.INFO: ProcessCDR(1,14088898,1,1,2) [2024-12-24 01:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088898', 'tblTempUsageDetail_20' ) start [2024-12-24 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088898', 'tblTempUsageDetail_20' ) end [2024-12-24 01:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:45:23] Production.INFO: ==26762== Releasing lock... [2024-12-24 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:45:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:46:05 [end_date_ymd] => 2024-12-24 01:46:05 [RateCDR] => 1 ) [2024-12-24 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:46:05' and `end` < '2024-12-24 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:46:17] Production.INFO: count ==237 [2024-12-24 01:46:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:46:05 - End Time 2024-12-24 01:46:05 [2024-12-24 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088903', 'tblTempUsageDetail_20' ) start [2024-12-24 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088903', 'tblTempUsageDetail_20' ) end [2024-12-24 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088903', 'tblTempVendorCDR_20' ) start [2024-12-24 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088903', 'tblTempVendorCDR_20' ) end [2024-12-24 01:46:17] Production.INFO: ProcessCDR(1,14088903,1,1,2) [2024-12-24 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088903', 'tblTempUsageDetail_20' ) start [2024-12-24 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088903', 'tblTempUsageDetail_20' ) end [2024-12-24 01:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:46:20] Production.INFO: ==26840== Releasing lock... [2024-12-24 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:46:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:47:04 [end_date_ymd] => 2024-12-24 01:47:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:47:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:47:17] Production.INFO: count ==237 [2024-12-24 01:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:47:04 - End Time 2024-12-24 01:47:04 [2024-12-24 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088908', 'tblTempUsageDetail_20' ) start [2024-12-24 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088908', 'tblTempUsageDetail_20' ) end [2024-12-24 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088908', 'tblTempVendorCDR_20' ) start [2024-12-24 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088908', 'tblTempVendorCDR_20' ) end [2024-12-24 01:47:17] Production.INFO: ProcessCDR(1,14088908,1,1,2) [2024-12-24 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088908', 'tblTempUsageDetail_20' ) start [2024-12-24 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088908', 'tblTempUsageDetail_20' ) end [2024-12-24 01:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:47:20] Production.INFO: ==26918== Releasing lock... [2024-12-24 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:47:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:48:05 [end_date_ymd] => 2024-12-24 01:48:05 [RateCDR] => 1 ) [2024-12-24 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:48:05' and `end` < '2024-12-24 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:48:17] Production.INFO: count ==237 [2024-12-24 01:48:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:48:05 - End Time 2024-12-24 01:48:05 [2024-12-24 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088913', 'tblTempUsageDetail_20' ) start [2024-12-24 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088913', 'tblTempUsageDetail_20' ) end [2024-12-24 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088913', 'tblTempVendorCDR_20' ) start [2024-12-24 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088913', 'tblTempVendorCDR_20' ) end [2024-12-24 01:48:17] Production.INFO: ProcessCDR(1,14088913,1,1,2) [2024-12-24 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088913', 'tblTempUsageDetail_20' ) start [2024-12-24 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088913', 'tblTempUsageDetail_20' ) end [2024-12-24 01:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:48:20] Production.INFO: ==27036== Releasing lock... [2024-12-24 01:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:48:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:49:05 [end_date_ymd] => 2024-12-24 01:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:49:18] Production.INFO: count ==237 [2024-12-24 01:49:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:49:05 - End Time 2024-12-24 01:49:05 [2024-12-24 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088918', 'tblTempUsageDetail_20' ) start [2024-12-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088918', 'tblTempUsageDetail_20' ) end [2024-12-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088918', 'tblTempVendorCDR_20' ) start [2024-12-24 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088918', 'tblTempVendorCDR_20' ) end [2024-12-24 01:49:18] Production.INFO: ProcessCDR(1,14088918,1,1,2) [2024-12-24 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088918', 'tblTempUsageDetail_20' ) start [2024-12-24 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088918', 'tblTempUsageDetail_20' ) end [2024-12-24 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:49:21] Production.INFO: ==27116== Releasing lock... [2024-12-24 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:49:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:50:05 [end_date_ymd] => 2024-12-24 01:50:05 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:50:05' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:50:17] Production.INFO: count ==243 [2024-12-24 01:50:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:50:05 - End Time 2024-12-24 01:50:05 [2024-12-24 01:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088924', 'tblTempUsageDetail_20' ) start [2024-12-24 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088924', 'tblTempUsageDetail_20' ) end [2024-12-24 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088924', 'tblTempVendorCDR_20' ) start [2024-12-24 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088924', 'tblTempVendorCDR_20' ) end [2024-12-24 01:50:17] Production.INFO: ProcessCDR(1,14088924,1,1,2) [2024-12-24 01:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088924', 'tblTempUsageDetail_20' ) start [2024-12-24 01:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088924', 'tblTempUsageDetail_20' ) end [2024-12-24 01:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:50:20] Production.INFO: ==27194== Releasing lock... [2024-12-24 01:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:50:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:51:05 [end_date_ymd] => 2024-12-24 01:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:51:17] Production.INFO: count ==256 [2024-12-24 01:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:51:05 - End Time 2024-12-24 01:51:05 [2024-12-24 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088929', 'tblTempUsageDetail_20' ) start [2024-12-24 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088929', 'tblTempUsageDetail_20' ) end [2024-12-24 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088929', 'tblTempVendorCDR_20' ) start [2024-12-24 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088929', 'tblTempVendorCDR_20' ) end [2024-12-24 01:51:18] Production.INFO: ProcessCDR(1,14088929,1,1,2) [2024-12-24 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088929', 'tblTempUsageDetail_20' ) start [2024-12-24 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088929', 'tblTempUsageDetail_20' ) end [2024-12-24 01:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:51:22] Production.INFO: ==27277== Releasing lock... [2024-12-24 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:51:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:52:04 [end_date_ymd] => 2024-12-24 01:52:04 [RateCDR] => 1 ) [2024-12-24 01:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:52:04' and `end` < '2024-12-24 01:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:52:19] Production.INFO: count ==256 [2024-12-24 01:52:19] Production.ERROR: pbx CDR StartTime 2024-12-23 22:52:04 - End Time 2024-12-24 01:52:04 [2024-12-24 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088934', 'tblTempUsageDetail_20' ) start [2024-12-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088934', 'tblTempUsageDetail_20' ) end [2024-12-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088934', 'tblTempVendorCDR_20' ) start [2024-12-24 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088934', 'tblTempVendorCDR_20' ) end [2024-12-24 01:52:19] Production.INFO: ProcessCDR(1,14088934,1,1,2) [2024-12-24 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088934', 'tblTempUsageDetail_20' ) start [2024-12-24 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088934', 'tblTempUsageDetail_20' ) end [2024-12-24 01:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:52:22] Production.INFO: ==27362== Releasing lock... [2024-12-24 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:52:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:53:04 [end_date_ymd] => 2024-12-24 01:53:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:53:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:53:17] Production.INFO: count ==252 [2024-12-24 01:53:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:53:04 - End Time 2024-12-24 01:53:04 [2024-12-24 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088939', 'tblTempUsageDetail_20' ) start [2024-12-24 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088939', 'tblTempUsageDetail_20' ) end [2024-12-24 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088939', 'tblTempVendorCDR_20' ) start [2024-12-24 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088939', 'tblTempVendorCDR_20' ) end [2024-12-24 01:53:17] Production.INFO: ProcessCDR(1,14088939,1,1,2) [2024-12-24 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088939', 'tblTempUsageDetail_20' ) start [2024-12-24 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088939', 'tblTempUsageDetail_20' ) end [2024-12-24 01:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:53:20] Production.INFO: ==27452== Releasing lock... [2024-12-24 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:53:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:54:05 [end_date_ymd] => 2024-12-24 01:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:54:18] Production.INFO: count ==250 [2024-12-24 01:54:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:54:05 - End Time 2024-12-24 01:54:05 [2024-12-24 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088944', 'tblTempUsageDetail_20' ) start [2024-12-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088944', 'tblTempUsageDetail_20' ) end [2024-12-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088944', 'tblTempVendorCDR_20' ) start [2024-12-24 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088944', 'tblTempVendorCDR_20' ) end [2024-12-24 01:54:18] Production.INFO: ProcessCDR(1,14088944,1,1,2) [2024-12-24 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088944', 'tblTempUsageDetail_20' ) start [2024-12-24 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088944', 'tblTempUsageDetail_20' ) end [2024-12-24 01:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:54:21] Production.INFO: ==27530== Releasing lock... [2024-12-24 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:54:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:55:04 [end_date_ymd] => 2024-12-24 01:55:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:55:04' and `end` < '2024-12-24 01:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:55:17] Production.INFO: count ==251 [2024-12-24 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:55:04 - End Time 2024-12-24 01:55:04 [2024-12-24 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088949', 'tblTempUsageDetail_20' ) start [2024-12-24 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088949', 'tblTempUsageDetail_20' ) end [2024-12-24 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088949', 'tblTempVendorCDR_20' ) start [2024-12-24 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088949', 'tblTempVendorCDR_20' ) end [2024-12-24 01:55:17] Production.INFO: ProcessCDR(1,14088949,1,1,2) [2024-12-24 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088949', 'tblTempUsageDetail_20' ) start [2024-12-24 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088949', 'tblTempUsageDetail_20' ) end [2024-12-24 01:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:55:21] Production.INFO: ==27608== Releasing lock... [2024-12-24 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:55:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:56:05 [end_date_ymd] => 2024-12-24 01:56:05 [RateCDR] => 1 ) [2024-12-24 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:56:05' and `end` < '2024-12-24 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:56:17] Production.INFO: count ==250 [2024-12-24 01:56:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:56:05 - End Time 2024-12-24 01:56:05 [2024-12-24 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088954', 'tblTempUsageDetail_20' ) start [2024-12-24 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088954', 'tblTempUsageDetail_20' ) end [2024-12-24 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088954', 'tblTempVendorCDR_20' ) start [2024-12-24 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088954', 'tblTempVendorCDR_20' ) end [2024-12-24 01:56:17] Production.INFO: ProcessCDR(1,14088954,1,1,2) [2024-12-24 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088954', 'tblTempUsageDetail_20' ) start [2024-12-24 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088954', 'tblTempUsageDetail_20' ) end [2024-12-24 01:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:56:21] Production.INFO: ==27684== Releasing lock... [2024-12-24 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:56:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:57:04 [end_date_ymd] => 2024-12-24 01:57:04 [RateCDR] => 1 ) [2024-12-24 01: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` >= '2024-12-23 22:57:04' and `end` < '2024-12-24 01: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 ,'') [2024-12-24 01:57:16] Production.INFO: count ==252 [2024-12-24 01:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 22:57:04 - End Time 2024-12-24 01:57:04 [2024-12-24 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088959', 'tblTempUsageDetail_20' ) start [2024-12-24 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088959', 'tblTempUsageDetail_20' ) end [2024-12-24 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088959', 'tblTempVendorCDR_20' ) start [2024-12-24 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088959', 'tblTempVendorCDR_20' ) end [2024-12-24 01:57:17] Production.INFO: ProcessCDR(1,14088959,1,1,2) [2024-12-24 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088959', 'tblTempUsageDetail_20' ) start [2024-12-24 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088959', 'tblTempUsageDetail_20' ) end [2024-12-24 01:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:57:20] Production.INFO: ==27764== Releasing lock... [2024-12-24 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:57:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:58:05 [end_date_ymd] => 2024-12-24 01:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 22:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 01:58:18] Production.INFO: count ==252 [2024-12-24 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-23 22:58:05 - End Time 2024-12-24 01:58:05 [2024-12-24 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088964', 'tblTempUsageDetail_20' ) start [2024-12-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088964', 'tblTempUsageDetail_20' ) end [2024-12-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088964', 'tblTempVendorCDR_20' ) start [2024-12-24 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088964', 'tblTempVendorCDR_20' ) end [2024-12-24 01:58:18] Production.INFO: ProcessCDR(1,14088964,1,1,2) [2024-12-24 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088964', 'tblTempUsageDetail_20' ) start [2024-12-24 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088964', 'tblTempUsageDetail_20' ) end [2024-12-24 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:58:21] Production.INFO: ==27840== Releasing lock... [2024-12-24 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:58:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 22:59:04 [end_date_ymd] => 2024-12-24 01:59:04 [RateCDR] => 1 ) [2024-12-24 01:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 22:59:04' and `end` < '2024-12-24 01:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 01:59:16] Production.INFO: count ==255 [2024-12-24 01:59:16] Production.ERROR: pbx CDR StartTime 2024-12-23 22:59:04 - End Time 2024-12-24 01:59:04 [2024-12-24 01:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088969', 'tblTempUsageDetail_20' ) start [2024-12-24 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088969', 'tblTempUsageDetail_20' ) end [2024-12-24 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088969', 'tblTempVendorCDR_20' ) start [2024-12-24 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088969', 'tblTempVendorCDR_20' ) end [2024-12-24 01:59:16] Production.INFO: ProcessCDR(1,14088969,1,1,2) [2024-12-24 01:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 01:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088969', 'tblTempUsageDetail_20' ) start [2024-12-24 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088969', 'tblTempUsageDetail_20' ) end [2024-12-24 01:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 01:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 01:59:20] Production.INFO: ==27914== Releasing lock... [2024-12-24 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 01:59:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:00:06 [end_date_ymd] => 2024-12-24 02:00:06 [RateCDR] => 1 ) [2024-12-24 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:00:06' and `end` < '2024-12-24 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:00:18] Production.INFO: count ==264 [2024-12-24 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:00:06 - End Time 2024-12-24 02:00:06 [2024-12-24 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088975', 'tblTempUsageDetail_20' ) start [2024-12-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088975', 'tblTempUsageDetail_20' ) end [2024-12-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088975', 'tblTempVendorCDR_20' ) start [2024-12-24 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088975', 'tblTempVendorCDR_20' ) end [2024-12-24 02:00:18] Production.INFO: ProcessCDR(1,14088975,1,1,2) [2024-12-24 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088975', 'tblTempUsageDetail_20' ) start [2024-12-24 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088975', 'tblTempUsageDetail_20' ) end [2024-12-24 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:00:21] Production.INFO: ==27997== Releasing lock... [2024-12-24 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:00:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:01:05 [end_date_ymd] => 2024-12-24 02:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:01:18] Production.INFO: count ==268 [2024-12-24 02:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:01:05 - End Time 2024-12-24 02:01:05 [2024-12-24 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088980', 'tblTempUsageDetail_20' ) start [2024-12-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088980', 'tblTempUsageDetail_20' ) end [2024-12-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088980', 'tblTempVendorCDR_20' ) start [2024-12-24 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088980', 'tblTempVendorCDR_20' ) end [2024-12-24 02:01:18] Production.INFO: ProcessCDR(1,14088980,1,1,2) [2024-12-24 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088980', 'tblTempUsageDetail_20' ) start [2024-12-24 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088980', 'tblTempUsageDetail_20' ) end [2024-12-24 02:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:01:21] Production.INFO: ==28206== Releasing lock... [2024-12-24 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:01:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:02:05 [end_date_ymd] => 2024-12-24 02:02:05 [RateCDR] => 1 ) [2024-12-24 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:02:05' and `end` < '2024-12-24 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:02:17] Production.INFO: count ==268 [2024-12-24 02:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:02:05 - End Time 2024-12-24 02:02:05 [2024-12-24 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088985', 'tblTempUsageDetail_20' ) start [2024-12-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088985', 'tblTempUsageDetail_20' ) end [2024-12-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088985', 'tblTempVendorCDR_20' ) start [2024-12-24 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088985', 'tblTempVendorCDR_20' ) end [2024-12-24 02:02:17] Production.INFO: ProcessCDR(1,14088985,1,1,2) [2024-12-24 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088985', 'tblTempUsageDetail_20' ) start [2024-12-24 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088985', 'tblTempUsageDetail_20' ) end [2024-12-24 02:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:02:20] Production.INFO: ==28285== Releasing lock... [2024-12-24 02:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:02:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:03:05 [end_date_ymd] => 2024-12-24 02:03:05 [RateCDR] => 1 ) [2024-12-24 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:03:18] Production.INFO: count ==268 [2024-12-24 02:03:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:03:05 - End Time 2024-12-24 02:03:05 [2024-12-24 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088990', 'tblTempUsageDetail_20' ) start [2024-12-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088990', 'tblTempUsageDetail_20' ) end [2024-12-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088990', 'tblTempVendorCDR_20' ) start [2024-12-24 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088990', 'tblTempVendorCDR_20' ) end [2024-12-24 02:03:18] Production.INFO: ProcessCDR(1,14088990,1,1,2) [2024-12-24 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088990', 'tblTempUsageDetail_20' ) start [2024-12-24 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088990', 'tblTempUsageDetail_20' ) end [2024-12-24 02:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:03:21] Production.INFO: ==28399== Releasing lock... [2024-12-24 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:03:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:04:04 [end_date_ymd] => 2024-12-24 02:04:04 [RateCDR] => 1 ) [2024-12-24 02: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` >= '2024-12-23 23:04:04' and `end` < '2024-12-24 02: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 ,'') [2024-12-24 02:04:17] Production.INFO: count ==268 [2024-12-24 02:04:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:04:04 - End Time 2024-12-24 02:04:04 [2024-12-24 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088995', 'tblTempUsageDetail_20' ) start [2024-12-24 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088995', 'tblTempUsageDetail_20' ) end [2024-12-24 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088995', 'tblTempVendorCDR_20' ) start [2024-12-24 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088995', 'tblTempVendorCDR_20' ) end [2024-12-24 02:04:17] Production.INFO: ProcessCDR(1,14088995,1,1,2) [2024-12-24 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088995', 'tblTempUsageDetail_20' ) start [2024-12-24 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088995', 'tblTempUsageDetail_20' ) end [2024-12-24 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:04:21] Production.INFO: ==28473== Releasing lock... [2024-12-24 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:04:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:05:05 [end_date_ymd] => 2024-12-24 02:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:05:17] Production.INFO: count ==268 [2024-12-24 02:05:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:05:05 - End Time 2024-12-24 02:05:05 [2024-12-24 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089000', 'tblTempUsageDetail_20' ) start [2024-12-24 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089000', 'tblTempUsageDetail_20' ) end [2024-12-24 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089000', 'tblTempVendorCDR_20' ) start [2024-12-24 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089000', 'tblTempVendorCDR_20' ) end [2024-12-24 02:05:17] Production.INFO: ProcessCDR(1,14089000,1,1,2) [2024-12-24 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089000', 'tblTempUsageDetail_20' ) start [2024-12-24 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089000', 'tblTempUsageDetail_20' ) end [2024-12-24 02:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:05:20] Production.INFO: ==28549== Releasing lock... [2024-12-24 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:05:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:06:04 [end_date_ymd] => 2024-12-24 02:06:04 [RateCDR] => 1 ) [2024-12-24 02:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:06:04' and `end` < '2024-12-24 02:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:06:16] Production.INFO: count ==268 [2024-12-24 02:06:16] Production.ERROR: pbx CDR StartTime 2024-12-23 23:06:04 - End Time 2024-12-24 02:06:04 [2024-12-24 02:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089005', 'tblTempUsageDetail_20' ) start [2024-12-24 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089005', 'tblTempUsageDetail_20' ) end [2024-12-24 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089005', 'tblTempVendorCDR_20' ) start [2024-12-24 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089005', 'tblTempVendorCDR_20' ) end [2024-12-24 02:06:16] Production.INFO: ProcessCDR(1,14089005,1,1,2) [2024-12-24 02:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089005', 'tblTempUsageDetail_20' ) start [2024-12-24 02:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089005', 'tblTempUsageDetail_20' ) end [2024-12-24 02:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:06:19] Production.INFO: ==28625== Releasing lock... [2024-12-24 02:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:06:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:07:05 [end_date_ymd] => 2024-12-24 02:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:07:18] Production.INFO: count ==268 [2024-12-24 02:07:19] Production.ERROR: pbx CDR StartTime 2024-12-23 23:07:05 - End Time 2024-12-24 02:07:05 [2024-12-24 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089010', 'tblTempUsageDetail_20' ) start [2024-12-24 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089010', 'tblTempUsageDetail_20' ) end [2024-12-24 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089010', 'tblTempVendorCDR_20' ) start [2024-12-24 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089010', 'tblTempVendorCDR_20' ) end [2024-12-24 02:07:19] Production.INFO: ProcessCDR(1,14089010,1,1,2) [2024-12-24 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089010', 'tblTempUsageDetail_20' ) start [2024-12-24 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089010', 'tblTempUsageDetail_20' ) end [2024-12-24 02:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:07:22] Production.INFO: ==28705== Releasing lock... [2024-12-24 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:07:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:08:05 [end_date_ymd] => 2024-12-24 02:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:08:17] Production.INFO: count ==268 [2024-12-24 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:08:05 - End Time 2024-12-24 02:08:05 [2024-12-24 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089015', 'tblTempUsageDetail_20' ) start [2024-12-24 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089015', 'tblTempUsageDetail_20' ) end [2024-12-24 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089015', 'tblTempVendorCDR_20' ) start [2024-12-24 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089015', 'tblTempVendorCDR_20' ) end [2024-12-24 02:08:17] Production.INFO: ProcessCDR(1,14089015,1,1,2) [2024-12-24 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089015', 'tblTempUsageDetail_20' ) start [2024-12-24 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089015', 'tblTempUsageDetail_20' ) end [2024-12-24 02:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:08:20] Production.INFO: ==28788== Releasing lock... [2024-12-24 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:08:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:09:05 [end_date_ymd] => 2024-12-24 02:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:09:17] Production.INFO: count ==268 [2024-12-24 02:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:09:05 - End Time 2024-12-24 02:09:05 [2024-12-24 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089020', 'tblTempUsageDetail_20' ) start [2024-12-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089020', 'tblTempUsageDetail_20' ) end [2024-12-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089020', 'tblTempVendorCDR_20' ) start [2024-12-24 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089020', 'tblTempVendorCDR_20' ) end [2024-12-24 02:09:17] Production.INFO: ProcessCDR(1,14089020,1,1,2) [2024-12-24 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089020', 'tblTempUsageDetail_20' ) start [2024-12-24 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089020', 'tblTempUsageDetail_20' ) end [2024-12-24 02:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:09:20] Production.INFO: ==28878== Releasing lock... [2024-12-24 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:09:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:10:06 [end_date_ymd] => 2024-12-24 02:10:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:10:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:10:19] Production.INFO: count ==268 [2024-12-24 02:10:19] Production.ERROR: pbx CDR StartTime 2024-12-23 23:10:06 - End Time 2024-12-24 02:10:06 [2024-12-24 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089025', 'tblTempUsageDetail_20' ) start [2024-12-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089025', 'tblTempUsageDetail_20' ) end [2024-12-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089025', 'tblTempVendorCDR_20' ) start [2024-12-24 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089025', 'tblTempVendorCDR_20' ) end [2024-12-24 02:10:19] Production.INFO: ProcessCDR(1,14089025,1,1,2) [2024-12-24 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089025', 'tblTempUsageDetail_20' ) start [2024-12-24 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089025', 'tblTempUsageDetail_20' ) end [2024-12-24 02:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:10:22] Production.INFO: ==28980== Releasing lock... [2024-12-24 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:10:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:11:05 [end_date_ymd] => 2024-12-24 02:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:11:18] Production.INFO: count ==268 [2024-12-24 02:11:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:11:05 - End Time 2024-12-24 02:11:05 [2024-12-24 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089031', 'tblTempUsageDetail_20' ) start [2024-12-24 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089031', 'tblTempUsageDetail_20' ) end [2024-12-24 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089031', 'tblTempVendorCDR_20' ) start [2024-12-24 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089031', 'tblTempVendorCDR_20' ) end [2024-12-24 02:11:18] Production.INFO: ProcessCDR(1,14089031,1,1,2) [2024-12-24 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089031', 'tblTempUsageDetail_20' ) start [2024-12-24 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089031', 'tblTempUsageDetail_20' ) end [2024-12-24 02:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:11:21] Production.INFO: ==29082== Releasing lock... [2024-12-24 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:11:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:12:05 [end_date_ymd] => 2024-12-24 02:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:12:18] Production.INFO: count ==268 [2024-12-24 02:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:12:05 - End Time 2024-12-24 02:12:05 [2024-12-24 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089036', 'tblTempUsageDetail_20' ) start [2024-12-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089036', 'tblTempUsageDetail_20' ) end [2024-12-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089036', 'tblTempVendorCDR_20' ) start [2024-12-24 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089036', 'tblTempVendorCDR_20' ) end [2024-12-24 02:12:18] Production.INFO: ProcessCDR(1,14089036,1,1,2) [2024-12-24 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089036', 'tblTempUsageDetail_20' ) start [2024-12-24 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089036', 'tblTempUsageDetail_20' ) end [2024-12-24 02:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:12:21] Production.INFO: ==29181== Releasing lock... [2024-12-24 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:12:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:13:05 [end_date_ymd] => 2024-12-24 02:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:13:19] Production.INFO: count ==268 [2024-12-24 02:13:19] Production.ERROR: pbx CDR StartTime 2024-12-23 23:13:05 - End Time 2024-12-24 02:13:05 [2024-12-24 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089041', 'tblTempUsageDetail_20' ) start [2024-12-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089041', 'tblTempUsageDetail_20' ) end [2024-12-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089041', 'tblTempVendorCDR_20' ) start [2024-12-24 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089041', 'tblTempVendorCDR_20' ) end [2024-12-24 02:13:19] Production.INFO: ProcessCDR(1,14089041,1,1,2) [2024-12-24 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089041', 'tblTempUsageDetail_20' ) start [2024-12-24 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089041', 'tblTempUsageDetail_20' ) end [2024-12-24 02:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:13:22] Production.INFO: ==29282== Releasing lock... [2024-12-24 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:13:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:14:05 [end_date_ymd] => 2024-12-24 02:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:14:17] Production.INFO: count ==269 [2024-12-24 02:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:14:05 - End Time 2024-12-24 02:14:05 [2024-12-24 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089046', 'tblTempUsageDetail_20' ) start [2024-12-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089046', 'tblTempUsageDetail_20' ) end [2024-12-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089046', 'tblTempVendorCDR_20' ) start [2024-12-24 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089046', 'tblTempVendorCDR_20' ) end [2024-12-24 02:14:17] Production.INFO: ProcessCDR(1,14089046,1,1,2) [2024-12-24 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089046', 'tblTempUsageDetail_20' ) start [2024-12-24 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089046', 'tblTempUsageDetail_20' ) end [2024-12-24 02:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:14:20] Production.INFO: ==29380== Releasing lock... [2024-12-24 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:14:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:15:04 [end_date_ymd] => 2024-12-24 02:15:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:15:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:15:16] Production.INFO: count ==269 [2024-12-24 02:15:16] Production.ERROR: pbx CDR StartTime 2024-12-23 23:15:04 - End Time 2024-12-24 02:15:04 [2024-12-24 02:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089051', 'tblTempUsageDetail_20' ) start [2024-12-24 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089051', 'tblTempUsageDetail_20' ) end [2024-12-24 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089051', 'tblTempVendorCDR_20' ) start [2024-12-24 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089051', 'tblTempVendorCDR_20' ) end [2024-12-24 02:15:16] Production.INFO: ProcessCDR(1,14089051,1,1,2) [2024-12-24 02:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089051', 'tblTempUsageDetail_20' ) start [2024-12-24 02:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089051', 'tblTempUsageDetail_20' ) end [2024-12-24 02:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:15:19] Production.INFO: ==29464== Releasing lock... [2024-12-24 02:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:15:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:16:05 [end_date_ymd] => 2024-12-24 02:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:16:17] Production.INFO: count ==268 [2024-12-24 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:16:05 - End Time 2024-12-24 02:16:05 [2024-12-24 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089056', 'tblTempUsageDetail_20' ) start [2024-12-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089056', 'tblTempUsageDetail_20' ) end [2024-12-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089056', 'tblTempVendorCDR_20' ) start [2024-12-24 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089056', 'tblTempVendorCDR_20' ) end [2024-12-24 02:16:17] Production.INFO: ProcessCDR(1,14089056,1,1,2) [2024-12-24 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089056', 'tblTempUsageDetail_20' ) start [2024-12-24 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089056', 'tblTempUsageDetail_20' ) end [2024-12-24 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:16:20] Production.INFO: ==29543== Releasing lock... [2024-12-24 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:16:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:17:05 [end_date_ymd] => 2024-12-24 02:17:05 [RateCDR] => 1 ) [2024-12-24 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:17:05' and `end` < '2024-12-24 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:17:18] Production.INFO: count ==267 [2024-12-24 02:17:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:17:05 - End Time 2024-12-24 02:17:05 [2024-12-24 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089061', 'tblTempUsageDetail_20' ) start [2024-12-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089061', 'tblTempUsageDetail_20' ) end [2024-12-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089061', 'tblTempVendorCDR_20' ) start [2024-12-24 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089061', 'tblTempVendorCDR_20' ) end [2024-12-24 02:17:18] Production.INFO: ProcessCDR(1,14089061,1,1,2) [2024-12-24 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089061', 'tblTempUsageDetail_20' ) start [2024-12-24 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089061', 'tblTempUsageDetail_20' ) end [2024-12-24 02:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:17:21] Production.INFO: ==29619== Releasing lock... [2024-12-24 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:17:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:18:05 [end_date_ymd] => 2024-12-24 02:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:18:17] Production.INFO: count ==267 [2024-12-24 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:18:05 - End Time 2024-12-24 02:18:05 [2024-12-24 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089066', 'tblTempUsageDetail_20' ) start [2024-12-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089066', 'tblTempUsageDetail_20' ) end [2024-12-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089066', 'tblTempVendorCDR_20' ) start [2024-12-24 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089066', 'tblTempVendorCDR_20' ) end [2024-12-24 02:18:17] Production.INFO: ProcessCDR(1,14089066,1,1,2) [2024-12-24 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089066', 'tblTempUsageDetail_20' ) start [2024-12-24 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089066', 'tblTempUsageDetail_20' ) end [2024-12-24 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:18:20] Production.INFO: ==29693== Releasing lock... [2024-12-24 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:18:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:19:05 [end_date_ymd] => 2024-12-24 02:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:19:18] Production.INFO: count ==265 [2024-12-24 02:19:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:19:05 - End Time 2024-12-24 02:19:05 [2024-12-24 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089071', 'tblTempUsageDetail_20' ) start [2024-12-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089071', 'tblTempUsageDetail_20' ) end [2024-12-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089071', 'tblTempVendorCDR_20' ) start [2024-12-24 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089071', 'tblTempVendorCDR_20' ) end [2024-12-24 02:19:18] Production.INFO: ProcessCDR(1,14089071,1,1,2) [2024-12-24 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089071', 'tblTempUsageDetail_20' ) start [2024-12-24 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089071', 'tblTempUsageDetail_20' ) end [2024-12-24 02:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:19:21] Production.INFO: ==29813== Releasing lock... [2024-12-24 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:19:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:20:05 [end_date_ymd] => 2024-12-24 02:20:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:20:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:20:18] Production.INFO: count ==266 [2024-12-24 02:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:20:05 - End Time 2024-12-24 02:20:05 [2024-12-24 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089076', 'tblTempUsageDetail_20' ) start [2024-12-24 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089076', 'tblTempUsageDetail_20' ) end [2024-12-24 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089076', 'tblTempVendorCDR_20' ) start [2024-12-24 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089076', 'tblTempVendorCDR_20' ) end [2024-12-24 02:20:18] Production.INFO: ProcessCDR(1,14089076,1,1,2) [2024-12-24 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089076', 'tblTempUsageDetail_20' ) start [2024-12-24 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089076', 'tblTempUsageDetail_20' ) end [2024-12-24 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:20:21] Production.INFO: ==29889== Releasing lock... [2024-12-24 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:20:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:21:05 [end_date_ymd] => 2024-12-24 02:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:21:17] Production.INFO: count ==266 [2024-12-24 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:21:05 - End Time 2024-12-24 02:21:05 [2024-12-24 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089082', 'tblTempUsageDetail_20' ) start [2024-12-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089082', 'tblTempUsageDetail_20' ) end [2024-12-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089082', 'tblTempVendorCDR_20' ) start [2024-12-24 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089082', 'tblTempVendorCDR_20' ) end [2024-12-24 02:21:17] Production.INFO: ProcessCDR(1,14089082,1,1,2) [2024-12-24 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089082', 'tblTempUsageDetail_20' ) start [2024-12-24 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089082', 'tblTempUsageDetail_20' ) end [2024-12-24 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:21:20] Production.INFO: ==29965== Releasing lock... [2024-12-24 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:21:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:22:05 [end_date_ymd] => 2024-12-24 02:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:22:18] Production.INFO: count ==266 [2024-12-24 02:22:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:22:05 - End Time 2024-12-24 02:22:05 [2024-12-24 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089087', 'tblTempUsageDetail_20' ) start [2024-12-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089087', 'tblTempUsageDetail_20' ) end [2024-12-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089087', 'tblTempVendorCDR_20' ) start [2024-12-24 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089087', 'tblTempVendorCDR_20' ) end [2024-12-24 02:22:18] Production.INFO: ProcessCDR(1,14089087,1,1,2) [2024-12-24 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089087', 'tblTempUsageDetail_20' ) start [2024-12-24 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089087', 'tblTempUsageDetail_20' ) end [2024-12-24 02:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:22:21] Production.INFO: ==30038== Releasing lock... [2024-12-24 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:22:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:23:05 [end_date_ymd] => 2024-12-24 02:23:05 [RateCDR] => 1 ) [2024-12-24 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:23:05' and `end` < '2024-12-24 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:23:17] Production.INFO: count ==266 [2024-12-24 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:23:05 - End Time 2024-12-24 02:23:05 [2024-12-24 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089092', 'tblTempUsageDetail_20' ) start [2024-12-24 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089092', 'tblTempUsageDetail_20' ) end [2024-12-24 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089092', 'tblTempVendorCDR_20' ) start [2024-12-24 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089092', 'tblTempVendorCDR_20' ) end [2024-12-24 02:23:17] Production.INFO: ProcessCDR(1,14089092,1,1,2) [2024-12-24 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089092', 'tblTempUsageDetail_20' ) start [2024-12-24 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089092', 'tblTempUsageDetail_20' ) end [2024-12-24 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:23:20] Production.INFO: ==30111== Releasing lock... [2024-12-24 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:23:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:24:05 [end_date_ymd] => 2024-12-24 02:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:24:18] Production.INFO: count ==266 [2024-12-24 02:24:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:24:05 - End Time 2024-12-24 02:24:05 [2024-12-24 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089097', 'tblTempUsageDetail_20' ) start [2024-12-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089097', 'tblTempUsageDetail_20' ) end [2024-12-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089097', 'tblTempVendorCDR_20' ) start [2024-12-24 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089097', 'tblTempVendorCDR_20' ) end [2024-12-24 02:24:18] Production.INFO: ProcessCDR(1,14089097,1,1,2) [2024-12-24 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089097', 'tblTempUsageDetail_20' ) start [2024-12-24 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089097', 'tblTempUsageDetail_20' ) end [2024-12-24 02:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:24:21] Production.INFO: ==30186== Releasing lock... [2024-12-24 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:24:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:25:04 [end_date_ymd] => 2024-12-24 02:25:04 [RateCDR] => 1 ) [2024-12-24 02: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` >= '2024-12-23 23:25:04' and `end` < '2024-12-24 02: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 ,'') [2024-12-24 02:25:16] Production.INFO: count ==266 [2024-12-24 02:25:16] Production.ERROR: pbx CDR StartTime 2024-12-23 23:25:04 - End Time 2024-12-24 02:25:04 [2024-12-24 02:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089102', 'tblTempUsageDetail_20' ) start [2024-12-24 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089102', 'tblTempUsageDetail_20' ) end [2024-12-24 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089102', 'tblTempVendorCDR_20' ) start [2024-12-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089102', 'tblTempVendorCDR_20' ) end [2024-12-24 02:25:17] Production.INFO: ProcessCDR(1,14089102,1,1,2) [2024-12-24 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089102', 'tblTempUsageDetail_20' ) start [2024-12-24 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089102', 'tblTempUsageDetail_20' ) end [2024-12-24 02:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:25:21] Production.INFO: ==30259== Releasing lock... [2024-12-24 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:25:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:26:05 [end_date_ymd] => 2024-12-24 02:26:05 [RateCDR] => 1 ) [2024-12-24 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:26:05' and `end` < '2024-12-24 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:26:17] Production.INFO: count ==265 [2024-12-24 02:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:26:05 - End Time 2024-12-24 02:26:05 [2024-12-24 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089107', 'tblTempUsageDetail_20' ) start [2024-12-24 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089107', 'tblTempUsageDetail_20' ) end [2024-12-24 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089107', 'tblTempVendorCDR_20' ) start [2024-12-24 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089107', 'tblTempVendorCDR_20' ) end [2024-12-24 02:26:17] Production.INFO: ProcessCDR(1,14089107,1,1,2) [2024-12-24 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089107', 'tblTempUsageDetail_20' ) start [2024-12-24 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089107', 'tblTempUsageDetail_20' ) end [2024-12-24 02:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:26:20] Production.INFO: ==30331== Releasing lock... [2024-12-24 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:26:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:27:05 [end_date_ymd] => 2024-12-24 02:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:27:17] Production.INFO: count ==265 [2024-12-24 02:27:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:27:05 - End Time 2024-12-24 02:27:05 [2024-12-24 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089112', 'tblTempUsageDetail_20' ) start [2024-12-24 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089112', 'tblTempUsageDetail_20' ) end [2024-12-24 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089112', 'tblTempVendorCDR_20' ) start [2024-12-24 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089112', 'tblTempVendorCDR_20' ) end [2024-12-24 02:27:17] Production.INFO: ProcessCDR(1,14089112,1,1,2) [2024-12-24 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089112', 'tblTempUsageDetail_20' ) start [2024-12-24 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089112', 'tblTempUsageDetail_20' ) end [2024-12-24 02:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:27:20] Production.INFO: ==30413== Releasing lock... [2024-12-24 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:27:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:28:04 [end_date_ymd] => 2024-12-24 02:28:04 [RateCDR] => 1 ) [2024-12-24 02: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` >= '2024-12-23 23:28:04' and `end` < '2024-12-24 02: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 ,'') [2024-12-24 02:28:16] Production.INFO: count ==265 [2024-12-24 02:28:16] Production.ERROR: pbx CDR StartTime 2024-12-23 23:28:04 - End Time 2024-12-24 02:28:04 [2024-12-24 02:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089117', 'tblTempUsageDetail_20' ) start [2024-12-24 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089117', 'tblTempUsageDetail_20' ) end [2024-12-24 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089117', 'tblTempVendorCDR_20' ) start [2024-12-24 02:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089117', 'tblTempVendorCDR_20' ) end [2024-12-24 02:28:16] Production.INFO: ProcessCDR(1,14089117,1,1,2) [2024-12-24 02:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089117', 'tblTempUsageDetail_20' ) start [2024-12-24 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089117', 'tblTempUsageDetail_20' ) end [2024-12-24 02:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:28:20] Production.INFO: ==30496== Releasing lock... [2024-12-24 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:28:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:29:05 [end_date_ymd] => 2024-12-24 02:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:29:17] Production.INFO: count ==262 [2024-12-24 02:29:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:29:05 - End Time 2024-12-24 02:29:05 [2024-12-24 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089122', 'tblTempUsageDetail_20' ) start [2024-12-24 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089122', 'tblTempUsageDetail_20' ) end [2024-12-24 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089122', 'tblTempVendorCDR_20' ) start [2024-12-24 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089122', 'tblTempVendorCDR_20' ) end [2024-12-24 02:29:17] Production.INFO: ProcessCDR(1,14089122,1,1,2) [2024-12-24 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089122', 'tblTempUsageDetail_20' ) start [2024-12-24 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089122', 'tblTempUsageDetail_20' ) end [2024-12-24 02:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:29:20] Production.INFO: ==30568== Releasing lock... [2024-12-24 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:29:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:30:05 [end_date_ymd] => 2024-12-24 02:30:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:30:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:30:18] Production.INFO: count ==262 [2024-12-24 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:30:05 - End Time 2024-12-24 02:30:05 [2024-12-24 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089127', 'tblTempUsageDetail_20' ) start [2024-12-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089127', 'tblTempUsageDetail_20' ) end [2024-12-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089127', 'tblTempVendorCDR_20' ) start [2024-12-24 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089127', 'tblTempVendorCDR_20' ) end [2024-12-24 02:30:18] Production.INFO: ProcessCDR(1,14089127,1,1,2) [2024-12-24 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089127', 'tblTempUsageDetail_20' ) start [2024-12-24 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089127', 'tblTempUsageDetail_20' ) end [2024-12-24 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:30:21] Production.INFO: ==30672== Releasing lock... [2024-12-24 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:30:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:31:05 [end_date_ymd] => 2024-12-24 02:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:31:18] Production.INFO: count ==263 [2024-12-24 02:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:31:05 - End Time 2024-12-24 02:31:05 [2024-12-24 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089133', 'tblTempUsageDetail_20' ) start [2024-12-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089133', 'tblTempUsageDetail_20' ) end [2024-12-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089133', 'tblTempVendorCDR_20' ) start [2024-12-24 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089133', 'tblTempVendorCDR_20' ) end [2024-12-24 02:31:18] Production.INFO: ProcessCDR(1,14089133,1,1,2) [2024-12-24 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089133', 'tblTempUsageDetail_20' ) start [2024-12-24 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089133', 'tblTempUsageDetail_20' ) end [2024-12-24 02:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:31:21] Production.INFO: ==30772== Releasing lock... [2024-12-24 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:31:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:32:05 [end_date_ymd] => 2024-12-24 02:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:32:17] Production.INFO: count ==263 [2024-12-24 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:32:05 - End Time 2024-12-24 02:32:05 [2024-12-24 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089138', 'tblTempUsageDetail_20' ) start [2024-12-24 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089138', 'tblTempUsageDetail_20' ) end [2024-12-24 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089138', 'tblTempVendorCDR_20' ) start [2024-12-24 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089138', 'tblTempVendorCDR_20' ) end [2024-12-24 02:32:17] Production.INFO: ProcessCDR(1,14089138,1,1,2) [2024-12-24 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089138', 'tblTempUsageDetail_20' ) start [2024-12-24 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089138', 'tblTempUsageDetail_20' ) end [2024-12-24 02:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:32:20] Production.INFO: ==30874== Releasing lock... [2024-12-24 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:32:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:33:05 [end_date_ymd] => 2024-12-24 02:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:33:17] Production.INFO: count ==263 [2024-12-24 02:33:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:33:05 - End Time 2024-12-24 02:33:05 [2024-12-24 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089143', 'tblTempUsageDetail_20' ) start [2024-12-24 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089143', 'tblTempUsageDetail_20' ) end [2024-12-24 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089143', 'tblTempVendorCDR_20' ) start [2024-12-24 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089143', 'tblTempVendorCDR_20' ) end [2024-12-24 02:33:17] Production.INFO: ProcessCDR(1,14089143,1,1,2) [2024-12-24 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089143', 'tblTempUsageDetail_20' ) start [2024-12-24 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089143', 'tblTempUsageDetail_20' ) end [2024-12-24 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:33:21] Production.INFO: ==30976== Releasing lock... [2024-12-24 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:33:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-24 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:34:04 [end_date_ymd] => 2024-12-24 02:34:04 [RateCDR] => 1 ) [2024-12-24 02: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` >= '2024-12-23 23:34:04' and `end` < '2024-12-24 02: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 ,'') [2024-12-24 02:34:18] Production.INFO: count ==260 [2024-12-24 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:34:04 - End Time 2024-12-24 02:34:04 [2024-12-24 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089148', 'tblTempUsageDetail_20' ) start [2024-12-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089148', 'tblTempUsageDetail_20' ) end [2024-12-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089148', 'tblTempVendorCDR_20' ) start [2024-12-24 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089148', 'tblTempVendorCDR_20' ) end [2024-12-24 02:34:18] Production.INFO: ProcessCDR(1,14089148,1,1,2) [2024-12-24 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089148', 'tblTempUsageDetail_20' ) start [2024-12-24 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089148', 'tblTempUsageDetail_20' ) end [2024-12-24 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:34:21] Production.INFO: ==31075== Releasing lock... [2024-12-24 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:34:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:35:05 [end_date_ymd] => 2024-12-24 02:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:35:17] Production.INFO: count ==258 [2024-12-24 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:35:05 - End Time 2024-12-24 02:35:05 [2024-12-24 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089153', 'tblTempUsageDetail_20' ) start [2024-12-24 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089153', 'tblTempUsageDetail_20' ) end [2024-12-24 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089153', 'tblTempVendorCDR_20' ) start [2024-12-24 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089153', 'tblTempVendorCDR_20' ) end [2024-12-24 02:35:17] Production.INFO: ProcessCDR(1,14089153,1,1,2) [2024-12-24 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089153', 'tblTempUsageDetail_20' ) start [2024-12-24 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089153', 'tblTempUsageDetail_20' ) end [2024-12-24 02:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:35:20] Production.INFO: ==31218== Releasing lock... [2024-12-24 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:35:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:36:05 [end_date_ymd] => 2024-12-24 02:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:36:18] Production.INFO: count ==257 [2024-12-24 02:36:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:36:05 - End Time 2024-12-24 02:36:05 [2024-12-24 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089158', 'tblTempUsageDetail_20' ) start [2024-12-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089158', 'tblTempUsageDetail_20' ) end [2024-12-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089158', 'tblTempVendorCDR_20' ) start [2024-12-24 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089158', 'tblTempVendorCDR_20' ) end [2024-12-24 02:36:18] Production.INFO: ProcessCDR(1,14089158,1,1,2) [2024-12-24 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089158', 'tblTempUsageDetail_20' ) start [2024-12-24 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089158', 'tblTempUsageDetail_20' ) end [2024-12-24 02:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:36:21] Production.INFO: ==31317== Releasing lock... [2024-12-24 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:36:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:37:05 [end_date_ymd] => 2024-12-24 02:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:37:18] Production.INFO: count ==256 [2024-12-24 02:37:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:37:05 - End Time 2024-12-24 02:37:05 [2024-12-24 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089163', 'tblTempUsageDetail_20' ) start [2024-12-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089163', 'tblTempUsageDetail_20' ) end [2024-12-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089163', 'tblTempVendorCDR_20' ) start [2024-12-24 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089163', 'tblTempVendorCDR_20' ) end [2024-12-24 02:37:18] Production.INFO: ProcessCDR(1,14089163,1,1,2) [2024-12-24 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089163', 'tblTempUsageDetail_20' ) start [2024-12-24 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089163', 'tblTempUsageDetail_20' ) end [2024-12-24 02:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:37:21] Production.INFO: ==31419== Releasing lock... [2024-12-24 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:37:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:38:05 [end_date_ymd] => 2024-12-24 02:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:38:18] Production.INFO: count ==256 [2024-12-24 02:38:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:38:05 - End Time 2024-12-24 02:38:05 [2024-12-24 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089168', 'tblTempUsageDetail_20' ) start [2024-12-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089168', 'tblTempUsageDetail_20' ) end [2024-12-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089168', 'tblTempVendorCDR_20' ) start [2024-12-24 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089168', 'tblTempVendorCDR_20' ) end [2024-12-24 02:38:18] Production.INFO: ProcessCDR(1,14089168,1,1,2) [2024-12-24 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089168', 'tblTempUsageDetail_20' ) start [2024-12-24 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089168', 'tblTempUsageDetail_20' ) end [2024-12-24 02:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:38:21] Production.INFO: ==31520== Releasing lock... [2024-12-24 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:38:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:39:04 [end_date_ymd] => 2024-12-24 02:39:04 [RateCDR] => 1 ) [2024-12-24 02: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` >= '2024-12-23 23:39:04' and `end` < '2024-12-24 02: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 ,'') [2024-12-24 02:39:17] Production.INFO: count ==256 [2024-12-24 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:39:04 - End Time 2024-12-24 02:39:04 [2024-12-24 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089173', 'tblTempUsageDetail_20' ) start [2024-12-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089173', 'tblTempUsageDetail_20' ) end [2024-12-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089173', 'tblTempVendorCDR_20' ) start [2024-12-24 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089173', 'tblTempVendorCDR_20' ) end [2024-12-24 02:39:17] Production.INFO: ProcessCDR(1,14089173,1,1,2) [2024-12-24 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089173', 'tblTempUsageDetail_20' ) start [2024-12-24 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089173', 'tblTempUsageDetail_20' ) end [2024-12-24 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:39:20] Production.INFO: ==31620== Releasing lock... [2024-12-24 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:39:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:40:06 [end_date_ymd] => 2024-12-24 02:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:40:18] Production.INFO: count ==260 [2024-12-24 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:40:06 - End Time 2024-12-24 02:40:06 [2024-12-24 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089179', 'tblTempUsageDetail_20' ) start [2024-12-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089179', 'tblTempUsageDetail_20' ) end [2024-12-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089179', 'tblTempVendorCDR_20' ) start [2024-12-24 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089179', 'tblTempVendorCDR_20' ) end [2024-12-24 02:40:18] Production.INFO: ProcessCDR(1,14089179,1,1,2) [2024-12-24 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089179', 'tblTempUsageDetail_20' ) start [2024-12-24 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089179', 'tblTempUsageDetail_20' ) end [2024-12-24 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:40:21] Production.INFO: ==31723== Releasing lock... [2024-12-24 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:40:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:41:04 [end_date_ymd] => 2024-12-24 02:41:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:41:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:41:18] Production.INFO: count ==261 [2024-12-24 02:41:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:41:04 - End Time 2024-12-24 02:41:04 [2024-12-24 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089184', 'tblTempUsageDetail_20' ) start [2024-12-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089184', 'tblTempUsageDetail_20' ) end [2024-12-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089184', 'tblTempVendorCDR_20' ) start [2024-12-24 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089184', 'tblTempVendorCDR_20' ) end [2024-12-24 02:41:18] Production.INFO: ProcessCDR(1,14089184,1,1,2) [2024-12-24 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089184', 'tblTempUsageDetail_20' ) start [2024-12-24 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089184', 'tblTempUsageDetail_20' ) end [2024-12-24 02:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:41:21] Production.INFO: ==31828== Releasing lock... [2024-12-24 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:41:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:42:05 [end_date_ymd] => 2024-12-24 02:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:42:18] Production.INFO: count ==261 [2024-12-24 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:42:05 - End Time 2024-12-24 02:42:05 [2024-12-24 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089189', 'tblTempUsageDetail_20' ) start [2024-12-24 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089189', 'tblTempUsageDetail_20' ) end [2024-12-24 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089189', 'tblTempVendorCDR_20' ) start [2024-12-24 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089189', 'tblTempVendorCDR_20' ) end [2024-12-24 02:42:18] Production.INFO: ProcessCDR(1,14089189,1,1,2) [2024-12-24 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089189', 'tblTempUsageDetail_20' ) start [2024-12-24 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089189', 'tblTempUsageDetail_20' ) end [2024-12-24 02:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:42:22] Production.INFO: ==31929== Releasing lock... [2024-12-24 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:42:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:43:04 [end_date_ymd] => 2024-12-24 02:43:04 [RateCDR] => 1 ) [2024-12-24 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:43:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:43:18] Production.INFO: count ==260 [2024-12-24 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:43:04 - End Time 2024-12-24 02:43:04 [2024-12-24 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089194', 'tblTempUsageDetail_20' ) start [2024-12-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089194', 'tblTempUsageDetail_20' ) end [2024-12-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089194', 'tblTempVendorCDR_20' ) start [2024-12-24 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089194', 'tblTempVendorCDR_20' ) end [2024-12-24 02:43:18] Production.INFO: ProcessCDR(1,14089194,1,1,2) [2024-12-24 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089194', 'tblTempUsageDetail_20' ) start [2024-12-24 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089194', 'tblTempUsageDetail_20' ) end [2024-12-24 02:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:43:21] Production.INFO: ==32025== Releasing lock... [2024-12-24 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:43:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:44:05 [end_date_ymd] => 2024-12-24 02:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:44:17] Production.INFO: count ==258 [2024-12-24 02:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:44:05 - End Time 2024-12-24 02:44:05 [2024-12-24 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089199', 'tblTempUsageDetail_20' ) start [2024-12-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089199', 'tblTempUsageDetail_20' ) end [2024-12-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089199', 'tblTempVendorCDR_20' ) start [2024-12-24 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089199', 'tblTempVendorCDR_20' ) end [2024-12-24 02:44:17] Production.INFO: ProcessCDR(1,14089199,1,1,2) [2024-12-24 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089199', 'tblTempUsageDetail_20' ) start [2024-12-24 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089199', 'tblTempUsageDetail_20' ) end [2024-12-24 02:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:44:20] Production.INFO: ==32129== Releasing lock... [2024-12-24 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:44:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:45:05 [end_date_ymd] => 2024-12-24 02:45:05 [RateCDR] => 1 ) [2024-12-24 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:45:05' and `end` < '2024-12-24 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:45:17] Production.INFO: count ==257 [2024-12-24 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:45:05 - End Time 2024-12-24 02:45:05 [2024-12-24 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089204', 'tblTempUsageDetail_20' ) start [2024-12-24 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089204', 'tblTempUsageDetail_20' ) end [2024-12-24 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089204', 'tblTempVendorCDR_20' ) start [2024-12-24 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089204', 'tblTempVendorCDR_20' ) end [2024-12-24 02:45:17] Production.INFO: ProcessCDR(1,14089204,1,1,2) [2024-12-24 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089204', 'tblTempUsageDetail_20' ) start [2024-12-24 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089204', 'tblTempUsageDetail_20' ) end [2024-12-24 02:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:45:20] Production.INFO: ==32229== Releasing lock... [2024-12-24 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:45:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:46:05 [end_date_ymd] => 2024-12-24 02:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:46:17] Production.INFO: count ==257 [2024-12-24 02:46:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:46:05 - End Time 2024-12-24 02:46:05 [2024-12-24 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089209', 'tblTempUsageDetail_20' ) start [2024-12-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089209', 'tblTempUsageDetail_20' ) end [2024-12-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089209', 'tblTempVendorCDR_20' ) start [2024-12-24 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089209', 'tblTempVendorCDR_20' ) end [2024-12-24 02:46:17] Production.INFO: ProcessCDR(1,14089209,1,1,2) [2024-12-24 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089209', 'tblTempUsageDetail_20' ) start [2024-12-24 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089209', 'tblTempUsageDetail_20' ) end [2024-12-24 02:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:46:20] Production.INFO: ==32341== Releasing lock... [2024-12-24 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:46:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:47:04 [end_date_ymd] => 2024-12-24 02:47:04 [RateCDR] => 1 ) [2024-12-24 02: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` >= '2024-12-23 23:47:04' and `end` < '2024-12-24 02: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 ,'') [2024-12-24 02:47:17] Production.INFO: count ==261 [2024-12-24 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:47:04 - End Time 2024-12-24 02:47:04 [2024-12-24 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089212', 'tblTempUsageDetail_20' ) start [2024-12-24 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089212', 'tblTempUsageDetail_20' ) end [2024-12-24 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089212', 'tblTempVendorCDR_20' ) start [2024-12-24 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089212', 'tblTempVendorCDR_20' ) end [2024-12-24 02:47:17] Production.INFO: ProcessCDR(1,14089212,1,1,2) [2024-12-24 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089212', 'tblTempUsageDetail_20' ) start [2024-12-24 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089212', 'tblTempUsageDetail_20' ) end [2024-12-24 02:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:47:21] Production.INFO: ==32443== Releasing lock... [2024-12-24 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:47:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:48:05 [end_date_ymd] => 2024-12-24 02:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:48:18] Production.INFO: count ==261 [2024-12-24 02:48:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:48:05 - End Time 2024-12-24 02:48:05 [2024-12-24 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089219', 'tblTempUsageDetail_20' ) start [2024-12-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089219', 'tblTempUsageDetail_20' ) end [2024-12-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089219', 'tblTempVendorCDR_20' ) start [2024-12-24 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089219', 'tblTempVendorCDR_20' ) end [2024-12-24 02:48:18] Production.INFO: ProcessCDR(1,14089219,1,1,2) [2024-12-24 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089219', 'tblTempUsageDetail_20' ) start [2024-12-24 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089219', 'tblTempUsageDetail_20' ) end [2024-12-24 02:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:48:23] Production.INFO: ==32519== Releasing lock... [2024-12-24 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:48:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:49:05 [end_date_ymd] => 2024-12-24 02:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:49:18] Production.INFO: count ==259 [2024-12-24 02:49:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:49:05 - End Time 2024-12-24 02:49:05 [2024-12-24 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089224', 'tblTempUsageDetail_20' ) start [2024-12-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089224', 'tblTempUsageDetail_20' ) end [2024-12-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089224', 'tblTempVendorCDR_20' ) start [2024-12-24 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089224', 'tblTempVendorCDR_20' ) end [2024-12-24 02:49:18] Production.INFO: ProcessCDR(1,14089224,1,1,2) [2024-12-24 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089224', 'tblTempUsageDetail_20' ) start [2024-12-24 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089224', 'tblTempUsageDetail_20' ) end [2024-12-24 02:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:49:21] Production.INFO: ==32592== Releasing lock... [2024-12-24 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:49:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:50:05 [end_date_ymd] => 2024-12-24 02:50:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:50:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:50:18] Production.INFO: count ==259 [2024-12-24 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:50:05 - End Time 2024-12-24 02:50:05 [2024-12-24 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089230', 'tblTempUsageDetail_20' ) start [2024-12-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089230', 'tblTempUsageDetail_20' ) end [2024-12-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089230', 'tblTempVendorCDR_20' ) start [2024-12-24 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089230', 'tblTempVendorCDR_20' ) end [2024-12-24 02:50:18] Production.INFO: ProcessCDR(1,14089230,1,1,2) [2024-12-24 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089230', 'tblTempUsageDetail_20' ) start [2024-12-24 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089230', 'tblTempUsageDetail_20' ) end [2024-12-24 02:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:50:22] Production.INFO: ==32707== Releasing lock... [2024-12-24 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:50:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:51:05 [end_date_ymd] => 2024-12-24 02:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:51:17] Production.INFO: count ==258 [2024-12-24 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:51:05 - End Time 2024-12-24 02:51:05 [2024-12-24 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089235', 'tblTempUsageDetail_20' ) start [2024-12-24 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089235', 'tblTempUsageDetail_20' ) end [2024-12-24 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089235', 'tblTempVendorCDR_20' ) start [2024-12-24 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089235', 'tblTempVendorCDR_20' ) end [2024-12-24 02:51:17] Production.INFO: ProcessCDR(1,14089235,1,1,2) [2024-12-24 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089235', 'tblTempUsageDetail_20' ) start [2024-12-24 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089235', 'tblTempUsageDetail_20' ) end [2024-12-24 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:51:20] Production.INFO: ==321== Releasing lock... [2024-12-24 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:51:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:52:05 [end_date_ymd] => 2024-12-24 02:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:52:18] Production.INFO: count ==257 [2024-12-24 02:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:52:05 - End Time 2024-12-24 02:52:05 [2024-12-24 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089240', 'tblTempUsageDetail_20' ) start [2024-12-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089240', 'tblTempUsageDetail_20' ) end [2024-12-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089240', 'tblTempVendorCDR_20' ) start [2024-12-24 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089240', 'tblTempVendorCDR_20' ) end [2024-12-24 02:52:18] Production.INFO: ProcessCDR(1,14089240,1,1,2) [2024-12-24 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089240', 'tblTempUsageDetail_20' ) start [2024-12-24 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089240', 'tblTempUsageDetail_20' ) end [2024-12-24 02:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:52:21] Production.INFO: ==406== Releasing lock... [2024-12-24 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:52:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:53:05 [end_date_ymd] => 2024-12-24 02:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:53:17] Production.INFO: count ==257 [2024-12-24 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:53:05 - End Time 2024-12-24 02:53:05 [2024-12-24 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089245', 'tblTempUsageDetail_20' ) start [2024-12-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089245', 'tblTempUsageDetail_20' ) end [2024-12-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089245', 'tblTempVendorCDR_20' ) start [2024-12-24 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089245', 'tblTempVendorCDR_20' ) end [2024-12-24 02:53:17] Production.INFO: ProcessCDR(1,14089245,1,1,2) [2024-12-24 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089245', 'tblTempUsageDetail_20' ) start [2024-12-24 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089245', 'tblTempUsageDetail_20' ) end [2024-12-24 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:53:20] Production.INFO: ==481== Releasing lock... [2024-12-24 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:53:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:54:04 [end_date_ymd] => 2024-12-24 02:54:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:54:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:54:16] Production.INFO: count ==257 [2024-12-24 02:54:16] Production.ERROR: pbx CDR StartTime 2024-12-23 23:54:04 - End Time 2024-12-24 02:54:04 [2024-12-24 02:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089250', 'tblTempUsageDetail_20' ) start [2024-12-24 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089250', 'tblTempUsageDetail_20' ) end [2024-12-24 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089250', 'tblTempVendorCDR_20' ) start [2024-12-24 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089250', 'tblTempVendorCDR_20' ) end [2024-12-24 02:54:16] Production.INFO: ProcessCDR(1,14089250,1,1,2) [2024-12-24 02:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089250', 'tblTempUsageDetail_20' ) start [2024-12-24 02:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089250', 'tblTempUsageDetail_20' ) end [2024-12-24 02:54:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:54:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:54:19] Production.INFO: ==557== Releasing lock... [2024-12-24 02:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:54:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:55:05 [end_date_ymd] => 2024-12-24 02:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:55:17] Production.INFO: count ==257 [2024-12-24 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:55:05 - End Time 2024-12-24 02:55:05 [2024-12-24 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089255', 'tblTempUsageDetail_20' ) start [2024-12-24 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089255', 'tblTempUsageDetail_20' ) end [2024-12-24 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089255', 'tblTempVendorCDR_20' ) start [2024-12-24 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089255', 'tblTempVendorCDR_20' ) end [2024-12-24 02:55:17] Production.INFO: ProcessCDR(1,14089255,1,1,2) [2024-12-24 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089255', 'tblTempUsageDetail_20' ) start [2024-12-24 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089255', 'tblTempUsageDetail_20' ) end [2024-12-24 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:55:20] Production.INFO: ==638== Releasing lock... [2024-12-24 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:55:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:56:05 [end_date_ymd] => 2024-12-24 02:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:56:17] Production.INFO: count ==257 [2024-12-24 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:56:05 - End Time 2024-12-24 02:56:05 [2024-12-24 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089260', 'tblTempUsageDetail_20' ) start [2024-12-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089260', 'tblTempUsageDetail_20' ) end [2024-12-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089260', 'tblTempVendorCDR_20' ) start [2024-12-24 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089260', 'tblTempVendorCDR_20' ) end [2024-12-24 02:56:17] Production.INFO: ProcessCDR(1,14089260,1,1,2) [2024-12-24 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089260', 'tblTempUsageDetail_20' ) start [2024-12-24 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089260', 'tblTempUsageDetail_20' ) end [2024-12-24 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:56:20] Production.INFO: ==733== Releasing lock... [2024-12-24 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:56:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:57:04 [end_date_ymd] => 2024-12-24 02:57:04 [RateCDR] => 1 ) [2024-12-24 02: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` >= '2024-12-23 23:57:04' and `end` < '2024-12-24 02: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 ,'') [2024-12-24 02:57:17] Production.INFO: count ==257 [2024-12-24 02:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:57:04 - End Time 2024-12-24 02:57:04 [2024-12-24 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089265', 'tblTempUsageDetail_20' ) start [2024-12-24 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089265', 'tblTempUsageDetail_20' ) end [2024-12-24 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089265', 'tblTempVendorCDR_20' ) start [2024-12-24 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089265', 'tblTempVendorCDR_20' ) end [2024-12-24 02:57:17] Production.INFO: ProcessCDR(1,14089265,1,1,2) [2024-12-24 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089265', 'tblTempUsageDetail_20' ) start [2024-12-24 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089265', 'tblTempUsageDetail_20' ) end [2024-12-24 02:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:57:20] Production.INFO: ==809== Releasing lock... [2024-12-24 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:57:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:58:05 [end_date_ymd] => 2024-12-24 02:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-23 23:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 02:58:18] Production.INFO: count ==257 [2024-12-24 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-23 23:58:05 - End Time 2024-12-24 02:58:05 [2024-12-24 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089270', 'tblTempUsageDetail_20' ) start [2024-12-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089270', 'tblTempUsageDetail_20' ) end [2024-12-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089270', 'tblTempVendorCDR_20' ) start [2024-12-24 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089270', 'tblTempVendorCDR_20' ) end [2024-12-24 02:58:18] Production.INFO: ProcessCDR(1,14089270,1,1,2) [2024-12-24 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089270', 'tblTempUsageDetail_20' ) start [2024-12-24 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089270', 'tblTempUsageDetail_20' ) end [2024-12-24 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:58:21] Production.INFO: ==886== Releasing lock... [2024-12-24 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:58:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 23:59:04 [end_date_ymd] => 2024-12-24 02:59:04 [RateCDR] => 1 ) [2024-12-24 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 23:59:04' and `end` < '2024-12-24 02:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 02:59:17] Production.INFO: count ==257 [2024-12-24 02:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 23:59:04 - End Time 2024-12-24 02:59:04 [2024-12-24 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089275', 'tblTempUsageDetail_20' ) start [2024-12-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089275', 'tblTempUsageDetail_20' ) end [2024-12-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089275', 'tblTempVendorCDR_20' ) start [2024-12-24 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089275', 'tblTempVendorCDR_20' ) end [2024-12-24 02:59:17] Production.INFO: ProcessCDR(1,14089275,1,1,2) [2024-12-24 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089275', 'tblTempUsageDetail_20' ) start [2024-12-24 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089275', 'tblTempUsageDetail_20' ) end [2024-12-24 02:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 02:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 02:59:20] Production.INFO: ==959== Releasing lock... [2024-12-24 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 02:59:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:00:06 [end_date_ymd] => 2024-12-24 03:00:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:00:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:00:19] Production.INFO: count ==256 [2024-12-24 03:00:19] Production.ERROR: pbx CDR StartTime 2024-12-24 00:00:06 - End Time 2024-12-24 03:00:06 [2024-12-24 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089281', 'tblTempUsageDetail_20' ) start [2024-12-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089281', 'tblTempUsageDetail_20' ) end [2024-12-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089281', 'tblTempVendorCDR_20' ) start [2024-12-24 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089281', 'tblTempVendorCDR_20' ) end [2024-12-24 03:00:19] Production.INFO: ProcessCDR(1,14089281,1,1,2) [2024-12-24 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089281', 'tblTempUsageDetail_20' ) start [2024-12-24 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089281', 'tblTempUsageDetail_20' ) end [2024-12-24 03:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:00:22] Production.INFO: ==1036== Releasing lock... [2024-12-24 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:00:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:01:04 [end_date_ymd] => 2024-12-24 03:01:04 [RateCDR] => 1 ) [2024-12-24 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:01:04' and `end` < '2024-12-24 03:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:01:17] Production.INFO: count ==256 [2024-12-24 03:01:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:01:04 - End Time 2024-12-24 03:01:04 [2024-12-24 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089286', 'tblTempUsageDetail_20' ) start [2024-12-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089286', 'tblTempUsageDetail_20' ) end [2024-12-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089286', 'tblTempVendorCDR_20' ) start [2024-12-24 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089286', 'tblTempVendorCDR_20' ) end [2024-12-24 03:01:17] Production.INFO: ProcessCDR(1,14089286,1,1,2) [2024-12-24 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089286', 'tblTempUsageDetail_20' ) start [2024-12-24 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089286', 'tblTempUsageDetail_20' ) end [2024-12-24 03:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:01:21] Production.INFO: ==1129== Releasing lock... [2024-12-24 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:01:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:02:05 [end_date_ymd] => 2024-12-24 03:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:02:17] Production.INFO: count ==256 [2024-12-24 03:02:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:02:05 - End Time 2024-12-24 03:02:05 [2024-12-24 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089291', 'tblTempUsageDetail_20' ) start [2024-12-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089291', 'tblTempUsageDetail_20' ) end [2024-12-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089291', 'tblTempVendorCDR_20' ) start [2024-12-24 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089291', 'tblTempVendorCDR_20' ) end [2024-12-24 03:02:17] Production.INFO: ProcessCDR(1,14089291,1,1,2) [2024-12-24 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089291', 'tblTempUsageDetail_20' ) start [2024-12-24 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089291', 'tblTempUsageDetail_20' ) end [2024-12-24 03:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:02:20] Production.INFO: ==1299== Releasing lock... [2024-12-24 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:02:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:03:04 [end_date_ymd] => 2024-12-24 03:03:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:03:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:03:17] Production.INFO: count ==256 [2024-12-24 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:03:04 - End Time 2024-12-24 03:03:04 [2024-12-24 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089296', 'tblTempUsageDetail_20' ) start [2024-12-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089296', 'tblTempUsageDetail_20' ) end [2024-12-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089296', 'tblTempVendorCDR_20' ) start [2024-12-24 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089296', 'tblTempVendorCDR_20' ) end [2024-12-24 03:03:17] Production.INFO: ProcessCDR(1,14089296,1,1,2) [2024-12-24 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089296', 'tblTempUsageDetail_20' ) start [2024-12-24 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089296', 'tblTempUsageDetail_20' ) end [2024-12-24 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:03:20] Production.INFO: ==1374== Releasing lock... [2024-12-24 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:03:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:04:05 [end_date_ymd] => 2024-12-24 03:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:04:17] Production.INFO: count ==256 [2024-12-24 03:04:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:04:05 - End Time 2024-12-24 03:04:05 [2024-12-24 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089301', 'tblTempUsageDetail_20' ) start [2024-12-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089301', 'tblTempUsageDetail_20' ) end [2024-12-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089301', 'tblTempVendorCDR_20' ) start [2024-12-24 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089301', 'tblTempVendorCDR_20' ) end [2024-12-24 03:04:17] Production.INFO: ProcessCDR(1,14089301,1,1,2) [2024-12-24 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089301', 'tblTempUsageDetail_20' ) start [2024-12-24 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089301', 'tblTempUsageDetail_20' ) end [2024-12-24 03:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:04:20] Production.INFO: ==1448== Releasing lock... [2024-12-24 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:04:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:05:05 [end_date_ymd] => 2024-12-24 03:05:05 [RateCDR] => 1 ) [2024-12-24 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:05:18] Production.INFO: count ==256 [2024-12-24 03:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:05:05 - End Time 2024-12-24 03:05:05 [2024-12-24 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089306', 'tblTempUsageDetail_20' ) start [2024-12-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089306', 'tblTempUsageDetail_20' ) end [2024-12-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089306', 'tblTempVendorCDR_20' ) start [2024-12-24 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089306', 'tblTempVendorCDR_20' ) end [2024-12-24 03:05:18] Production.INFO: ProcessCDR(1,14089306,1,1,2) [2024-12-24 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089306', 'tblTempUsageDetail_20' ) start [2024-12-24 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089306', 'tblTempUsageDetail_20' ) end [2024-12-24 03:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:05:22] Production.INFO: ==1598== Releasing lock... [2024-12-24 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:05:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:06:04 [end_date_ymd] => 2024-12-24 03:06:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:06:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:06:18] Production.INFO: count ==256 [2024-12-24 03:06:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:06:04 - End Time 2024-12-24 03:06:04 [2024-12-24 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089311', 'tblTempUsageDetail_20' ) start [2024-12-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089311', 'tblTempUsageDetail_20' ) end [2024-12-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089311', 'tblTempVendorCDR_20' ) start [2024-12-24 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089311', 'tblTempVendorCDR_20' ) end [2024-12-24 03:06:18] Production.INFO: ProcessCDR(1,14089311,1,1,2) [2024-12-24 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089311', 'tblTempUsageDetail_20' ) start [2024-12-24 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089311', 'tblTempUsageDetail_20' ) end [2024-12-24 03:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:06:21] Production.INFO: ==1751== Releasing lock... [2024-12-24 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:06:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:07:05 [end_date_ymd] => 2024-12-24 03:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:07:18] Production.INFO: count ==256 [2024-12-24 03:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:07:05 - End Time 2024-12-24 03:07:05 [2024-12-24 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089316', 'tblTempUsageDetail_20' ) start [2024-12-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089316', 'tblTempUsageDetail_20' ) end [2024-12-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089316', 'tblTempVendorCDR_20' ) start [2024-12-24 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089316', 'tblTempVendorCDR_20' ) end [2024-12-24 03:07:18] Production.INFO: ProcessCDR(1,14089316,1,1,2) [2024-12-24 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089316', 'tblTempUsageDetail_20' ) start [2024-12-24 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089316', 'tblTempUsageDetail_20' ) end [2024-12-24 03:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:07:21] Production.INFO: ==1829== Releasing lock... [2024-12-24 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:07:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:08:05 [end_date_ymd] => 2024-12-24 03:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:08:18] Production.INFO: count ==256 [2024-12-24 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:08:05 - End Time 2024-12-24 03:08:05 [2024-12-24 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089321', 'tblTempUsageDetail_20' ) start [2024-12-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089321', 'tblTempUsageDetail_20' ) end [2024-12-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089321', 'tblTempVendorCDR_20' ) start [2024-12-24 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089321', 'tblTempVendorCDR_20' ) end [2024-12-24 03:08:18] Production.INFO: ProcessCDR(1,14089321,1,1,2) [2024-12-24 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089321', 'tblTempUsageDetail_20' ) start [2024-12-24 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089321', 'tblTempUsageDetail_20' ) end [2024-12-24 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:08:21] Production.INFO: ==1906== Releasing lock... [2024-12-24 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:08:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:09:05 [end_date_ymd] => 2024-12-24 03:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:09:18] Production.INFO: count ==256 [2024-12-24 03:09:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:09:05 - End Time 2024-12-24 03:09:05 [2024-12-24 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089326', 'tblTempUsageDetail_20' ) start [2024-12-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089326', 'tblTempUsageDetail_20' ) end [2024-12-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089326', 'tblTempVendorCDR_20' ) start [2024-12-24 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089326', 'tblTempVendorCDR_20' ) end [2024-12-24 03:09:18] Production.INFO: ProcessCDR(1,14089326,1,1,2) [2024-12-24 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089326', 'tblTempUsageDetail_20' ) start [2024-12-24 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089326', 'tblTempUsageDetail_20' ) end [2024-12-24 03:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:09:21] Production.INFO: ==2061== Releasing lock... [2024-12-24 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:09:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:10:05 [end_date_ymd] => 2024-12-24 03:10:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:10:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:10:18] Production.INFO: count ==250 [2024-12-24 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:10:05 - End Time 2024-12-24 03:10:05 [2024-12-24 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089332', 'tblTempUsageDetail_20' ) start [2024-12-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089332', 'tblTempUsageDetail_20' ) end [2024-12-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089332', 'tblTempVendorCDR_20' ) start [2024-12-24 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089332', 'tblTempVendorCDR_20' ) end [2024-12-24 03:10:18] Production.INFO: ProcessCDR(1,14089332,1,1,2) [2024-12-24 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089332', 'tblTempUsageDetail_20' ) start [2024-12-24 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089332', 'tblTempUsageDetail_20' ) end [2024-12-24 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:10:21] Production.INFO: ==2135== Releasing lock... [2024-12-24 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:10:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:11:05 [end_date_ymd] => 2024-12-24 03:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:11:17] Production.INFO: count ==246 [2024-12-24 03:11:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:11:05 - End Time 2024-12-24 03:11:05 [2024-12-24 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089337', 'tblTempUsageDetail_20' ) start [2024-12-24 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089337', 'tblTempUsageDetail_20' ) end [2024-12-24 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089337', 'tblTempVendorCDR_20' ) start [2024-12-24 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089337', 'tblTempVendorCDR_20' ) end [2024-12-24 03:11:17] Production.INFO: ProcessCDR(1,14089337,1,1,2) [2024-12-24 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089337', 'tblTempUsageDetail_20' ) start [2024-12-24 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089337', 'tblTempUsageDetail_20' ) end [2024-12-24 03:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:11:20] Production.INFO: ==2216== Releasing lock... [2024-12-24 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:11:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:12:05 [end_date_ymd] => 2024-12-24 03:12:05 [RateCDR] => 1 ) [2024-12-24 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:12:05' and `end` < '2024-12-24 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:12:17] Production.INFO: count ==246 [2024-12-24 03:12:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:12:05 - End Time 2024-12-24 03:12:05 [2024-12-24 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089342', 'tblTempUsageDetail_20' ) start [2024-12-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089342', 'tblTempUsageDetail_20' ) end [2024-12-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089342', 'tblTempVendorCDR_20' ) start [2024-12-24 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089342', 'tblTempVendorCDR_20' ) end [2024-12-24 03:12:17] Production.INFO: ProcessCDR(1,14089342,1,1,2) [2024-12-24 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089342', 'tblTempUsageDetail_20' ) start [2024-12-24 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089342', 'tblTempUsageDetail_20' ) end [2024-12-24 03:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:12:20] Production.INFO: ==2287== Releasing lock... [2024-12-24 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:12:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:13:05 [end_date_ymd] => 2024-12-24 03:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:13:18] Production.INFO: count ==245 [2024-12-24 03:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:13:05 - End Time 2024-12-24 03:13:05 [2024-12-24 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089347', 'tblTempUsageDetail_20' ) start [2024-12-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089347', 'tblTempUsageDetail_20' ) end [2024-12-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089347', 'tblTempVendorCDR_20' ) start [2024-12-24 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089347', 'tblTempVendorCDR_20' ) end [2024-12-24 03:13:18] Production.INFO: ProcessCDR(1,14089347,1,1,2) [2024-12-24 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089347', 'tblTempUsageDetail_20' ) start [2024-12-24 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089347', 'tblTempUsageDetail_20' ) end [2024-12-24 03:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:13:22] Production.INFO: ==2437== Releasing lock... [2024-12-24 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:13:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:14:05 [end_date_ymd] => 2024-12-24 03:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:14:17] Production.INFO: count ==245 [2024-12-24 03:14:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:14:05 - End Time 2024-12-24 03:14:05 [2024-12-24 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089352', 'tblTempUsageDetail_20' ) start [2024-12-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089352', 'tblTempUsageDetail_20' ) end [2024-12-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089352', 'tblTempVendorCDR_20' ) start [2024-12-24 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089352', 'tblTempVendorCDR_20' ) end [2024-12-24 03:14:17] Production.INFO: ProcessCDR(1,14089352,1,1,2) [2024-12-24 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089352', 'tblTempUsageDetail_20' ) start [2024-12-24 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089352', 'tblTempUsageDetail_20' ) end [2024-12-24 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:14:21] Production.INFO: ==2510== Releasing lock... [2024-12-24 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:14:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:15:05 [end_date_ymd] => 2024-12-24 03:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:15:17] Production.INFO: count ==245 [2024-12-24 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:15:05 - End Time 2024-12-24 03:15:05 [2024-12-24 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089357', 'tblTempUsageDetail_20' ) start [2024-12-24 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089357', 'tblTempUsageDetail_20' ) end [2024-12-24 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089357', 'tblTempVendorCDR_20' ) start [2024-12-24 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089357', 'tblTempVendorCDR_20' ) end [2024-12-24 03:15:17] Production.INFO: ProcessCDR(1,14089357,1,1,2) [2024-12-24 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089357', 'tblTempUsageDetail_20' ) start [2024-12-24 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089357', 'tblTempUsageDetail_20' ) end [2024-12-24 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:15:20] Production.INFO: ==2580== Releasing lock... [2024-12-24 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:15:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:16:04 [end_date_ymd] => 2024-12-24 03:16:04 [RateCDR] => 1 ) [2024-12-24 03:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:16:04' and `end` < '2024-12-24 03:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:16:17] Production.INFO: count ==245 [2024-12-24 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:16:04 - End Time 2024-12-24 03:16:04 [2024-12-24 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089362', 'tblTempUsageDetail_20' ) start [2024-12-24 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089362', 'tblTempUsageDetail_20' ) end [2024-12-24 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089362', 'tblTempVendorCDR_20' ) start [2024-12-24 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089362', 'tblTempVendorCDR_20' ) end [2024-12-24 03:16:17] Production.INFO: ProcessCDR(1,14089362,1,1,2) [2024-12-24 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089362', 'tblTempUsageDetail_20' ) start [2024-12-24 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089362', 'tblTempUsageDetail_20' ) end [2024-12-24 03:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:16:21] Production.INFO: ==2649== Releasing lock... [2024-12-24 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:16:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:17:05 [end_date_ymd] => 2024-12-24 03:17:05 [RateCDR] => 1 ) [2024-12-24 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:17:05' and `end` < '2024-12-24 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:17:17] Production.INFO: count ==247 [2024-12-24 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:17:05 - End Time 2024-12-24 03:17:05 [2024-12-24 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089367', 'tblTempUsageDetail_20' ) start [2024-12-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089367', 'tblTempUsageDetail_20' ) end [2024-12-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089367', 'tblTempVendorCDR_20' ) start [2024-12-24 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089367', 'tblTempVendorCDR_20' ) end [2024-12-24 03:17:17] Production.INFO: ProcessCDR(1,14089367,1,1,2) [2024-12-24 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089367', 'tblTempUsageDetail_20' ) start [2024-12-24 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089367', 'tblTempUsageDetail_20' ) end [2024-12-24 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:17:20] Production.INFO: ==2800== Releasing lock... [2024-12-24 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:17:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:18:04 [end_date_ymd] => 2024-12-24 03:18:04 [RateCDR] => 1 ) [2024-12-24 03:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:18:04' and `end` < '2024-12-24 03:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:18:16] Production.INFO: count ==247 [2024-12-24 03:18:16] Production.ERROR: pbx CDR StartTime 2024-12-24 00:18:04 - End Time 2024-12-24 03:18:04 [2024-12-24 03:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089372', 'tblTempUsageDetail_20' ) start [2024-12-24 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089372', 'tblTempUsageDetail_20' ) end [2024-12-24 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089372', 'tblTempVendorCDR_20' ) start [2024-12-24 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089372', 'tblTempVendorCDR_20' ) end [2024-12-24 03:18:17] Production.INFO: ProcessCDR(1,14089372,1,1,2) [2024-12-24 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089372', 'tblTempUsageDetail_20' ) start [2024-12-24 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089372', 'tblTempUsageDetail_20' ) end [2024-12-24 03:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:18:20] Production.INFO: ==2867== Releasing lock... [2024-12-24 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:18:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:19:04 [end_date_ymd] => 2024-12-24 03:19:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:19:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:19:17] Production.INFO: count ==247 [2024-12-24 03:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:19:04 - End Time 2024-12-24 03:19:04 [2024-12-24 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089377', 'tblTempUsageDetail_20' ) start [2024-12-24 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089377', 'tblTempUsageDetail_20' ) end [2024-12-24 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089377', 'tblTempVendorCDR_20' ) start [2024-12-24 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089377', 'tblTempVendorCDR_20' ) end [2024-12-24 03:19:17] Production.INFO: ProcessCDR(1,14089377,1,1,2) [2024-12-24 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089377', 'tblTempUsageDetail_20' ) start [2024-12-24 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089377', 'tblTempUsageDetail_20' ) end [2024-12-24 03:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:19:20] Production.INFO: ==2939== Releasing lock... [2024-12-24 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:19:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:20:06 [end_date_ymd] => 2024-12-24 03:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:20:18] Production.INFO: count ==237 [2024-12-24 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:20:06 - End Time 2024-12-24 03:20:06 [2024-12-24 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089383', 'tblTempUsageDetail_20' ) start [2024-12-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089383', 'tblTempUsageDetail_20' ) end [2024-12-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089383', 'tblTempVendorCDR_20' ) start [2024-12-24 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089383', 'tblTempVendorCDR_20' ) end [2024-12-24 03:20:18] Production.INFO: ProcessCDR(1,14089383,1,1,2) [2024-12-24 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089383', 'tblTempUsageDetail_20' ) start [2024-12-24 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089383', 'tblTempUsageDetail_20' ) end [2024-12-24 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:20:21] Production.INFO: ==3052== Releasing lock... [2024-12-24 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:20:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:21:04 [end_date_ymd] => 2024-12-24 03:21:04 [RateCDR] => 1 ) [2024-12-24 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:21:04' and `end` < '2024-12-24 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:21:16] Production.INFO: count ==225 [2024-12-24 03:21:16] Production.ERROR: pbx CDR StartTime 2024-12-24 00:21:04 - End Time 2024-12-24 03:21:04 [2024-12-24 03:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089388', 'tblTempUsageDetail_20' ) start [2024-12-24 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089388', 'tblTempUsageDetail_20' ) end [2024-12-24 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089388', 'tblTempVendorCDR_20' ) start [2024-12-24 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089388', 'tblTempVendorCDR_20' ) end [2024-12-24 03:21:16] Production.INFO: ProcessCDR(1,14089388,1,1,2) [2024-12-24 03:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089388', 'tblTempUsageDetail_20' ) start [2024-12-24 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089388', 'tblTempUsageDetail_20' ) end [2024-12-24 03:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:21:19] Production.INFO: ==3129== Releasing lock... [2024-12-24 03:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:21:19] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:22:05 [end_date_ymd] => 2024-12-24 03:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:22:18] Production.INFO: count ==225 [2024-12-24 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:22:05 - End Time 2024-12-24 03:22:05 [2024-12-24 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089393', 'tblTempUsageDetail_20' ) start [2024-12-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089393', 'tblTempUsageDetail_20' ) end [2024-12-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089393', 'tblTempVendorCDR_20' ) start [2024-12-24 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089393', 'tblTempVendorCDR_20' ) end [2024-12-24 03:22:18] Production.INFO: ProcessCDR(1,14089393,1,1,2) [2024-12-24 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089393', 'tblTempUsageDetail_20' ) start [2024-12-24 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089393', 'tblTempUsageDetail_20' ) end [2024-12-24 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:22:21] Production.INFO: ==3197== Releasing lock... [2024-12-24 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:22:21] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:23:04 [end_date_ymd] => 2024-12-24 03:23:04 [RateCDR] => 1 ) [2024-12-24 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:23:04' and `end` < '2024-12-24 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:23:16] Production.INFO: count ==224 [2024-12-24 03:23:16] Production.ERROR: pbx CDR StartTime 2024-12-24 00:23:04 - End Time 2024-12-24 03:23:04 [2024-12-24 03:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089398', 'tblTempUsageDetail_20' ) start [2024-12-24 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089398', 'tblTempUsageDetail_20' ) end [2024-12-24 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089398', 'tblTempVendorCDR_20' ) start [2024-12-24 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089398', 'tblTempVendorCDR_20' ) end [2024-12-24 03:23:16] Production.INFO: ProcessCDR(1,14089398,1,1,2) [2024-12-24 03:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089398', 'tblTempUsageDetail_20' ) start [2024-12-24 03:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089398', 'tblTempUsageDetail_20' ) end [2024-12-24 03:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:23:19] Production.INFO: ==3315== Releasing lock... [2024-12-24 03:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:23:19] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:24:05 [end_date_ymd] => 2024-12-24 03:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:24:18] Production.INFO: count ==220 [2024-12-24 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:24:05 - End Time 2024-12-24 03:24:05 [2024-12-24 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089403', 'tblTempUsageDetail_20' ) start [2024-12-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089403', 'tblTempUsageDetail_20' ) end [2024-12-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089403', 'tblTempVendorCDR_20' ) start [2024-12-24 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089403', 'tblTempVendorCDR_20' ) end [2024-12-24 03:24:18] Production.INFO: ProcessCDR(1,14089403,1,1,2) [2024-12-24 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089403', 'tblTempUsageDetail_20' ) start [2024-12-24 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089403', 'tblTempUsageDetail_20' ) end [2024-12-24 03:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:24:21] Production.INFO: ==3387== Releasing lock... [2024-12-24 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:24:21] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:25:04 [end_date_ymd] => 2024-12-24 03:25:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:25:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:25:17] Production.INFO: count ==220 [2024-12-24 03:25:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:25:04 - End Time 2024-12-24 03:25:04 [2024-12-24 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089408', 'tblTempUsageDetail_20' ) start [2024-12-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089408', 'tblTempUsageDetail_20' ) end [2024-12-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089408', 'tblTempVendorCDR_20' ) start [2024-12-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089408', 'tblTempVendorCDR_20' ) end [2024-12-24 03:25:17] Production.INFO: ProcessCDR(1,14089408,1,1,2) [2024-12-24 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089408', 'tblTempUsageDetail_20' ) start [2024-12-24 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089408', 'tblTempUsageDetail_20' ) end [2024-12-24 03:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:25:20] Production.INFO: ==3463== Releasing lock... [2024-12-24 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:25:20] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:26:05 [end_date_ymd] => 2024-12-24 03:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:26:17] Production.INFO: count ==220 [2024-12-24 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:26:05 - End Time 2024-12-24 03:26:05 [2024-12-24 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089413', 'tblTempUsageDetail_20' ) start [2024-12-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089413', 'tblTempUsageDetail_20' ) end [2024-12-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089413', 'tblTempVendorCDR_20' ) start [2024-12-24 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089413', 'tblTempVendorCDR_20' ) end [2024-12-24 03:26:17] Production.INFO: ProcessCDR(1,14089413,1,1,2) [2024-12-24 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089413', 'tblTempUsageDetail_20' ) start [2024-12-24 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089413', 'tblTempUsageDetail_20' ) end [2024-12-24 03:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:26:20] Production.INFO: ==3533== Releasing lock... [2024-12-24 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:26:20] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:27:05 [end_date_ymd] => 2024-12-24 03:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:27:17] Production.INFO: count ==220 [2024-12-24 03:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:27:05 - End Time 2024-12-24 03:27:05 [2024-12-24 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089418', 'tblTempUsageDetail_20' ) start [2024-12-24 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089418', 'tblTempUsageDetail_20' ) end [2024-12-24 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089418', 'tblTempVendorCDR_20' ) start [2024-12-24 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089418', 'tblTempVendorCDR_20' ) end [2024-12-24 03:27:17] Production.INFO: ProcessCDR(1,14089418,1,1,2) [2024-12-24 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089418', 'tblTempUsageDetail_20' ) start [2024-12-24 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089418', 'tblTempUsageDetail_20' ) end [2024-12-24 03:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:27:20] Production.INFO: ==3603== Releasing lock... [2024-12-24 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:27:20] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:28:05 [end_date_ymd] => 2024-12-24 03:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:28:17] Production.INFO: count ==220 [2024-12-24 03:28:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:28:05 - End Time 2024-12-24 03:28:05 [2024-12-24 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089423', 'tblTempUsageDetail_20' ) start [2024-12-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089423', 'tblTempUsageDetail_20' ) end [2024-12-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089423', 'tblTempVendorCDR_20' ) start [2024-12-24 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089423', 'tblTempVendorCDR_20' ) end [2024-12-24 03:28:17] Production.INFO: ProcessCDR(1,14089423,1,1,2) [2024-12-24 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089423', 'tblTempUsageDetail_20' ) start [2024-12-24 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089423', 'tblTempUsageDetail_20' ) end [2024-12-24 03:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:28:20] Production.INFO: ==3672== Releasing lock... [2024-12-24 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:28:20] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:29:05 [end_date_ymd] => 2024-12-24 03:29:05 [RateCDR] => 1 ) [2024-12-24 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:29:05' and `end` < '2024-12-24 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:29:18] Production.INFO: count ==220 [2024-12-24 03:29:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:29:05 - End Time 2024-12-24 03:29:05 [2024-12-24 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089428', 'tblTempUsageDetail_20' ) start [2024-12-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089428', 'tblTempUsageDetail_20' ) end [2024-12-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089428', 'tblTempVendorCDR_20' ) start [2024-12-24 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089428', 'tblTempVendorCDR_20' ) end [2024-12-24 03:29:18] Production.INFO: ProcessCDR(1,14089428,1,1,2) [2024-12-24 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089428', 'tblTempUsageDetail_20' ) start [2024-12-24 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089428', 'tblTempUsageDetail_20' ) end [2024-12-24 03:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:29:21] Production.INFO: ==3746== Releasing lock... [2024-12-24 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:29:21] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:30:06 [end_date_ymd] => 2024-12-24 03:30:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:30:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:30:18] Production.INFO: count ==212 [2024-12-24 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:30:06 - End Time 2024-12-24 03:30:06 [2024-12-24 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089434', 'tblTempUsageDetail_20' ) start [2024-12-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089434', 'tblTempUsageDetail_20' ) end [2024-12-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089434', 'tblTempVendorCDR_20' ) start [2024-12-24 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089434', 'tblTempVendorCDR_20' ) end [2024-12-24 03:30:18] Production.INFO: ProcessCDR(1,14089434,1,1,2) [2024-12-24 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089434', 'tblTempUsageDetail_20' ) start [2024-12-24 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089434', 'tblTempUsageDetail_20' ) end [2024-12-24 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:30:21] Production.INFO: ==3823== Releasing lock... [2024-12-24 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:30:21] Production.INFO: 29 MB #Memory Used# [2024-12-24 03:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:31:04 [end_date_ymd] => 2024-12-24 03:31:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:31:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:31:17] Production.INFO: count ==196 [2024-12-24 03:31:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:31:04 - End Time 2024-12-24 03:31:04 [2024-12-24 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089439', 'tblTempUsageDetail_20' ) start [2024-12-24 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089439', 'tblTempUsageDetail_20' ) end [2024-12-24 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089439', 'tblTempVendorCDR_20' ) start [2024-12-24 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089439', 'tblTempVendorCDR_20' ) end [2024-12-24 03:31:17] Production.INFO: ProcessCDR(1,14089439,1,1,2) [2024-12-24 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089439', 'tblTempUsageDetail_20' ) start [2024-12-24 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089439', 'tblTempUsageDetail_20' ) end [2024-12-24 03:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:31:20] Production.INFO: ==3896== Releasing lock... [2024-12-24 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:31:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:32:05 [end_date_ymd] => 2024-12-24 03:32:05 [RateCDR] => 1 ) [2024-12-24 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:32:05' and `end` < '2024-12-24 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:32:17] Production.INFO: count ==195 [2024-12-24 03:32:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:32:05 - End Time 2024-12-24 03:32:05 [2024-12-24 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089444', 'tblTempUsageDetail_20' ) start [2024-12-24 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089444', 'tblTempUsageDetail_20' ) end [2024-12-24 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089444', 'tblTempVendorCDR_20' ) start [2024-12-24 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089444', 'tblTempVendorCDR_20' ) end [2024-12-24 03:32:17] Production.INFO: ProcessCDR(1,14089444,1,1,2) [2024-12-24 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089444', 'tblTempUsageDetail_20' ) start [2024-12-24 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089444', 'tblTempUsageDetail_20' ) end [2024-12-24 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:32:20] Production.INFO: ==3966== Releasing lock... [2024-12-24 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:32:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:33:05 [end_date_ymd] => 2024-12-24 03:33:05 [RateCDR] => 1 ) [2024-12-24 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:33:05' and `end` < '2024-12-24 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:33:18] Production.INFO: count ==195 [2024-12-24 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:33:05 - End Time 2024-12-24 03:33:05 [2024-12-24 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089449', 'tblTempUsageDetail_20' ) start [2024-12-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089449', 'tblTempUsageDetail_20' ) end [2024-12-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089449', 'tblTempVendorCDR_20' ) start [2024-12-24 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089449', 'tblTempVendorCDR_20' ) end [2024-12-24 03:33:18] Production.INFO: ProcessCDR(1,14089449,1,1,2) [2024-12-24 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089449', 'tblTempUsageDetail_20' ) start [2024-12-24 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089449', 'tblTempUsageDetail_20' ) end [2024-12-24 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:33:21] Production.INFO: ==4038== Releasing lock... [2024-12-24 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:33:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:34:05 [end_date_ymd] => 2024-12-24 03:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:34:18] Production.INFO: count ==195 [2024-12-24 03:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:34:05 - End Time 2024-12-24 03:34:05 [2024-12-24 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089454', 'tblTempUsageDetail_20' ) start [2024-12-24 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089454', 'tblTempUsageDetail_20' ) end [2024-12-24 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089454', 'tblTempVendorCDR_20' ) start [2024-12-24 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089454', 'tblTempVendorCDR_20' ) end [2024-12-24 03:34:18] Production.INFO: ProcessCDR(1,14089454,1,1,2) [2024-12-24 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089454', 'tblTempUsageDetail_20' ) start [2024-12-24 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089454', 'tblTempUsageDetail_20' ) end [2024-12-24 03:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:34:21] Production.INFO: ==4110== Releasing lock... [2024-12-24 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:34:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:35:05 [end_date_ymd] => 2024-12-24 03:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:35:17] Production.INFO: count ==193 [2024-12-24 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:35:05 - End Time 2024-12-24 03:35:05 [2024-12-24 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089459', 'tblTempUsageDetail_20' ) start [2024-12-24 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089459', 'tblTempUsageDetail_20' ) end [2024-12-24 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089459', 'tblTempVendorCDR_20' ) start [2024-12-24 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089459', 'tblTempVendorCDR_20' ) end [2024-12-24 03:35:17] Production.INFO: ProcessCDR(1,14089459,1,1,2) [2024-12-24 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089459', 'tblTempUsageDetail_20' ) start [2024-12-24 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089459', 'tblTempUsageDetail_20' ) end [2024-12-24 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:35:20] Production.INFO: ==4181== Releasing lock... [2024-12-24 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:35:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:36:05 [end_date_ymd] => 2024-12-24 03:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:36:17] Production.INFO: count ==192 [2024-12-24 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:36:05 - End Time 2024-12-24 03:36:05 [2024-12-24 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089464', 'tblTempUsageDetail_20' ) start [2024-12-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089464', 'tblTempUsageDetail_20' ) end [2024-12-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089464', 'tblTempVendorCDR_20' ) start [2024-12-24 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089464', 'tblTempVendorCDR_20' ) end [2024-12-24 03:36:17] Production.INFO: ProcessCDR(1,14089464,1,1,2) [2024-12-24 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089464', 'tblTempUsageDetail_20' ) start [2024-12-24 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089464', 'tblTempUsageDetail_20' ) end [2024-12-24 03:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:36:20] Production.INFO: ==4254== Releasing lock... [2024-12-24 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:36:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:37:05 [end_date_ymd] => 2024-12-24 03:37:05 [RateCDR] => 1 ) [2024-12-24 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:37:05' and `end` < '2024-12-24 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:37:17] Production.INFO: count ==192 [2024-12-24 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:37:05 - End Time 2024-12-24 03:37:05 [2024-12-24 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089469', 'tblTempUsageDetail_20' ) start [2024-12-24 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089469', 'tblTempUsageDetail_20' ) end [2024-12-24 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089469', 'tblTempVendorCDR_20' ) start [2024-12-24 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089469', 'tblTempVendorCDR_20' ) end [2024-12-24 03:37:17] Production.INFO: ProcessCDR(1,14089469,1,1,2) [2024-12-24 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089469', 'tblTempUsageDetail_20' ) start [2024-12-24 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089469', 'tblTempUsageDetail_20' ) end [2024-12-24 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:37:20] Production.INFO: ==4325== Releasing lock... [2024-12-24 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:37:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:38:04 [end_date_ymd] => 2024-12-24 03:38:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:38:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:38:17] Production.INFO: count ==192 [2024-12-24 03:38:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:38:04 - End Time 2024-12-24 03:38:04 [2024-12-24 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089474', 'tblTempUsageDetail_20' ) start [2024-12-24 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089474', 'tblTempUsageDetail_20' ) end [2024-12-24 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089474', 'tblTempVendorCDR_20' ) start [2024-12-24 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089474', 'tblTempVendorCDR_20' ) end [2024-12-24 03:38:17] Production.INFO: ProcessCDR(1,14089474,1,1,2) [2024-12-24 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089474', 'tblTempUsageDetail_20' ) start [2024-12-24 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089474', 'tblTempUsageDetail_20' ) end [2024-12-24 03:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:38:20] Production.INFO: ==4401== Releasing lock... [2024-12-24 03:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:38:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:39:04 [end_date_ymd] => 2024-12-24 03:39:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:39:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:39:19] Production.INFO: count ==193 [2024-12-24 03:39:19] Production.ERROR: pbx CDR StartTime 2024-12-24 00:39:04 - End Time 2024-12-24 03:39:04 [2024-12-24 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089479', 'tblTempUsageDetail_20' ) start [2024-12-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089479', 'tblTempUsageDetail_20' ) end [2024-12-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089479', 'tblTempVendorCDR_20' ) start [2024-12-24 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089479', 'tblTempVendorCDR_20' ) end [2024-12-24 03:39:19] Production.INFO: ProcessCDR(1,14089479,1,1,2) [2024-12-24 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089479', 'tblTempUsageDetail_20' ) start [2024-12-24 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089479', 'tblTempUsageDetail_20' ) end [2024-12-24 03:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:39:22] Production.INFO: ==4511== Releasing lock... [2024-12-24 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:39:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:40:07 [end_date_ymd] => 2024-12-24 03:40:07 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:40:07' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:40:20] Production.INFO: count ==183 [2024-12-24 03:40:20] Production.ERROR: pbx CDR StartTime 2024-12-24 00:40:07 - End Time 2024-12-24 03:40:07 [2024-12-24 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089485', 'tblTempUsageDetail_20' ) start [2024-12-24 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089485', 'tblTempUsageDetail_20' ) end [2024-12-24 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089485', 'tblTempVendorCDR_20' ) start [2024-12-24 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089485', 'tblTempVendorCDR_20' ) end [2024-12-24 03:40:20] Production.INFO: ProcessCDR(1,14089485,1,1,2) [2024-12-24 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089485', 'tblTempUsageDetail_20' ) start [2024-12-24 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089485', 'tblTempUsageDetail_20' ) end [2024-12-24 03:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:40:23] Production.INFO: ==4595== Releasing lock... [2024-12-24 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:40:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:41:05 [end_date_ymd] => 2024-12-24 03:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:41:18] Production.INFO: count ==179 [2024-12-24 03:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:41:05 - End Time 2024-12-24 03:41:05 [2024-12-24 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089490', 'tblTempUsageDetail_20' ) start [2024-12-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089490', 'tblTempUsageDetail_20' ) end [2024-12-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089490', 'tblTempVendorCDR_20' ) start [2024-12-24 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089490', 'tblTempVendorCDR_20' ) end [2024-12-24 03:41:18] Production.INFO: ProcessCDR(1,14089490,1,1,2) [2024-12-24 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089490', 'tblTempUsageDetail_20' ) start [2024-12-24 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089490', 'tblTempUsageDetail_20' ) end [2024-12-24 03:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:41:21] Production.INFO: ==4679== Releasing lock... [2024-12-24 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:41:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:42:04 [end_date_ymd] => 2024-12-24 03:42:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:42:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:42:17] Production.INFO: count ==177 [2024-12-24 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:42:04 - End Time 2024-12-24 03:42:04 [2024-12-24 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089495', 'tblTempUsageDetail_20' ) start [2024-12-24 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089495', 'tblTempUsageDetail_20' ) end [2024-12-24 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089495', 'tblTempVendorCDR_20' ) start [2024-12-24 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089495', 'tblTempVendorCDR_20' ) end [2024-12-24 03:42:17] Production.INFO: ProcessCDR(1,14089495,1,1,2) [2024-12-24 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089495', 'tblTempUsageDetail_20' ) start [2024-12-24 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089495', 'tblTempUsageDetail_20' ) end [2024-12-24 03:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:42:20] Production.INFO: ==4759== Releasing lock... [2024-12-24 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:42:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:43:05 [end_date_ymd] => 2024-12-24 03:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:43:18] Production.INFO: count ==177 [2024-12-24 03:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:43:05 - End Time 2024-12-24 03:43:05 [2024-12-24 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089500', 'tblTempUsageDetail_20' ) start [2024-12-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089500', 'tblTempUsageDetail_20' ) end [2024-12-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089500', 'tblTempVendorCDR_20' ) start [2024-12-24 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089500', 'tblTempVendorCDR_20' ) end [2024-12-24 03:43:18] Production.INFO: ProcessCDR(1,14089500,1,1,2) [2024-12-24 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089500', 'tblTempUsageDetail_20' ) start [2024-12-24 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089500', 'tblTempUsageDetail_20' ) end [2024-12-24 03:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:43:21] Production.INFO: ==4849== Releasing lock... [2024-12-24 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:43:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:44:05 [end_date_ymd] => 2024-12-24 03:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:44:17] Production.INFO: count ==176 [2024-12-24 03:44:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:44:05 - End Time 2024-12-24 03:44:05 [2024-12-24 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089505', 'tblTempUsageDetail_20' ) start [2024-12-24 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089505', 'tblTempUsageDetail_20' ) end [2024-12-24 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089505', 'tblTempVendorCDR_20' ) start [2024-12-24 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089505', 'tblTempVendorCDR_20' ) end [2024-12-24 03:44:17] Production.INFO: ProcessCDR(1,14089505,1,1,2) [2024-12-24 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089505', 'tblTempUsageDetail_20' ) start [2024-12-24 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089505', 'tblTempUsageDetail_20' ) end [2024-12-24 03:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:44:20] Production.INFO: ==4932== Releasing lock... [2024-12-24 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:44:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:45:05 [end_date_ymd] => 2024-12-24 03:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:45:17] Production.INFO: count ==174 [2024-12-24 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:45:05 - End Time 2024-12-24 03:45:05 [2024-12-24 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089510', 'tblTempUsageDetail_20' ) start [2024-12-24 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089510', 'tblTempUsageDetail_20' ) end [2024-12-24 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089510', 'tblTempVendorCDR_20' ) start [2024-12-24 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089510', 'tblTempVendorCDR_20' ) end [2024-12-24 03:45:17] Production.INFO: ProcessCDR(1,14089510,1,1,2) [2024-12-24 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089510', 'tblTempUsageDetail_20' ) start [2024-12-24 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089510', 'tblTempUsageDetail_20' ) end [2024-12-24 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:45:20] Production.INFO: ==5015== Releasing lock... [2024-12-24 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:45:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:46:05 [end_date_ymd] => 2024-12-24 03:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:46:18] Production.INFO: count ==172 [2024-12-24 03:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:46:05 - End Time 2024-12-24 03:46:05 [2024-12-24 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089515', 'tblTempUsageDetail_20' ) start [2024-12-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089515', 'tblTempUsageDetail_20' ) end [2024-12-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089515', 'tblTempVendorCDR_20' ) start [2024-12-24 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089515', 'tblTempVendorCDR_20' ) end [2024-12-24 03:46:18] Production.INFO: ProcessCDR(1,14089515,1,1,2) [2024-12-24 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089515', 'tblTempUsageDetail_20' ) start [2024-12-24 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089515', 'tblTempUsageDetail_20' ) end [2024-12-24 03:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:46:21] Production.INFO: ==5101== Releasing lock... [2024-12-24 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:46:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:47:04 [end_date_ymd] => 2024-12-24 03:47:04 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:47:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:47:16] Production.INFO: count ==169 [2024-12-24 03:47:16] Production.ERROR: pbx CDR StartTime 2024-12-24 00:47:04 - End Time 2024-12-24 03:47:04 [2024-12-24 03:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089520', 'tblTempUsageDetail_20' ) start [2024-12-24 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089520', 'tblTempUsageDetail_20' ) end [2024-12-24 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089520', 'tblTempVendorCDR_20' ) start [2024-12-24 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089520', 'tblTempVendorCDR_20' ) end [2024-12-24 03:47:16] Production.INFO: ProcessCDR(1,14089520,1,1,2) [2024-12-24 03:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089520', 'tblTempUsageDetail_20' ) start [2024-12-24 03:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089520', 'tblTempUsageDetail_20' ) end [2024-12-24 03:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:47:19] Production.INFO: ==5185== Releasing lock... [2024-12-24 03:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:47:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:48:05 [end_date_ymd] => 2024-12-24 03:48:05 [RateCDR] => 1 ) [2024-12-24 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:48:05' and `end` < '2024-12-24 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:48:17] Production.INFO: count ==168 [2024-12-24 03:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:48:05 - End Time 2024-12-24 03:48:05 [2024-12-24 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089525', 'tblTempUsageDetail_20' ) start [2024-12-24 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089525', 'tblTempUsageDetail_20' ) end [2024-12-24 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089525', 'tblTempVendorCDR_20' ) start [2024-12-24 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089525', 'tblTempVendorCDR_20' ) end [2024-12-24 03:48:17] Production.INFO: ProcessCDR(1,14089525,1,1,2) [2024-12-24 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089525', 'tblTempUsageDetail_20' ) start [2024-12-24 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089525', 'tblTempUsageDetail_20' ) end [2024-12-24 03:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:48:20] Production.INFO: ==5271== Releasing lock... [2024-12-24 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:48:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:49:04 [end_date_ymd] => 2024-12-24 03:49:04 [RateCDR] => 1 ) [2024-12-24 03:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:49:04' and `end` < '2024-12-24 03:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:49:17] Production.INFO: count ==168 [2024-12-24 03:49:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:49:04 - End Time 2024-12-24 03:49:04 [2024-12-24 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089530', 'tblTempUsageDetail_20' ) start [2024-12-24 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089530', 'tblTempUsageDetail_20' ) end [2024-12-24 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089530', 'tblTempVendorCDR_20' ) start [2024-12-24 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089530', 'tblTempVendorCDR_20' ) end [2024-12-24 03:49:17] Production.INFO: ProcessCDR(1,14089530,1,1,2) [2024-12-24 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089530', 'tblTempUsageDetail_20' ) start [2024-12-24 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089530', 'tblTempUsageDetail_20' ) end [2024-12-24 03:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:49:21] Production.INFO: ==5353== Releasing lock... [2024-12-24 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:49:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:50:05 [end_date_ymd] => 2024-12-24 03:50:05 [RateCDR] => 1 ) [2024-12-24 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:50:05' and `end` < '2024-12-24 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:50:17] Production.INFO: count ==160 [2024-12-24 03:50:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:50:05 - End Time 2024-12-24 03:50:05 [2024-12-24 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089536', 'tblTempUsageDetail_20' ) start [2024-12-24 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089536', 'tblTempUsageDetail_20' ) end [2024-12-24 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089536', 'tblTempVendorCDR_20' ) start [2024-12-24 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089536', 'tblTempVendorCDR_20' ) end [2024-12-24 03:50:17] Production.INFO: ProcessCDR(1,14089536,1,1,2) [2024-12-24 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089536', 'tblTempUsageDetail_20' ) start [2024-12-24 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089536', 'tblTempUsageDetail_20' ) end [2024-12-24 03:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:50:20] Production.INFO: ==5441== Releasing lock... [2024-12-24 03:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:50:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:51:04 [end_date_ymd] => 2024-12-24 03:51:04 [RateCDR] => 1 ) [2024-12-24 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:51:04' and `end` < '2024-12-24 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:51:17] Production.INFO: count ==151 [2024-12-24 03:51:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:51:04 - End Time 2024-12-24 03:51:04 [2024-12-24 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089541', 'tblTempUsageDetail_20' ) start [2024-12-24 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089541', 'tblTempUsageDetail_20' ) end [2024-12-24 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089541', 'tblTempVendorCDR_20' ) start [2024-12-24 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089541', 'tblTempVendorCDR_20' ) end [2024-12-24 03:51:17] Production.INFO: ProcessCDR(1,14089541,1,1,2) [2024-12-24 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089541', 'tblTempUsageDetail_20' ) start [2024-12-24 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089541', 'tblTempUsageDetail_20' ) end [2024-12-24 03:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:51:20] Production.INFO: ==5518== Releasing lock... [2024-12-24 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:51:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:52:05 [end_date_ymd] => 2024-12-24 03:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:52:18] Production.INFO: count ==152 [2024-12-24 03:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:52:05 - End Time 2024-12-24 03:52:05 [2024-12-24 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089546', 'tblTempUsageDetail_20' ) start [2024-12-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089546', 'tblTempUsageDetail_20' ) end [2024-12-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089546', 'tblTempVendorCDR_20' ) start [2024-12-24 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089546', 'tblTempVendorCDR_20' ) end [2024-12-24 03:52:18] Production.INFO: ProcessCDR(1,14089546,1,1,2) [2024-12-24 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089546', 'tblTempUsageDetail_20' ) start [2024-12-24 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089546', 'tblTempUsageDetail_20' ) end [2024-12-24 03:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:52:23] Production.INFO: ==5593== Releasing lock... [2024-12-24 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:52:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:53:06 [end_date_ymd] => 2024-12-24 03:53:06 [RateCDR] => 1 ) [2024-12-24 03: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` >= '2024-12-24 00:53:06' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:53:19] Production.INFO: count ==152 [2024-12-24 03:53:19] Production.ERROR: pbx CDR StartTime 2024-12-24 00:53:06 - End Time 2024-12-24 03:53:06 [2024-12-24 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089551', 'tblTempUsageDetail_20' ) start [2024-12-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089551', 'tblTempUsageDetail_20' ) end [2024-12-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089551', 'tblTempVendorCDR_20' ) start [2024-12-24 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089551', 'tblTempVendorCDR_20' ) end [2024-12-24 03:53:19] Production.INFO: ProcessCDR(1,14089551,1,1,2) [2024-12-24 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089551', 'tblTempUsageDetail_20' ) start [2024-12-24 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089551', 'tblTempUsageDetail_20' ) end [2024-12-24 03:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:53:22] Production.INFO: ==5672== Releasing lock... [2024-12-24 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:53:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:54:05 [end_date_ymd] => 2024-12-24 03:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:54:18] Production.INFO: count ==152 [2024-12-24 03:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:54:05 - End Time 2024-12-24 03:54:05 [2024-12-24 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089556', 'tblTempUsageDetail_20' ) start [2024-12-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089556', 'tblTempUsageDetail_20' ) end [2024-12-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089556', 'tblTempVendorCDR_20' ) start [2024-12-24 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089556', 'tblTempVendorCDR_20' ) end [2024-12-24 03:54:18] Production.INFO: ProcessCDR(1,14089556,1,1,2) [2024-12-24 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089556', 'tblTempUsageDetail_20' ) start [2024-12-24 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089556', 'tblTempUsageDetail_20' ) end [2024-12-24 03:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:54:21] Production.INFO: ==5748== Releasing lock... [2024-12-24 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:54:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:55:05 [end_date_ymd] => 2024-12-24 03:55:05 [RateCDR] => 1 ) [2024-12-24 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:55:05' and `end` < '2024-12-24 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 03:55:17] Production.INFO: count ==152 [2024-12-24 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:55:05 - End Time 2024-12-24 03:55:05 [2024-12-24 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089561', 'tblTempUsageDetail_20' ) start [2024-12-24 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089561', 'tblTempUsageDetail_20' ) end [2024-12-24 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089561', 'tblTempVendorCDR_20' ) start [2024-12-24 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089561', 'tblTempVendorCDR_20' ) end [2024-12-24 03:55:17] Production.INFO: ProcessCDR(1,14089561,1,1,2) [2024-12-24 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089561', 'tblTempUsageDetail_20' ) start [2024-12-24 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089561', 'tblTempUsageDetail_20' ) end [2024-12-24 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:55:20] Production.INFO: ==5865== Releasing lock... [2024-12-24 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:55:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:56:05 [end_date_ymd] => 2024-12-24 03:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:56:17] Production.INFO: count ==152 [2024-12-24 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:56:05 - End Time 2024-12-24 03:56:05 [2024-12-24 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089566', 'tblTempUsageDetail_20' ) start [2024-12-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089566', 'tblTempUsageDetail_20' ) end [2024-12-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089566', 'tblTempVendorCDR_20' ) start [2024-12-24 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089566', 'tblTempVendorCDR_20' ) end [2024-12-24 03:56:17] Production.INFO: ProcessCDR(1,14089566,1,1,2) [2024-12-24 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089566', 'tblTempUsageDetail_20' ) start [2024-12-24 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089566', 'tblTempUsageDetail_20' ) end [2024-12-24 03:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:56:20] Production.INFO: ==5942== Releasing lock... [2024-12-24 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:56:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:57:05 [end_date_ymd] => 2024-12-24 03:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:57:17] Production.INFO: count ==150 [2024-12-24 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:57:05 - End Time 2024-12-24 03:57:05 [2024-12-24 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089571', 'tblTempUsageDetail_20' ) start [2024-12-24 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089571', 'tblTempUsageDetail_20' ) end [2024-12-24 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089571', 'tblTempVendorCDR_20' ) start [2024-12-24 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089571', 'tblTempVendorCDR_20' ) end [2024-12-24 03:57:17] Production.INFO: ProcessCDR(1,14089571,1,1,2) [2024-12-24 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089571', 'tblTempUsageDetail_20' ) start [2024-12-24 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089571', 'tblTempUsageDetail_20' ) end [2024-12-24 03:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:57:20] Production.INFO: ==6012== Releasing lock... [2024-12-24 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:57:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:58:04 [end_date_ymd] => 2024-12-24 03:58:04 [RateCDR] => 1 ) [2024-12-24 03:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 00:58:04' and `end` < '2024-12-24 03: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 ,'') [2024-12-24 03:58:18] Production.INFO: count ==150 [2024-12-24 03:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 00:58:04 - End Time 2024-12-24 03:58:04 [2024-12-24 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089576', 'tblTempUsageDetail_20' ) start [2024-12-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089576', 'tblTempUsageDetail_20' ) end [2024-12-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089576', 'tblTempVendorCDR_20' ) start [2024-12-24 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089576', 'tblTempVendorCDR_20' ) end [2024-12-24 03:58:18] Production.INFO: ProcessCDR(1,14089576,1,1,2) [2024-12-24 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089576', 'tblTempUsageDetail_20' ) start [2024-12-24 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089576', 'tblTempUsageDetail_20' ) end [2024-12-24 03:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:58:21] Production.INFO: ==6087== Releasing lock... [2024-12-24 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:58:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 00:59:05 [end_date_ymd] => 2024-12-24 03:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 00:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 03:59:17] Production.INFO: count ==150 [2024-12-24 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-24 00:59:05 - End Time 2024-12-24 03:59:05 [2024-12-24 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089581', 'tblTempUsageDetail_20' ) start [2024-12-24 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089581', 'tblTempUsageDetail_20' ) end [2024-12-24 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089581', 'tblTempVendorCDR_20' ) start [2024-12-24 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089581', 'tblTempVendorCDR_20' ) end [2024-12-24 03:59:17] Production.INFO: ProcessCDR(1,14089581,1,1,2) [2024-12-24 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089581', 'tblTempUsageDetail_20' ) start [2024-12-24 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089581', 'tblTempUsageDetail_20' ) end [2024-12-24 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 03:59:20] Production.INFO: ==6162== Releasing lock... [2024-12-24 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 03:59:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:00:05 [end_date_ymd] => 2024-12-24 04:00:05 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:00:05' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:00:18] Production.INFO: count ==144 [2024-12-24 04:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:00:05 - End Time 2024-12-24 04:00:05 [2024-12-24 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089588', 'tblTempUsageDetail_20' ) start [2024-12-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089588', 'tblTempUsageDetail_20' ) end [2024-12-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089588', 'tblTempVendorCDR_20' ) start [2024-12-24 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089588', 'tblTempVendorCDR_20' ) end [2024-12-24 04:00:18] Production.INFO: ProcessCDR(1,14089588,1,1,2) [2024-12-24 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089588', 'tblTempUsageDetail_20' ) start [2024-12-24 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089588', 'tblTempUsageDetail_20' ) end [2024-12-24 04:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:00:21] Production.INFO: ==6240== Releasing lock... [2024-12-24 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:00:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:01:04 [end_date_ymd] => 2024-12-24 04:01:04 [RateCDR] => 1 ) [2024-12-24 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:01:04' and `end` < '2024-12-24 04:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:01:17] Production.INFO: count ==130 [2024-12-24 04:01:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:01:04 - End Time 2024-12-24 04:01:04 [2024-12-24 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089591', 'tblTempUsageDetail_20' ) start [2024-12-24 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089591', 'tblTempUsageDetail_20' ) end [2024-12-24 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089591', 'tblTempVendorCDR_20' ) start [2024-12-24 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089591', 'tblTempVendorCDR_20' ) end [2024-12-24 04:01:17] Production.INFO: ProcessCDR(1,14089591,1,1,2) [2024-12-24 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089591', 'tblTempUsageDetail_20' ) start [2024-12-24 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089591', 'tblTempUsageDetail_20' ) end [2024-12-24 04:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:01:20] Production.INFO: ==6330== Releasing lock... [2024-12-24 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:01:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:02:05 [end_date_ymd] => 2024-12-24 04:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:02:17] Production.INFO: count ==130 [2024-12-24 04:02:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:02:05 - End Time 2024-12-24 04:02:05 [2024-12-24 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089598', 'tblTempUsageDetail_20' ) start [2024-12-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089598', 'tblTempUsageDetail_20' ) end [2024-12-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089598', 'tblTempVendorCDR_20' ) start [2024-12-24 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089598', 'tblTempVendorCDR_20' ) end [2024-12-24 04:02:17] Production.INFO: ProcessCDR(1,14089598,1,1,2) [2024-12-24 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089598', 'tblTempUsageDetail_20' ) start [2024-12-24 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089598', 'tblTempUsageDetail_20' ) end [2024-12-24 04:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:02:21] Production.INFO: ==6399== Releasing lock... [2024-12-24 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:02:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:03:05 [end_date_ymd] => 2024-12-24 04:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:03:17] Production.INFO: count ==130 [2024-12-24 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:03:05 - End Time 2024-12-24 04:03:05 [2024-12-24 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089603', 'tblTempUsageDetail_20' ) start [2024-12-24 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089603', 'tblTempUsageDetail_20' ) end [2024-12-24 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089603', 'tblTempVendorCDR_20' ) start [2024-12-24 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089603', 'tblTempVendorCDR_20' ) end [2024-12-24 04:03:17] Production.INFO: ProcessCDR(1,14089603,1,1,2) [2024-12-24 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089603', 'tblTempUsageDetail_20' ) start [2024-12-24 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089603', 'tblTempUsageDetail_20' ) end [2024-12-24 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:03:20] Production.INFO: ==6475== Releasing lock... [2024-12-24 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:03:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:04:05 [end_date_ymd] => 2024-12-24 04:04:05 [RateCDR] => 1 ) [2024-12-24 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:04:05' and `end` < '2024-12-24 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:04:18] Production.INFO: count ==130 [2024-12-24 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:04:05 - End Time 2024-12-24 04:04:05 [2024-12-24 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089608', 'tblTempUsageDetail_20' ) start [2024-12-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089608', 'tblTempUsageDetail_20' ) end [2024-12-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089608', 'tblTempVendorCDR_20' ) start [2024-12-24 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089608', 'tblTempVendorCDR_20' ) end [2024-12-24 04:04:18] Production.INFO: ProcessCDR(1,14089608,1,1,2) [2024-12-24 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089608', 'tblTempUsageDetail_20' ) start [2024-12-24 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089608', 'tblTempUsageDetail_20' ) end [2024-12-24 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:04:21] Production.INFO: ==6551== Releasing lock... [2024-12-24 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:04:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:05:05 [end_date_ymd] => 2024-12-24 04:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:05:17] Production.INFO: count ==130 [2024-12-24 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:05:05 - End Time 2024-12-24 04:05:05 [2024-12-24 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089613', 'tblTempUsageDetail_20' ) start [2024-12-24 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089613', 'tblTempUsageDetail_20' ) end [2024-12-24 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089613', 'tblTempVendorCDR_20' ) start [2024-12-24 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089613', 'tblTempVendorCDR_20' ) end [2024-12-24 04:05:17] Production.INFO: ProcessCDR(1,14089613,1,1,2) [2024-12-24 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089613', 'tblTempUsageDetail_20' ) start [2024-12-24 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089613', 'tblTempUsageDetail_20' ) end [2024-12-24 04:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:05:20] Production.INFO: ==6627== Releasing lock... [2024-12-24 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:05:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:06:05 [end_date_ymd] => 2024-12-24 04:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:06:17] Production.INFO: count ==130 [2024-12-24 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:06:05 - End Time 2024-12-24 04:06:05 [2024-12-24 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089618', 'tblTempUsageDetail_20' ) start [2024-12-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089618', 'tblTempUsageDetail_20' ) end [2024-12-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089618', 'tblTempVendorCDR_20' ) start [2024-12-24 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089618', 'tblTempVendorCDR_20' ) end [2024-12-24 04:06:17] Production.INFO: ProcessCDR(1,14089618,1,1,2) [2024-12-24 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089618', 'tblTempUsageDetail_20' ) start [2024-12-24 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089618', 'tblTempUsageDetail_20' ) end [2024-12-24 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:06:20] Production.INFO: ==6700== Releasing lock... [2024-12-24 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:06:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:07:04 [end_date_ymd] => 2024-12-24 04:07:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:07:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:07:17] Production.INFO: count ==130 [2024-12-24 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:07:04 - End Time 2024-12-24 04:07:04 [2024-12-24 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089623', 'tblTempUsageDetail_20' ) start [2024-12-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089623', 'tblTempUsageDetail_20' ) end [2024-12-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089623', 'tblTempVendorCDR_20' ) start [2024-12-24 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089623', 'tblTempVendorCDR_20' ) end [2024-12-24 04:07:17] Production.INFO: ProcessCDR(1,14089623,1,1,2) [2024-12-24 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089623', 'tblTempUsageDetail_20' ) start [2024-12-24 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089623', 'tblTempUsageDetail_20' ) end [2024-12-24 04:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:07:21] Production.INFO: ==6773== Releasing lock... [2024-12-24 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:07:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:08:05 [end_date_ymd] => 2024-12-24 04:08:05 [RateCDR] => 1 ) [2024-12-24 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:08:05' and `end` < '2024-12-24 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:08:18] Production.INFO: count ==128 [2024-12-24 04:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:08:05 - End Time 2024-12-24 04:08:05 [2024-12-24 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089628', 'tblTempUsageDetail_20' ) start [2024-12-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089628', 'tblTempUsageDetail_20' ) end [2024-12-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089628', 'tblTempVendorCDR_20' ) start [2024-12-24 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089628', 'tblTempVendorCDR_20' ) end [2024-12-24 04:08:18] Production.INFO: ProcessCDR(1,14089628,1,1,2) [2024-12-24 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089628', 'tblTempUsageDetail_20' ) start [2024-12-24 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089628', 'tblTempUsageDetail_20' ) end [2024-12-24 04:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:08:21] Production.INFO: ==6852== Releasing lock... [2024-12-24 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:08:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:09:04 [end_date_ymd] => 2024-12-24 04:09:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:09:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:09:16] Production.INFO: count ==128 [2024-12-24 04:09:16] Production.ERROR: pbx CDR StartTime 2024-12-24 01:09:04 - End Time 2024-12-24 04:09:04 [2024-12-24 04:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089633', 'tblTempUsageDetail_20' ) start [2024-12-24 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089633', 'tblTempUsageDetail_20' ) end [2024-12-24 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089633', 'tblTempVendorCDR_20' ) start [2024-12-24 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089633', 'tblTempVendorCDR_20' ) end [2024-12-24 04:09:16] Production.INFO: ProcessCDR(1,14089633,1,1,2) [2024-12-24 04:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089633', 'tblTempUsageDetail_20' ) start [2024-12-24 04:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089633', 'tblTempUsageDetail_20' ) end [2024-12-24 04:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:09:19] Production.INFO: ==6925== Releasing lock... [2024-12-24 04:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:09:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-24 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:10:05 [end_date_ymd] => 2024-12-24 04:10:05 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:10:05' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:10:25] Production.INFO: count ==123 [2024-12-24 04:10:25] Production.ERROR: pbx CDR StartTime 2024-12-24 01:10:05 - End Time 2024-12-24 04:10:05 [2024-12-24 04:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089639', 'tblTempUsageDetail_20' ) start [2024-12-24 04:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089639', 'tblTempUsageDetail_20' ) end [2024-12-24 04:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089639', 'tblTempVendorCDR_20' ) start [2024-12-24 04:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089639', 'tblTempVendorCDR_20' ) end [2024-12-24 04:10:25] Production.INFO: ProcessCDR(1,14089639,1,1,2) [2024-12-24 04:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089639', 'tblTempUsageDetail_20' ) start [2024-12-24 04:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089639', 'tblTempUsageDetail_20' ) end [2024-12-24 04:10:30] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:10:30] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:10:30] Production.INFO: ==7040== Releasing lock... [2024-12-24 04:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:10:30] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:11:05 [end_date_ymd] => 2024-12-24 04:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:11:19] Production.INFO: count ==114 [2024-12-24 04:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:11:05 - End Time 2024-12-24 04:11:05 [2024-12-24 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089644', 'tblTempUsageDetail_20' ) start [2024-12-24 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089644', 'tblTempUsageDetail_20' ) end [2024-12-24 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089644', 'tblTempVendorCDR_20' ) start [2024-12-24 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089644', 'tblTempVendorCDR_20' ) end [2024-12-24 04:11:19] Production.INFO: ProcessCDR(1,14089644,1,1,2) [2024-12-24 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089644', 'tblTempUsageDetail_20' ) start [2024-12-24 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089644', 'tblTempUsageDetail_20' ) end [2024-12-24 04:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:11:22] Production.INFO: ==7119== Releasing lock... [2024-12-24 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:11:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:12:04 [end_date_ymd] => 2024-12-24 04:12:04 [RateCDR] => 1 ) [2024-12-24 04:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:12:04' and `end` < '2024-12-24 04:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:12:18] Production.INFO: count ==114 [2024-12-24 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:12:04 - End Time 2024-12-24 04:12:04 [2024-12-24 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089649', 'tblTempUsageDetail_20' ) start [2024-12-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089649', 'tblTempUsageDetail_20' ) end [2024-12-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089649', 'tblTempVendorCDR_20' ) start [2024-12-24 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089649', 'tblTempVendorCDR_20' ) end [2024-12-24 04:12:18] Production.INFO: ProcessCDR(1,14089649,1,1,2) [2024-12-24 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089649', 'tblTempUsageDetail_20' ) start [2024-12-24 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089649', 'tblTempUsageDetail_20' ) end [2024-12-24 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:12:21] Production.INFO: ==7193== Releasing lock... [2024-12-24 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:13:05 [end_date_ymd] => 2024-12-24 04:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:13:18] Production.INFO: count ==114 [2024-12-24 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:13:05 - End Time 2024-12-24 04:13:05 [2024-12-24 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089654', 'tblTempUsageDetail_20' ) start [2024-12-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089654', 'tblTempUsageDetail_20' ) end [2024-12-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089654', 'tblTempVendorCDR_20' ) start [2024-12-24 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089654', 'tblTempVendorCDR_20' ) end [2024-12-24 04:13:18] Production.INFO: ProcessCDR(1,14089654,1,1,2) [2024-12-24 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089654', 'tblTempUsageDetail_20' ) start [2024-12-24 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089654', 'tblTempUsageDetail_20' ) end [2024-12-24 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:13:21] Production.INFO: ==7267== Releasing lock... [2024-12-24 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:14:04 [end_date_ymd] => 2024-12-24 04:14:04 [RateCDR] => 1 ) [2024-12-24 04:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:14:04' and `end` < '2024-12-24 04:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:14:16] Production.INFO: count ==113 [2024-12-24 04:14:16] Production.ERROR: pbx CDR StartTime 2024-12-24 01:14:04 - End Time 2024-12-24 04:14:04 [2024-12-24 04:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089659', 'tblTempUsageDetail_20' ) start [2024-12-24 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089659', 'tblTempUsageDetail_20' ) end [2024-12-24 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089659', 'tblTempVendorCDR_20' ) start [2024-12-24 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089659', 'tblTempVendorCDR_20' ) end [2024-12-24 04:14:16] Production.INFO: ProcessCDR(1,14089659,1,1,2) [2024-12-24 04:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089659', 'tblTempUsageDetail_20' ) start [2024-12-24 04:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089659', 'tblTempUsageDetail_20' ) end [2024-12-24 04:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:14:19] Production.INFO: ==7339== Releasing lock... [2024-12-24 04:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:14:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:15:05 [end_date_ymd] => 2024-12-24 04:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:15:17] Production.INFO: count ==113 [2024-12-24 04:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:15:05 - End Time 2024-12-24 04:15:05 [2024-12-24 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089664', 'tblTempUsageDetail_20' ) start [2024-12-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089664', 'tblTempUsageDetail_20' ) end [2024-12-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089664', 'tblTempVendorCDR_20' ) start [2024-12-24 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089664', 'tblTempVendorCDR_20' ) end [2024-12-24 04:15:17] Production.INFO: ProcessCDR(1,14089664,1,1,2) [2024-12-24 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089664', 'tblTempUsageDetail_20' ) start [2024-12-24 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089664', 'tblTempUsageDetail_20' ) end [2024-12-24 04:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:15:20] Production.INFO: ==7417== Releasing lock... [2024-12-24 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:15:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:16:05 [end_date_ymd] => 2024-12-24 04:16:05 [RateCDR] => 1 ) [2024-12-24 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:16:05' and `end` < '2024-12-24 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:16:19] Production.INFO: count ==113 [2024-12-24 04:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:16:05 - End Time 2024-12-24 04:16:05 [2024-12-24 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089669', 'tblTempUsageDetail_20' ) start [2024-12-24 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089669', 'tblTempUsageDetail_20' ) end [2024-12-24 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089669', 'tblTempVendorCDR_20' ) start [2024-12-24 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089669', 'tblTempVendorCDR_20' ) end [2024-12-24 04:16:19] Production.INFO: ProcessCDR(1,14089669,1,1,2) [2024-12-24 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089669', 'tblTempUsageDetail_20' ) start [2024-12-24 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089669', 'tblTempUsageDetail_20' ) end [2024-12-24 04:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:16:22] Production.INFO: ==7491== Releasing lock... [2024-12-24 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:16:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:17:05 [end_date_ymd] => 2024-12-24 04:17:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:17:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:17:17] Production.INFO: count ==113 [2024-12-24 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:17:05 - End Time 2024-12-24 04:17:05 [2024-12-24 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089674', 'tblTempUsageDetail_20' ) start [2024-12-24 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089674', 'tblTempUsageDetail_20' ) end [2024-12-24 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089674', 'tblTempVendorCDR_20' ) start [2024-12-24 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089674', 'tblTempVendorCDR_20' ) end [2024-12-24 04:17:17] Production.INFO: ProcessCDR(1,14089674,1,1,2) [2024-12-24 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089674', 'tblTempUsageDetail_20' ) start [2024-12-24 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089674', 'tblTempUsageDetail_20' ) end [2024-12-24 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:17:20] Production.INFO: ==7580== Releasing lock... [2024-12-24 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:17:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:18:04 [end_date_ymd] => 2024-12-24 04:18:04 [RateCDR] => 1 ) [2024-12-24 04:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:18:04' and `end` < '2024-12-24 04:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:18:17] Production.INFO: count ==113 [2024-12-24 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:18:04 - End Time 2024-12-24 04:18:04 [2024-12-24 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089679', 'tblTempUsageDetail_20' ) start [2024-12-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089679', 'tblTempUsageDetail_20' ) end [2024-12-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089679', 'tblTempVendorCDR_20' ) start [2024-12-24 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089679', 'tblTempVendorCDR_20' ) end [2024-12-24 04:18:17] Production.INFO: ProcessCDR(1,14089679,1,1,2) [2024-12-24 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089679', 'tblTempUsageDetail_20' ) start [2024-12-24 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089679', 'tblTempUsageDetail_20' ) end [2024-12-24 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:18:20] Production.INFO: ==7654== Releasing lock... [2024-12-24 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:18:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:19:05 [end_date_ymd] => 2024-12-24 04:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:19:17] Production.INFO: count ==113 [2024-12-24 04:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:19:05 - End Time 2024-12-24 04:19:05 [2024-12-24 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089684', 'tblTempUsageDetail_20' ) start [2024-12-24 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089684', 'tblTempUsageDetail_20' ) end [2024-12-24 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089684', 'tblTempVendorCDR_20' ) start [2024-12-24 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089684', 'tblTempVendorCDR_20' ) end [2024-12-24 04:19:17] Production.INFO: ProcessCDR(1,14089684,1,1,2) [2024-12-24 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089684', 'tblTempUsageDetail_20' ) start [2024-12-24 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089684', 'tblTempUsageDetail_20' ) end [2024-12-24 04:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:19:20] Production.INFO: ==7729== Releasing lock... [2024-12-24 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:19:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:20:06 [end_date_ymd] => 2024-12-24 04:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:20:19] Production.INFO: count ==111 [2024-12-24 04:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:20:06 - End Time 2024-12-24 04:20:06 [2024-12-24 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089690', 'tblTempUsageDetail_20' ) start [2024-12-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089690', 'tblTempUsageDetail_20' ) end [2024-12-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089690', 'tblTempVendorCDR_20' ) start [2024-12-24 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089690', 'tblTempVendorCDR_20' ) end [2024-12-24 04:20:19] Production.INFO: ProcessCDR(1,14089690,1,1,2) [2024-12-24 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089690', 'tblTempUsageDetail_20' ) start [2024-12-24 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089690', 'tblTempUsageDetail_20' ) end [2024-12-24 04:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:20:22] Production.INFO: ==7808== Releasing lock... [2024-12-24 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:21:04 [end_date_ymd] => 2024-12-24 04:21:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:21:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:21:16] Production.INFO: count ==105 [2024-12-24 04:21:16] Production.ERROR: pbx CDR StartTime 2024-12-24 01:21:04 - End Time 2024-12-24 04:21:04 [2024-12-24 04:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089695', 'tblTempUsageDetail_20' ) start [2024-12-24 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089695', 'tblTempUsageDetail_20' ) end [2024-12-24 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089695', 'tblTempVendorCDR_20' ) start [2024-12-24 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089695', 'tblTempVendorCDR_20' ) end [2024-12-24 04:21:16] Production.INFO: ProcessCDR(1,14089695,1,1,2) [2024-12-24 04:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089695', 'tblTempUsageDetail_20' ) start [2024-12-24 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089695', 'tblTempUsageDetail_20' ) end [2024-12-24 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:21:20] Production.INFO: ==7883== Releasing lock... [2024-12-24 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:21:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:22:05 [end_date_ymd] => 2024-12-24 04:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:22:18] Production.INFO: count ==104 [2024-12-24 04:22:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:22:05 - End Time 2024-12-24 04:22:05 [2024-12-24 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089700', 'tblTempUsageDetail_20' ) start [2024-12-24 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089700', 'tblTempUsageDetail_20' ) end [2024-12-24 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089700', 'tblTempVendorCDR_20' ) start [2024-12-24 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089700', 'tblTempVendorCDR_20' ) end [2024-12-24 04:22:18] Production.INFO: ProcessCDR(1,14089700,1,1,2) [2024-12-24 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089700', 'tblTempUsageDetail_20' ) start [2024-12-24 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089700', 'tblTempUsageDetail_20' ) end [2024-12-24 04:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:22:21] Production.INFO: ==7962== Releasing lock... [2024-12-24 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:23:04 [end_date_ymd] => 2024-12-24 04:23:04 [RateCDR] => 1 ) [2024-12-24 04:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:23:04' and `end` < '2024-12-24 04:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:23:17] Production.INFO: count ==104 [2024-12-24 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:23:04 - End Time 2024-12-24 04:23:04 [2024-12-24 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089705', 'tblTempUsageDetail_20' ) start [2024-12-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089705', 'tblTempUsageDetail_20' ) end [2024-12-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089705', 'tblTempVendorCDR_20' ) start [2024-12-24 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089705', 'tblTempVendorCDR_20' ) end [2024-12-24 04:23:17] Production.INFO: ProcessCDR(1,14089705,1,1,2) [2024-12-24 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089705', 'tblTempUsageDetail_20' ) start [2024-12-24 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089705', 'tblTempUsageDetail_20' ) end [2024-12-24 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:23:20] Production.INFO: ==8040== Releasing lock... [2024-12-24 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:23:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:24:05 [end_date_ymd] => 2024-12-24 04:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:24:17] Production.INFO: count ==104 [2024-12-24 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:24:05 - End Time 2024-12-24 04:24:05 [2024-12-24 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089710', 'tblTempUsageDetail_20' ) start [2024-12-24 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089710', 'tblTempUsageDetail_20' ) end [2024-12-24 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089710', 'tblTempVendorCDR_20' ) start [2024-12-24 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089710', 'tblTempVendorCDR_20' ) end [2024-12-24 04:24:17] Production.INFO: ProcessCDR(1,14089710,1,1,2) [2024-12-24 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089710', 'tblTempUsageDetail_20' ) start [2024-12-24 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089710', 'tblTempUsageDetail_20' ) end [2024-12-24 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:24:20] Production.INFO: ==8114== Releasing lock... [2024-12-24 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:25:05 [end_date_ymd] => 2024-12-24 04:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:25:18] Production.INFO: count ==104 [2024-12-24 04:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:25:05 - End Time 2024-12-24 04:25:05 [2024-12-24 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089715', 'tblTempUsageDetail_20' ) start [2024-12-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089715', 'tblTempUsageDetail_20' ) end [2024-12-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089715', 'tblTempVendorCDR_20' ) start [2024-12-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089715', 'tblTempVendorCDR_20' ) end [2024-12-24 04:25:18] Production.INFO: ProcessCDR(1,14089715,1,1,2) [2024-12-24 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089715', 'tblTempUsageDetail_20' ) start [2024-12-24 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089715', 'tblTempUsageDetail_20' ) end [2024-12-24 04:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:25:21] Production.INFO: ==8191== Releasing lock... [2024-12-24 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:26:05 [end_date_ymd] => 2024-12-24 04:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:26:17] Production.INFO: count ==101 [2024-12-24 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:26:05 - End Time 2024-12-24 04:26:05 [2024-12-24 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089720', 'tblTempUsageDetail_20' ) start [2024-12-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089720', 'tblTempUsageDetail_20' ) end [2024-12-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089720', 'tblTempVendorCDR_20' ) start [2024-12-24 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089720', 'tblTempVendorCDR_20' ) end [2024-12-24 04:26:17] Production.INFO: ProcessCDR(1,14089720,1,1,2) [2024-12-24 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089720', 'tblTempUsageDetail_20' ) start [2024-12-24 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089720', 'tblTempUsageDetail_20' ) end [2024-12-24 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:26:20] Production.INFO: ==8306== Releasing lock... [2024-12-24 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:27:04 [end_date_ymd] => 2024-12-24 04:27:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:27:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:27:17] Production.INFO: count ==101 [2024-12-24 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:27:04 - End Time 2024-12-24 04:27:04 [2024-12-24 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089725', 'tblTempUsageDetail_20' ) start [2024-12-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089725', 'tblTempUsageDetail_20' ) end [2024-12-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089725', 'tblTempVendorCDR_20' ) start [2024-12-24 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089725', 'tblTempVendorCDR_20' ) end [2024-12-24 04:27:17] Production.INFO: ProcessCDR(1,14089725,1,1,2) [2024-12-24 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089725', 'tblTempUsageDetail_20' ) start [2024-12-24 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089725', 'tblTempUsageDetail_20' ) end [2024-12-24 04:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:27:20] Production.INFO: ==8380== Releasing lock... [2024-12-24 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:27:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:28:05 [end_date_ymd] => 2024-12-24 04:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:28:18] Production.INFO: count ==101 [2024-12-24 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:28:05 - End Time 2024-12-24 04:28:05 [2024-12-24 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089730', 'tblTempUsageDetail_20' ) start [2024-12-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089730', 'tblTempUsageDetail_20' ) end [2024-12-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089730', 'tblTempVendorCDR_20' ) start [2024-12-24 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089730', 'tblTempVendorCDR_20' ) end [2024-12-24 04:28:18] Production.INFO: ProcessCDR(1,14089730,1,1,2) [2024-12-24 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089730', 'tblTempUsageDetail_20' ) start [2024-12-24 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089730', 'tblTempUsageDetail_20' ) end [2024-12-24 04:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:28:21] Production.INFO: ==8457== Releasing lock... [2024-12-24 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:29:04 [end_date_ymd] => 2024-12-24 04:29:04 [RateCDR] => 1 ) [2024-12-24 04:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:29:04' and `end` < '2024-12-24 04:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:29:16] Production.INFO: count ==101 [2024-12-24 04:29:16] Production.ERROR: pbx CDR StartTime 2024-12-24 01:29:04 - End Time 2024-12-24 04:29:04 [2024-12-24 04:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089735', 'tblTempUsageDetail_20' ) start [2024-12-24 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089735', 'tblTempUsageDetail_20' ) end [2024-12-24 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089735', 'tblTempVendorCDR_20' ) start [2024-12-24 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089735', 'tblTempVendorCDR_20' ) end [2024-12-24 04:29:16] Production.INFO: ProcessCDR(1,14089735,1,1,2) [2024-12-24 04:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089735', 'tblTempUsageDetail_20' ) start [2024-12-24 04:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089735', 'tblTempUsageDetail_20' ) end [2024-12-24 04:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:29:19] Production.INFO: ==8536== Releasing lock... [2024-12-24 04:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:29:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:30:06 [end_date_ymd] => 2024-12-24 04:30:06 [RateCDR] => 1 ) [2024-12-24 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:30:06' and `end` < '2024-12-24 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:30:19] Production.INFO: count ==95 [2024-12-24 04:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:30:06 - End Time 2024-12-24 04:30:06 [2024-12-24 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089742', 'tblTempUsageDetail_20' ) start [2024-12-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089742', 'tblTempUsageDetail_20' ) end [2024-12-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089742', 'tblTempVendorCDR_20' ) start [2024-12-24 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089742', 'tblTempVendorCDR_20' ) end [2024-12-24 04:30:19] Production.INFO: ProcessCDR(1,14089742,1,1,2) [2024-12-24 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089742', 'tblTempUsageDetail_20' ) start [2024-12-24 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089742', 'tblTempUsageDetail_20' ) end [2024-12-24 04:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:30:22] Production.INFO: ==8621== Releasing lock... [2024-12-24 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:30:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:31:05 [end_date_ymd] => 2024-12-24 04:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:31:17] Production.INFO: count ==90 [2024-12-24 04:31:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:31:05 - End Time 2024-12-24 04:31:05 [2024-12-24 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089747', 'tblTempUsageDetail_20' ) start [2024-12-24 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089747', 'tblTempUsageDetail_20' ) end [2024-12-24 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089747', 'tblTempVendorCDR_20' ) start [2024-12-24 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089747', 'tblTempVendorCDR_20' ) end [2024-12-24 04:31:17] Production.INFO: ProcessCDR(1,14089747,1,1,2) [2024-12-24 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089747', 'tblTempUsageDetail_20' ) start [2024-12-24 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089747', 'tblTempUsageDetail_20' ) end [2024-12-24 04:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:31:20] Production.INFO: ==8719== Releasing lock... [2024-12-24 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:31:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:32:05 [end_date_ymd] => 2024-12-24 04:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:32:17] Production.INFO: count ==90 [2024-12-24 04:32:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:32:05 - End Time 2024-12-24 04:32:05 [2024-12-24 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089752', 'tblTempUsageDetail_20' ) start [2024-12-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089752', 'tblTempUsageDetail_20' ) end [2024-12-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089752', 'tblTempVendorCDR_20' ) start [2024-12-24 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089752', 'tblTempVendorCDR_20' ) end [2024-12-24 04:32:17] Production.INFO: ProcessCDR(1,14089752,1,1,2) [2024-12-24 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089752', 'tblTempUsageDetail_20' ) start [2024-12-24 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089752', 'tblTempUsageDetail_20' ) end [2024-12-24 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:32:20] Production.INFO: ==8794== Releasing lock... [2024-12-24 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:32:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:33:05 [end_date_ymd] => 2024-12-24 04:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:33:18] Production.INFO: count ==90 [2024-12-24 04:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:33:05 - End Time 2024-12-24 04:33:05 [2024-12-24 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089757', 'tblTempUsageDetail_20' ) start [2024-12-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089757', 'tblTempUsageDetail_20' ) end [2024-12-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089757', 'tblTempVendorCDR_20' ) start [2024-12-24 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089757', 'tblTempVendorCDR_20' ) end [2024-12-24 04:33:18] Production.INFO: ProcessCDR(1,14089757,1,1,2) [2024-12-24 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089757', 'tblTempUsageDetail_20' ) start [2024-12-24 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089757', 'tblTempUsageDetail_20' ) end [2024-12-24 04:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:33:21] Production.INFO: ==8877== Releasing lock... [2024-12-24 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:34:04 [end_date_ymd] => 2024-12-24 04:34:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:34:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:34:16] Production.INFO: count ==90 [2024-12-24 04:34:16] Production.ERROR: pbx CDR StartTime 2024-12-24 01:34:04 - End Time 2024-12-24 04:34:04 [2024-12-24 04:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089762', 'tblTempUsageDetail_20' ) start [2024-12-24 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089762', 'tblTempUsageDetail_20' ) end [2024-12-24 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089762', 'tblTempVendorCDR_20' ) start [2024-12-24 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089762', 'tblTempVendorCDR_20' ) end [2024-12-24 04:34:16] Production.INFO: ProcessCDR(1,14089762,1,1,2) [2024-12-24 04:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089762', 'tblTempUsageDetail_20' ) start [2024-12-24 04:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089762', 'tblTempUsageDetail_20' ) end [2024-12-24 04:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:34:19] Production.INFO: ==8960== Releasing lock... [2024-12-24 04:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:34:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:35:04 [end_date_ymd] => 2024-12-24 04:35:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:35:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:35:16] Production.INFO: count ==90 [2024-12-24 04:35:16] Production.ERROR: pbx CDR StartTime 2024-12-24 01:35:04 - End Time 2024-12-24 04:35:04 [2024-12-24 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089767', 'tblTempUsageDetail_20' ) start [2024-12-24 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089767', 'tblTempUsageDetail_20' ) end [2024-12-24 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089767', 'tblTempVendorCDR_20' ) start [2024-12-24 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089767', 'tblTempVendorCDR_20' ) end [2024-12-24 04:35:16] Production.INFO: ProcessCDR(1,14089767,1,1,2) [2024-12-24 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089767', 'tblTempUsageDetail_20' ) start [2024-12-24 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089767', 'tblTempUsageDetail_20' ) end [2024-12-24 04:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:35:19] Production.INFO: ==9033== Releasing lock... [2024-12-24 04:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:35:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:36:05 [end_date_ymd] => 2024-12-24 04:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:36:17] Production.INFO: count ==90 [2024-12-24 04:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:36:05 - End Time 2024-12-24 04:36:05 [2024-12-24 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089772', 'tblTempUsageDetail_20' ) start [2024-12-24 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089772', 'tblTempUsageDetail_20' ) end [2024-12-24 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089772', 'tblTempVendorCDR_20' ) start [2024-12-24 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089772', 'tblTempVendorCDR_20' ) end [2024-12-24 04:36:18] Production.INFO: ProcessCDR(1,14089772,1,1,2) [2024-12-24 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089772', 'tblTempUsageDetail_20' ) start [2024-12-24 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089772', 'tblTempUsageDetail_20' ) end [2024-12-24 04:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:36:20] Production.INFO: ==9112== Releasing lock... [2024-12-24 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:36:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:37:05 [end_date_ymd] => 2024-12-24 04:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:37:18] Production.INFO: count ==90 [2024-12-24 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:37:05 - End Time 2024-12-24 04:37:05 [2024-12-24 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089777', 'tblTempUsageDetail_20' ) start [2024-12-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089777', 'tblTempUsageDetail_20' ) end [2024-12-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089777', 'tblTempVendorCDR_20' ) start [2024-12-24 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089777', 'tblTempVendorCDR_20' ) end [2024-12-24 04:37:18] Production.INFO: ProcessCDR(1,14089777,1,1,2) [2024-12-24 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089777', 'tblTempUsageDetail_20' ) start [2024-12-24 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089777', 'tblTempUsageDetail_20' ) end [2024-12-24 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:37:21] Production.INFO: ==9189== Releasing lock... [2024-12-24 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:38:05 [end_date_ymd] => 2024-12-24 04:38:05 [RateCDR] => 1 ) [2024-12-24 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:38:05' and `end` < '2024-12-24 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:38:18] Production.INFO: count ==90 [2024-12-24 04:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:38:05 - End Time 2024-12-24 04:38:05 [2024-12-24 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089782', 'tblTempUsageDetail_20' ) start [2024-12-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089782', 'tblTempUsageDetail_20' ) end [2024-12-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089782', 'tblTempVendorCDR_20' ) start [2024-12-24 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089782', 'tblTempVendorCDR_20' ) end [2024-12-24 04:38:18] Production.INFO: ProcessCDR(1,14089782,1,1,2) [2024-12-24 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089782', 'tblTempUsageDetail_20' ) start [2024-12-24 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089782', 'tblTempUsageDetail_20' ) end [2024-12-24 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:38:21] Production.INFO: ==9271== Releasing lock... [2024-12-24 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:39:04 [end_date_ymd] => 2024-12-24 04:39:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:39:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:39:17] Production.INFO: count ==90 [2024-12-24 04:39:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:39:04 - End Time 2024-12-24 04:39:04 [2024-12-24 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089787', 'tblTempUsageDetail_20' ) start [2024-12-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089787', 'tblTempUsageDetail_20' ) end [2024-12-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089787', 'tblTempVendorCDR_20' ) start [2024-12-24 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089787', 'tblTempVendorCDR_20' ) end [2024-12-24 04:39:17] Production.INFO: ProcessCDR(1,14089787,1,1,2) [2024-12-24 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089787', 'tblTempUsageDetail_20' ) start [2024-12-24 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089787', 'tblTempUsageDetail_20' ) end [2024-12-24 04:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:39:20] Production.INFO: ==9349== Releasing lock... [2024-12-24 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:39:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:40:05 [end_date_ymd] => 2024-12-24 04:40:05 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:40:05' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:40:17] Production.INFO: count ==81 [2024-12-24 04:40:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:40:05 - End Time 2024-12-24 04:40:05 [2024-12-24 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089793', 'tblTempUsageDetail_20' ) start [2024-12-24 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089793', 'tblTempUsageDetail_20' ) end [2024-12-24 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089793', 'tblTempVendorCDR_20' ) start [2024-12-24 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089793', 'tblTempVendorCDR_20' ) end [2024-12-24 04:40:17] Production.INFO: ProcessCDR(1,14089793,1,1,2) [2024-12-24 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089793', 'tblTempUsageDetail_20' ) start [2024-12-24 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089793', 'tblTempUsageDetail_20' ) end [2024-12-24 04:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:40:20] Production.INFO: ==9423== Releasing lock... [2024-12-24 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:40:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:41:04 [end_date_ymd] => 2024-12-24 04:41:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:41:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:41:17] Production.INFO: count ==73 [2024-12-24 04:41:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:41:04 - End Time 2024-12-24 04:41:04 [2024-12-24 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089798', 'tblTempUsageDetail_20' ) start [2024-12-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089798', 'tblTempUsageDetail_20' ) end [2024-12-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089798', 'tblTempVendorCDR_20' ) start [2024-12-24 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089798', 'tblTempVendorCDR_20' ) end [2024-12-24 04:41:17] Production.INFO: ProcessCDR(1,14089798,1,1,2) [2024-12-24 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089798', 'tblTempUsageDetail_20' ) start [2024-12-24 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089798', 'tblTempUsageDetail_20' ) end [2024-12-24 04:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:41:20] Production.INFO: ==9501== Releasing lock... [2024-12-24 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:41:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:42:04 [end_date_ymd] => 2024-12-24 04:42:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:42:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:42:17] Production.INFO: count ==73 [2024-12-24 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:42:04 - End Time 2024-12-24 04:42:04 [2024-12-24 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089803', 'tblTempUsageDetail_20' ) start [2024-12-24 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089803', 'tblTempUsageDetail_20' ) end [2024-12-24 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089803', 'tblTempVendorCDR_20' ) start [2024-12-24 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089803', 'tblTempVendorCDR_20' ) end [2024-12-24 04:42:17] Production.INFO: ProcessCDR(1,14089803,1,1,2) [2024-12-24 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089803', 'tblTempUsageDetail_20' ) start [2024-12-24 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089803', 'tblTempUsageDetail_20' ) end [2024-12-24 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:42:20] Production.INFO: ==9613== Releasing lock... [2024-12-24 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:43:05 [end_date_ymd] => 2024-12-24 04:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:43:17] Production.INFO: count ==73 [2024-12-24 04:43:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:43:05 - End Time 2024-12-24 04:43:05 [2024-12-24 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089808', 'tblTempUsageDetail_20' ) start [2024-12-24 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089808', 'tblTempUsageDetail_20' ) end [2024-12-24 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089808', 'tblTempVendorCDR_20' ) start [2024-12-24 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089808', 'tblTempVendorCDR_20' ) end [2024-12-24 04:43:17] Production.INFO: ProcessCDR(1,14089808,1,1,2) [2024-12-24 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089808', 'tblTempUsageDetail_20' ) start [2024-12-24 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089808', 'tblTempUsageDetail_20' ) end [2024-12-24 04:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:43:20] Production.INFO: ==9692== Releasing lock... [2024-12-24 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:43:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:44:04 [end_date_ymd] => 2024-12-24 04:44:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:44:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:44:16] Production.INFO: count ==73 [2024-12-24 04:44:16] Production.ERROR: pbx CDR StartTime 2024-12-24 01:44:04 - End Time 2024-12-24 04:44:04 [2024-12-24 04:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089813', 'tblTempUsageDetail_20' ) start [2024-12-24 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089813', 'tblTempUsageDetail_20' ) end [2024-12-24 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089813', 'tblTempVendorCDR_20' ) start [2024-12-24 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089813', 'tblTempVendorCDR_20' ) end [2024-12-24 04:44:16] Production.INFO: ProcessCDR(1,14089813,1,1,2) [2024-12-24 04:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089813', 'tblTempUsageDetail_20' ) start [2024-12-24 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089813', 'tblTempUsageDetail_20' ) end [2024-12-24 04:44:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:44:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:44:19] Production.INFO: ==9766== Releasing lock... [2024-12-24 04:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:44:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:45:05 [end_date_ymd] => 2024-12-24 04:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:45:17] Production.INFO: count ==73 [2024-12-24 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:45:05 - End Time 2024-12-24 04:45:05 [2024-12-24 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089818', 'tblTempUsageDetail_20' ) start [2024-12-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089818', 'tblTempUsageDetail_20' ) end [2024-12-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089818', 'tblTempVendorCDR_20' ) start [2024-12-24 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089818', 'tblTempVendorCDR_20' ) end [2024-12-24 04:45:17] Production.INFO: ProcessCDR(1,14089818,1,1,2) [2024-12-24 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089818', 'tblTempUsageDetail_20' ) start [2024-12-24 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089818', 'tblTempUsageDetail_20' ) end [2024-12-24 04:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:45:21] Production.INFO: ==9840== Releasing lock... [2024-12-24 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:46:05 [end_date_ymd] => 2024-12-24 04:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:46:19] Production.INFO: count ==73 [2024-12-24 04:46:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:46:05 - End Time 2024-12-24 04:46:05 [2024-12-24 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089823', 'tblTempUsageDetail_20' ) start [2024-12-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089823', 'tblTempUsageDetail_20' ) end [2024-12-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089823', 'tblTempVendorCDR_20' ) start [2024-12-24 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089823', 'tblTempVendorCDR_20' ) end [2024-12-24 04:46:19] Production.INFO: ProcessCDR(1,14089823,1,1,2) [2024-12-24 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089823', 'tblTempUsageDetail_20' ) start [2024-12-24 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089823', 'tblTempUsageDetail_20' ) end [2024-12-24 04:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:46:22] Production.INFO: ==9915== Releasing lock... [2024-12-24 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:46:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:47:05 [end_date_ymd] => 2024-12-24 04:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:47:18] Production.INFO: count ==73 [2024-12-24 04:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:47:05 - End Time 2024-12-24 04:47:05 [2024-12-24 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089828', 'tblTempUsageDetail_20' ) start [2024-12-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089828', 'tblTempUsageDetail_20' ) end [2024-12-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089828', 'tblTempVendorCDR_20' ) start [2024-12-24 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089828', 'tblTempVendorCDR_20' ) end [2024-12-24 04:47:18] Production.INFO: ProcessCDR(1,14089828,1,1,2) [2024-12-24 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089828', 'tblTempUsageDetail_20' ) start [2024-12-24 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089828', 'tblTempUsageDetail_20' ) end [2024-12-24 04:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:47:21] Production.INFO: ==9985== Releasing lock... [2024-12-24 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:47:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:48:04 [end_date_ymd] => 2024-12-24 04:48:04 [RateCDR] => 1 ) [2024-12-24 04:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:48:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:48:18] Production.INFO: count ==73 [2024-12-24 04:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:48:04 - End Time 2024-12-24 04:48:04 [2024-12-24 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089833', 'tblTempUsageDetail_20' ) start [2024-12-24 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089833', 'tblTempUsageDetail_20' ) end [2024-12-24 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089833', 'tblTempVendorCDR_20' ) start [2024-12-24 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089833', 'tblTempVendorCDR_20' ) end [2024-12-24 04:48:18] Production.INFO: ProcessCDR(1,14089833,1,1,2) [2024-12-24 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089833', 'tblTempUsageDetail_20' ) start [2024-12-24 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089833', 'tblTempUsageDetail_20' ) end [2024-12-24 04:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:48:21] Production.INFO: ==10061== Releasing lock... [2024-12-24 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:48:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:49:04 [end_date_ymd] => 2024-12-24 04:49:04 [RateCDR] => 1 ) [2024-12-24 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:49:04' and `end` < '2024-12-24 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:49:18] Production.INFO: count ==73 [2024-12-24 04:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:49:04 - End Time 2024-12-24 04:49:04 [2024-12-24 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089838', 'tblTempUsageDetail_20' ) start [2024-12-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089838', 'tblTempUsageDetail_20' ) end [2024-12-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089838', 'tblTempVendorCDR_20' ) start [2024-12-24 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089838', 'tblTempVendorCDR_20' ) end [2024-12-24 04:49:18] Production.INFO: ProcessCDR(1,14089838,1,1,2) [2024-12-24 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089838', 'tblTempUsageDetail_20' ) start [2024-12-24 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089838', 'tblTempUsageDetail_20' ) end [2024-12-24 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:49:22] Production.INFO: ==10139== Releasing lock... [2024-12-24 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:49:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:50:05 [end_date_ymd] => 2024-12-24 04:50:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:50:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:50:19] Production.INFO: count ==67 [2024-12-24 04:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:50:05 - End Time 2024-12-24 04:50:05 [2024-12-24 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089844', 'tblTempUsageDetail_20' ) start [2024-12-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089844', 'tblTempUsageDetail_20' ) end [2024-12-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089844', 'tblTempVendorCDR_20' ) start [2024-12-24 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089844', 'tblTempVendorCDR_20' ) end [2024-12-24 04:50:19] Production.INFO: ProcessCDR(1,14089844,1,1,2) [2024-12-24 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089844', 'tblTempUsageDetail_20' ) start [2024-12-24 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089844', 'tblTempUsageDetail_20' ) end [2024-12-24 04:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:50:22] Production.INFO: ==10213== Releasing lock... [2024-12-24 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:50:22] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:51:04 [end_date_ymd] => 2024-12-24 04:51:04 [RateCDR] => 1 ) [2024-12-24 04:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:51:04' and `end` < '2024-12-24 04:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:51:18] Production.INFO: count ==54 [2024-12-24 04:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:51:04 - End Time 2024-12-24 04:51:04 [2024-12-24 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089849', 'tblTempUsageDetail_20' ) start [2024-12-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089849', 'tblTempUsageDetail_20' ) end [2024-12-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089849', 'tblTempVendorCDR_20' ) start [2024-12-24 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089849', 'tblTempVendorCDR_20' ) end [2024-12-24 04:51:18] Production.INFO: ProcessCDR(1,14089849,1,1,2) [2024-12-24 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089849', 'tblTempUsageDetail_20' ) start [2024-12-24 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089849', 'tblTempUsageDetail_20' ) end [2024-12-24 04:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:51:21] Production.INFO: ==10293== Releasing lock... [2024-12-24 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:51:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:52:05 [end_date_ymd] => 2024-12-24 04:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:52:19] Production.INFO: count ==54 [2024-12-24 04:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:52:05 - End Time 2024-12-24 04:52:05 [2024-12-24 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089854', 'tblTempUsageDetail_20' ) start [2024-12-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089854', 'tblTempUsageDetail_20' ) end [2024-12-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089854', 'tblTempVendorCDR_20' ) start [2024-12-24 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089854', 'tblTempVendorCDR_20' ) end [2024-12-24 04:52:19] Production.INFO: ProcessCDR(1,14089854,1,1,2) [2024-12-24 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089854', 'tblTempUsageDetail_20' ) start [2024-12-24 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089854', 'tblTempUsageDetail_20' ) end [2024-12-24 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:52:22] Production.INFO: ==10369== Releasing lock... [2024-12-24 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:52:22] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:53:04 [end_date_ymd] => 2024-12-24 04:53:04 [RateCDR] => 1 ) [2024-12-24 04: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` >= '2024-12-24 01:53:04' and `end` < '2024-12-24 04: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 ,'') [2024-12-24 04:53:17] Production.INFO: count ==54 [2024-12-24 04:53:17] Production.ERROR: pbx CDR StartTime 2024-12-24 01:53:04 - End Time 2024-12-24 04:53:04 [2024-12-24 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089859', 'tblTempUsageDetail_20' ) start [2024-12-24 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089859', 'tblTempUsageDetail_20' ) end [2024-12-24 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089859', 'tblTempVendorCDR_20' ) start [2024-12-24 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089859', 'tblTempVendorCDR_20' ) end [2024-12-24 04:53:17] Production.INFO: ProcessCDR(1,14089859,1,1,2) [2024-12-24 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089859', 'tblTempUsageDetail_20' ) start [2024-12-24 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089859', 'tblTempUsageDetail_20' ) end [2024-12-24 04:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:53:20] Production.INFO: ==10446== Releasing lock... [2024-12-24 04:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:54:05 [end_date_ymd] => 2024-12-24 04:54:05 [RateCDR] => 1 ) [2024-12-24 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:54:05' and `end` < '2024-12-24 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:54:18] Production.INFO: count ==54 [2024-12-24 04:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:54:05 - End Time 2024-12-24 04:54:05 [2024-12-24 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089864', 'tblTempUsageDetail_20' ) start [2024-12-24 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089864', 'tblTempUsageDetail_20' ) end [2024-12-24 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089864', 'tblTempVendorCDR_20' ) start [2024-12-24 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089864', 'tblTempVendorCDR_20' ) end [2024-12-24 04:54:18] Production.INFO: ProcessCDR(1,14089864,1,1,2) [2024-12-24 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089864', 'tblTempUsageDetail_20' ) start [2024-12-24 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089864', 'tblTempUsageDetail_20' ) end [2024-12-24 04:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:54:21] Production.INFO: ==10523== Releasing lock... [2024-12-24 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:54:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:55:04 [end_date_ymd] => 2024-12-24 04:55:04 [RateCDR] => 1 ) [2024-12-24 04:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:55:04' and `end` < '2024-12-24 04:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:55:19] Production.INFO: count ==53 [2024-12-24 04:55:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:55:04 - End Time 2024-12-24 04:55:04 [2024-12-24 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089869', 'tblTempUsageDetail_20' ) start [2024-12-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089869', 'tblTempUsageDetail_20' ) end [2024-12-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089869', 'tblTempVendorCDR_20' ) start [2024-12-24 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089869', 'tblTempVendorCDR_20' ) end [2024-12-24 04:55:19] Production.INFO: ProcessCDR(1,14089869,1,1,2) [2024-12-24 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089869', 'tblTempUsageDetail_20' ) start [2024-12-24 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089869', 'tblTempUsageDetail_20' ) end [2024-12-24 04:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:55:22] Production.INFO: ==10617== Releasing lock... [2024-12-24 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:55:22] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:56:05 [end_date_ymd] => 2024-12-24 04:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:56:19] Production.INFO: count ==51 [2024-12-24 04:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 01:56:05 - End Time 2024-12-24 04:56:05 [2024-12-24 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089874', 'tblTempUsageDetail_20' ) start [2024-12-24 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089874', 'tblTempUsageDetail_20' ) end [2024-12-24 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089874', 'tblTempVendorCDR_20' ) start [2024-12-24 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089874', 'tblTempVendorCDR_20' ) end [2024-12-24 04:56:19] Production.INFO: ProcessCDR(1,14089874,1,1,2) [2024-12-24 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089874', 'tblTempUsageDetail_20' ) start [2024-12-24 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089874', 'tblTempUsageDetail_20' ) end [2024-12-24 04:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:56:22] Production.INFO: ==10697== Releasing lock... [2024-12-24 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:56:22] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:57:04 [end_date_ymd] => 2024-12-24 04:57:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:57:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:57:18] Production.INFO: count ==48 [2024-12-24 04:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:57:04 - End Time 2024-12-24 04:57:04 [2024-12-24 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089879', 'tblTempUsageDetail_20' ) start [2024-12-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089879', 'tblTempUsageDetail_20' ) end [2024-12-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089879', 'tblTempVendorCDR_20' ) start [2024-12-24 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089879', 'tblTempVendorCDR_20' ) end [2024-12-24 04:57:18] Production.INFO: ProcessCDR(1,14089879,1,1,2) [2024-12-24 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089879', 'tblTempUsageDetail_20' ) start [2024-12-24 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089879', 'tblTempUsageDetail_20' ) end [2024-12-24 04:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:57:21] Production.INFO: ==10810== Releasing lock... [2024-12-24 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:57:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:58:05 [end_date_ymd] => 2024-12-24 04:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 01:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 04:58:20] Production.INFO: count ==48 [2024-12-24 04:58:20] Production.ERROR: pbx CDR StartTime 2024-12-24 01:58:05 - End Time 2024-12-24 04:58:05 [2024-12-24 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089884', 'tblTempUsageDetail_20' ) start [2024-12-24 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089884', 'tblTempUsageDetail_20' ) end [2024-12-24 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089884', 'tblTempVendorCDR_20' ) start [2024-12-24 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089884', 'tblTempVendorCDR_20' ) end [2024-12-24 04:58:20] Production.INFO: ProcessCDR(1,14089884,1,1,2) [2024-12-24 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089884', 'tblTempUsageDetail_20' ) start [2024-12-24 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089884', 'tblTempUsageDetail_20' ) end [2024-12-24 04:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:58:23] Production.INFO: ==10884== Releasing lock... [2024-12-24 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:58:23] Production.INFO: 28 MB #Memory Used# [2024-12-24 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 01:59:05 [end_date_ymd] => 2024-12-24 04:59:05 [RateCDR] => 1 ) [2024-12-24 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 01:59:05' and `end` < '2024-12-24 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 04:59:18] Production.INFO: count ==47 [2024-12-24 04:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 01:59:05 - End Time 2024-12-24 04:59:05 [2024-12-24 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089889', 'tblTempUsageDetail_20' ) start [2024-12-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089889', 'tblTempUsageDetail_20' ) end [2024-12-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089889', 'tblTempVendorCDR_20' ) start [2024-12-24 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089889', 'tblTempVendorCDR_20' ) end [2024-12-24 04:59:18] Production.INFO: ProcessCDR(1,14089889,1,1,2) [2024-12-24 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089889', 'tblTempUsageDetail_20' ) start [2024-12-24 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089889', 'tblTempUsageDetail_20' ) end [2024-12-24 04:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 04:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 04:59:21] Production.INFO: ==10957== Releasing lock... [2024-12-24 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 04:59:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:00:05 [end_date_ymd] => 2024-12-24 05:00:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:00:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:00:20] Production.INFO: count ==40 [2024-12-24 05:00:20] Production.ERROR: pbx CDR StartTime 2024-12-24 02:00:05 - End Time 2024-12-24 05:00:05 [2024-12-24 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089895', 'tblTempUsageDetail_20' ) start [2024-12-24 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089895', 'tblTempUsageDetail_20' ) end [2024-12-24 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089895', 'tblTempVendorCDR_20' ) start [2024-12-24 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089895', 'tblTempVendorCDR_20' ) end [2024-12-24 05:00:20] Production.INFO: ProcessCDR(1,14089895,1,1,2) [2024-12-24 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089895', 'tblTempUsageDetail_20' ) start [2024-12-24 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089895', 'tblTempUsageDetail_20' ) end [2024-12-24 05:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:00:23] Production.INFO: ==11036== Releasing lock... [2024-12-24 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:00:23] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:01:05 [end_date_ymd] => 2024-12-24 05:01:05 [RateCDR] => 1 ) [2024-12-24 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:01:05' and `end` < '2024-12-24 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:01:21] Production.INFO: count ==34 [2024-12-24 05:01:21] Production.ERROR: pbx CDR StartTime 2024-12-24 02:01:05 - End Time 2024-12-24 05:01:05 [2024-12-24 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089900', 'tblTempUsageDetail_20' ) start [2024-12-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089900', 'tblTempUsageDetail_20' ) end [2024-12-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089900', 'tblTempVendorCDR_20' ) start [2024-12-24 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089900', 'tblTempVendorCDR_20' ) end [2024-12-24 05:01:21] Production.INFO: ProcessCDR(1,14089900,1,1,2) [2024-12-24 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089900', 'tblTempUsageDetail_20' ) start [2024-12-24 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089900', 'tblTempUsageDetail_20' ) end [2024-12-24 05:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:01:24] Production.INFO: ==11122== Releasing lock... [2024-12-24 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:01:24] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:02:04 [end_date_ymd] => 2024-12-24 05:02:04 [RateCDR] => 1 ) [2024-12-24 05:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:02:04' and `end` < '2024-12-24 05:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:02:18] Production.INFO: count ==34 [2024-12-24 05:02:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:02:04 - End Time 2024-12-24 05:02:04 [2024-12-24 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089905', 'tblTempUsageDetail_20' ) start [2024-12-24 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089905', 'tblTempUsageDetail_20' ) end [2024-12-24 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089905', 'tblTempVendorCDR_20' ) start [2024-12-24 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089905', 'tblTempVendorCDR_20' ) end [2024-12-24 05:02:18] Production.INFO: ProcessCDR(1,14089905,1,1,2) [2024-12-24 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089905', 'tblTempUsageDetail_20' ) start [2024-12-24 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089905', 'tblTempUsageDetail_20' ) end [2024-12-24 05:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:02:21] Production.INFO: ==11199== Releasing lock... [2024-12-24 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:02:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:03:05 [end_date_ymd] => 2024-12-24 05:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:03:17] Production.INFO: count ==34 [2024-12-24 05:03:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:03:05 - End Time 2024-12-24 05:03:05 [2024-12-24 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089910', 'tblTempUsageDetail_20' ) start [2024-12-24 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089910', 'tblTempUsageDetail_20' ) end [2024-12-24 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089910', 'tblTempVendorCDR_20' ) start [2024-12-24 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089910', 'tblTempVendorCDR_20' ) end [2024-12-24 05:03:17] Production.INFO: ProcessCDR(1,14089910,1,1,2) [2024-12-24 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089910', 'tblTempUsageDetail_20' ) start [2024-12-24 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089910', 'tblTempUsageDetail_20' ) end [2024-12-24 05:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:03:20] Production.INFO: ==11274== Releasing lock... [2024-12-24 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:03:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:04:04 [end_date_ymd] => 2024-12-24 05:04:04 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:04:04' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:04:17] Production.INFO: count ==34 [2024-12-24 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:04:04 - End Time 2024-12-24 05:04:04 [2024-12-24 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089915', 'tblTempUsageDetail_20' ) start [2024-12-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089915', 'tblTempUsageDetail_20' ) end [2024-12-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089915', 'tblTempVendorCDR_20' ) start [2024-12-24 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089915', 'tblTempVendorCDR_20' ) end [2024-12-24 05:04:17] Production.INFO: ProcessCDR(1,14089915,1,1,2) [2024-12-24 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089915', 'tblTempUsageDetail_20' ) start [2024-12-24 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089915', 'tblTempUsageDetail_20' ) end [2024-12-24 05:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:04:20] Production.INFO: ==11347== Releasing lock... [2024-12-24 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:04:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:05:05 [end_date_ymd] => 2024-12-24 05:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:05:17] Production.INFO: count ==34 [2024-12-24 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:05:05 - End Time 2024-12-24 05:05:05 [2024-12-24 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089920', 'tblTempUsageDetail_20' ) start [2024-12-24 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089920', 'tblTempUsageDetail_20' ) end [2024-12-24 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089920', 'tblTempVendorCDR_20' ) start [2024-12-24 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089920', 'tblTempVendorCDR_20' ) end [2024-12-24 05:05:17] Production.INFO: ProcessCDR(1,14089920,1,1,2) [2024-12-24 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089920', 'tblTempUsageDetail_20' ) start [2024-12-24 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089920', 'tblTempUsageDetail_20' ) end [2024-12-24 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:05:20] Production.INFO: ==11424== Releasing lock... [2024-12-24 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:06:05 [end_date_ymd] => 2024-12-24 05:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:06:19] Production.INFO: count ==34 [2024-12-24 05:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 02:06:05 - End Time 2024-12-24 05:06:05 [2024-12-24 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089925', 'tblTempUsageDetail_20' ) start [2024-12-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089925', 'tblTempUsageDetail_20' ) end [2024-12-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089925', 'tblTempVendorCDR_20' ) start [2024-12-24 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089925', 'tblTempVendorCDR_20' ) end [2024-12-24 05:06:19] Production.INFO: ProcessCDR(1,14089925,1,1,2) [2024-12-24 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089925', 'tblTempUsageDetail_20' ) start [2024-12-24 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089925', 'tblTempUsageDetail_20' ) end [2024-12-24 05:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:06:22] Production.INFO: ==11499== Releasing lock... [2024-12-24 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:06:22] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:07:05 [end_date_ymd] => 2024-12-24 05:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:07:17] Production.INFO: count ==34 [2024-12-24 05:07:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:07:05 - End Time 2024-12-24 05:07:05 [2024-12-24 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089930', 'tblTempUsageDetail_20' ) start [2024-12-24 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089930', 'tblTempUsageDetail_20' ) end [2024-12-24 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089930', 'tblTempVendorCDR_20' ) start [2024-12-24 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089930', 'tblTempVendorCDR_20' ) end [2024-12-24 05:07:17] Production.INFO: ProcessCDR(1,14089930,1,1,2) [2024-12-24 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089930', 'tblTempUsageDetail_20' ) start [2024-12-24 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089930', 'tblTempUsageDetail_20' ) end [2024-12-24 05:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:07:20] Production.INFO: ==11581== Releasing lock... [2024-12-24 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:07:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:08:05 [end_date_ymd] => 2024-12-24 05:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:08:18] Production.INFO: count ==34 [2024-12-24 05:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:08:05 - End Time 2024-12-24 05:08:05 [2024-12-24 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089935', 'tblTempUsageDetail_20' ) start [2024-12-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089935', 'tblTempUsageDetail_20' ) end [2024-12-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089935', 'tblTempVendorCDR_20' ) start [2024-12-24 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089935', 'tblTempVendorCDR_20' ) end [2024-12-24 05:08:18] Production.INFO: ProcessCDR(1,14089935,1,1,2) [2024-12-24 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089935', 'tblTempUsageDetail_20' ) start [2024-12-24 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089935', 'tblTempUsageDetail_20' ) end [2024-12-24 05:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:08:21] Production.INFO: ==11653== Releasing lock... [2024-12-24 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:09:04 [end_date_ymd] => 2024-12-24 05:09:04 [RateCDR] => 1 ) [2024-12-24 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:09:04' and `end` < '2024-12-24 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:09:16] Production.INFO: count ==34 [2024-12-24 05:09:16] Production.ERROR: pbx CDR StartTime 2024-12-24 02:09:04 - End Time 2024-12-24 05:09:04 [2024-12-24 05:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089940', 'tblTempUsageDetail_20' ) start [2024-12-24 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089940', 'tblTempUsageDetail_20' ) end [2024-12-24 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089940', 'tblTempVendorCDR_20' ) start [2024-12-24 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089940', 'tblTempVendorCDR_20' ) end [2024-12-24 05:09:16] Production.INFO: ProcessCDR(1,14089940,1,1,2) [2024-12-24 05:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089940', 'tblTempUsageDetail_20' ) start [2024-12-24 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089940', 'tblTempUsageDetail_20' ) end [2024-12-24 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:09:20] Production.INFO: ==11731== Releasing lock... [2024-12-24 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:10:06 [end_date_ymd] => 2024-12-24 05:10:06 [RateCDR] => 1 ) [2024-12-24 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:10:06' and `end` < '2024-12-24 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:10:18] Production.INFO: count ==34 [2024-12-24 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:10:06 - End Time 2024-12-24 05:10:06 [2024-12-24 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089946', 'tblTempUsageDetail_20' ) start [2024-12-24 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089946', 'tblTempUsageDetail_20' ) end [2024-12-24 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089946', 'tblTempVendorCDR_20' ) start [2024-12-24 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089946', 'tblTempVendorCDR_20' ) end [2024-12-24 05:10:18] Production.INFO: ProcessCDR(1,14089946,1,1,2) [2024-12-24 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089946', 'tblTempUsageDetail_20' ) start [2024-12-24 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089946', 'tblTempUsageDetail_20' ) end [2024-12-24 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:10:21] Production.INFO: ==11814== Releasing lock... [2024-12-24 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:11:05 [end_date_ymd] => 2024-12-24 05:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:11:17] Production.INFO: count ==34 [2024-12-24 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:11:05 - End Time 2024-12-24 05:11:05 [2024-12-24 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089951', 'tblTempUsageDetail_20' ) start [2024-12-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089951', 'tblTempUsageDetail_20' ) end [2024-12-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089951', 'tblTempVendorCDR_20' ) start [2024-12-24 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089951', 'tblTempVendorCDR_20' ) end [2024-12-24 05:11:17] Production.INFO: ProcessCDR(1,14089951,1,1,2) [2024-12-24 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089951', 'tblTempUsageDetail_20' ) start [2024-12-24 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089951', 'tblTempUsageDetail_20' ) end [2024-12-24 05:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:11:20] Production.INFO: ==11890== Releasing lock... [2024-12-24 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:11:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:12:05 [end_date_ymd] => 2024-12-24 05:12:05 [RateCDR] => 1 ) [2024-12-24 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:12:05' and `end` < '2024-12-24 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:12:17] Production.INFO: count ==34 [2024-12-24 05:12:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:12:05 - End Time 2024-12-24 05:12:05 [2024-12-24 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089956', 'tblTempUsageDetail_20' ) start [2024-12-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089956', 'tblTempUsageDetail_20' ) end [2024-12-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089956', 'tblTempVendorCDR_20' ) start [2024-12-24 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089956', 'tblTempVendorCDR_20' ) end [2024-12-24 05:12:17] Production.INFO: ProcessCDR(1,14089956,1,1,2) [2024-12-24 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089956', 'tblTempUsageDetail_20' ) start [2024-12-24 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089956', 'tblTempUsageDetail_20' ) end [2024-12-24 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:12:21] Production.INFO: ==11967== Releasing lock... [2024-12-24 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:12:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:13:05 [end_date_ymd] => 2024-12-24 05:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:13:18] Production.INFO: count ==34 [2024-12-24 05:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:13:05 - End Time 2024-12-24 05:13:05 [2024-12-24 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089961', 'tblTempUsageDetail_20' ) start [2024-12-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089961', 'tblTempUsageDetail_20' ) end [2024-12-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089961', 'tblTempVendorCDR_20' ) start [2024-12-24 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089961', 'tblTempVendorCDR_20' ) end [2024-12-24 05:13:18] Production.INFO: ProcessCDR(1,14089961,1,1,2) [2024-12-24 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089961', 'tblTempUsageDetail_20' ) start [2024-12-24 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089961', 'tblTempUsageDetail_20' ) end [2024-12-24 05:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:13:21] Production.INFO: ==12082== Releasing lock... [2024-12-24 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:13:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:14:05 [end_date_ymd] => 2024-12-24 05:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:14:18] Production.INFO: count ==33 [2024-12-24 05:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:14:05 - End Time 2024-12-24 05:14:05 [2024-12-24 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089966', 'tblTempUsageDetail_20' ) start [2024-12-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089966', 'tblTempUsageDetail_20' ) end [2024-12-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089966', 'tblTempVendorCDR_20' ) start [2024-12-24 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089966', 'tblTempVendorCDR_20' ) end [2024-12-24 05:14:18] Production.INFO: ProcessCDR(1,14089966,1,1,2) [2024-12-24 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089966', 'tblTempUsageDetail_20' ) start [2024-12-24 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089966', 'tblTempUsageDetail_20' ) end [2024-12-24 05:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:14:21] Production.INFO: ==12152== Releasing lock... [2024-12-24 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:14:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:15:05 [end_date_ymd] => 2024-12-24 05:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:15:17] Production.INFO: count ==33 [2024-12-24 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:15:05 - End Time 2024-12-24 05:15:05 [2024-12-24 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089971', 'tblTempUsageDetail_20' ) start [2024-12-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089971', 'tblTempUsageDetail_20' ) end [2024-12-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089971', 'tblTempVendorCDR_20' ) start [2024-12-24 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089971', 'tblTempVendorCDR_20' ) end [2024-12-24 05:15:17] Production.INFO: ProcessCDR(1,14089971,1,1,2) [2024-12-24 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089971', 'tblTempUsageDetail_20' ) start [2024-12-24 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089971', 'tblTempUsageDetail_20' ) end [2024-12-24 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:15:20] Production.INFO: ==12227== Releasing lock... [2024-12-24 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:16:05 [end_date_ymd] => 2024-12-24 05:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:16:17] Production.INFO: count ==33 [2024-12-24 05:16:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:16:05 - End Time 2024-12-24 05:16:05 [2024-12-24 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089976', 'tblTempUsageDetail_20' ) start [2024-12-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089976', 'tblTempUsageDetail_20' ) end [2024-12-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089976', 'tblTempVendorCDR_20' ) start [2024-12-24 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089976', 'tblTempVendorCDR_20' ) end [2024-12-24 05:16:17] Production.INFO: ProcessCDR(1,14089976,1,1,2) [2024-12-24 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089976', 'tblTempUsageDetail_20' ) start [2024-12-24 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089976', 'tblTempUsageDetail_20' ) end [2024-12-24 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:16:20] Production.INFO: ==12300== Releasing lock... [2024-12-24 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:16:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:17:05 [end_date_ymd] => 2024-12-24 05:17:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:17:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:17:17] Production.INFO: count ==33 [2024-12-24 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:17:05 - End Time 2024-12-24 05:17:05 [2024-12-24 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089981', 'tblTempUsageDetail_20' ) start [2024-12-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089981', 'tblTempUsageDetail_20' ) end [2024-12-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089981', 'tblTempVendorCDR_20' ) start [2024-12-24 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089981', 'tblTempVendorCDR_20' ) end [2024-12-24 05:17:17] Production.INFO: ProcessCDR(1,14089981,1,1,2) [2024-12-24 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089981', 'tblTempUsageDetail_20' ) start [2024-12-24 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089981', 'tblTempUsageDetail_20' ) end [2024-12-24 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:17:20] Production.INFO: ==12377== Releasing lock... [2024-12-24 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:18:05 [end_date_ymd] => 2024-12-24 05:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:18:17] Production.INFO: count ==33 [2024-12-24 05:18:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:18:05 - End Time 2024-12-24 05:18:05 [2024-12-24 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089986', 'tblTempUsageDetail_20' ) start [2024-12-24 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089986', 'tblTempUsageDetail_20' ) end [2024-12-24 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089986', 'tblTempVendorCDR_20' ) start [2024-12-24 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089986', 'tblTempVendorCDR_20' ) end [2024-12-24 05:18:17] Production.INFO: ProcessCDR(1,14089986,1,1,2) [2024-12-24 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089986', 'tblTempUsageDetail_20' ) start [2024-12-24 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089986', 'tblTempUsageDetail_20' ) end [2024-12-24 05:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:18:21] Production.INFO: ==12453== Releasing lock... [2024-12-24 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:18:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:19:04 [end_date_ymd] => 2024-12-24 05:19:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:19:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:19:17] Production.INFO: count ==33 [2024-12-24 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:19:04 - End Time 2024-12-24 05:19:04 [2024-12-24 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089991', 'tblTempUsageDetail_20' ) start [2024-12-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089991', 'tblTempUsageDetail_20' ) end [2024-12-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089991', 'tblTempVendorCDR_20' ) start [2024-12-24 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089991', 'tblTempVendorCDR_20' ) end [2024-12-24 05:19:17] Production.INFO: ProcessCDR(1,14089991,1,1,2) [2024-12-24 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089991', 'tblTempUsageDetail_20' ) start [2024-12-24 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089991', 'tblTempUsageDetail_20' ) end [2024-12-24 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:19:20] Production.INFO: ==12522== Releasing lock... [2024-12-24 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:19:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:20:06 [end_date_ymd] => 2024-12-24 05:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:20:18] Production.INFO: count ==31 [2024-12-24 05:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:20:06 - End Time 2024-12-24 05:20:06 [2024-12-24 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089997', 'tblTempUsageDetail_20' ) start [2024-12-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14089997', 'tblTempUsageDetail_20' ) end [2024-12-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089997', 'tblTempVendorCDR_20' ) start [2024-12-24 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14089997', 'tblTempVendorCDR_20' ) end [2024-12-24 05:20:18] Production.INFO: ProcessCDR(1,14089997,1,1,2) [2024-12-24 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14089997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14089997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14089997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14089997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089997', 'tblTempUsageDetail_20' ) start [2024-12-24 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14089997', 'tblTempUsageDetail_20' ) end [2024-12-24 05:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:20:21] Production.INFO: ==12606== Releasing lock... [2024-12-24 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:21:04 [end_date_ymd] => 2024-12-24 05:21:04 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:21:04' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:21:17] Production.INFO: count ==31 [2024-12-24 05:21:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:21:04 - End Time 2024-12-24 05:21:04 [2024-12-24 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090002', 'tblTempUsageDetail_20' ) start [2024-12-24 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090002', 'tblTempUsageDetail_20' ) end [2024-12-24 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090002', 'tblTempVendorCDR_20' ) start [2024-12-24 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090002', 'tblTempVendorCDR_20' ) end [2024-12-24 05:21:17] Production.INFO: ProcessCDR(1,14090002,1,1,2) [2024-12-24 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090002', 'tblTempUsageDetail_20' ) start [2024-12-24 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090002', 'tblTempUsageDetail_20' ) end [2024-12-24 05:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:21:20] Production.INFO: ==12684== Releasing lock... [2024-12-24 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:21:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:22:05 [end_date_ymd] => 2024-12-24 05:22:05 [RateCDR] => 1 ) [2024-12-24 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:22:05' and `end` < '2024-12-24 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:22:17] Production.INFO: count ==31 [2024-12-24 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:22:05 - End Time 2024-12-24 05:22:05 [2024-12-24 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090007', 'tblTempUsageDetail_20' ) start [2024-12-24 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090007', 'tblTempUsageDetail_20' ) end [2024-12-24 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090007', 'tblTempVendorCDR_20' ) start [2024-12-24 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090007', 'tblTempVendorCDR_20' ) end [2024-12-24 05:22:17] Production.INFO: ProcessCDR(1,14090007,1,1,2) [2024-12-24 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090007', 'tblTempUsageDetail_20' ) start [2024-12-24 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090007', 'tblTempUsageDetail_20' ) end [2024-12-24 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:22:20] Production.INFO: ==12767== Releasing lock... [2024-12-24 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:23:04 [end_date_ymd] => 2024-12-24 05:23:04 [RateCDR] => 1 ) [2024-12-24 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:23:04' and `end` < '2024-12-24 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:23:17] Production.INFO: count ==31 [2024-12-24 05:23:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:23:04 - End Time 2024-12-24 05:23:04 [2024-12-24 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090012', 'tblTempUsageDetail_20' ) start [2024-12-24 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090012', 'tblTempUsageDetail_20' ) end [2024-12-24 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090012', 'tblTempVendorCDR_20' ) start [2024-12-24 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090012', 'tblTempVendorCDR_20' ) end [2024-12-24 05:23:17] Production.INFO: ProcessCDR(1,14090012,1,1,2) [2024-12-24 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090012', 'tblTempUsageDetail_20' ) start [2024-12-24 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090012', 'tblTempUsageDetail_20' ) end [2024-12-24 05:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:23:20] Production.INFO: ==12843== Releasing lock... [2024-12-24 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:23:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:24:05 [end_date_ymd] => 2024-12-24 05:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:24:17] Production.INFO: count ==31 [2024-12-24 05:24:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:24:05 - End Time 2024-12-24 05:24:05 [2024-12-24 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090017', 'tblTempUsageDetail_20' ) start [2024-12-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090017', 'tblTempUsageDetail_20' ) end [2024-12-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090017', 'tblTempVendorCDR_20' ) start [2024-12-24 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090017', 'tblTempVendorCDR_20' ) end [2024-12-24 05:24:17] Production.INFO: ProcessCDR(1,14090017,1,1,2) [2024-12-24 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090017', 'tblTempUsageDetail_20' ) start [2024-12-24 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090017', 'tblTempUsageDetail_20' ) end [2024-12-24 05:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:24:21] Production.INFO: ==12919== Releasing lock... [2024-12-24 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:24:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:25:05 [end_date_ymd] => 2024-12-24 05:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:25:17] Production.INFO: count ==30 [2024-12-24 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:25:05 - End Time 2024-12-24 05:25:05 [2024-12-24 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090022', 'tblTempUsageDetail_20' ) start [2024-12-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090022', 'tblTempUsageDetail_20' ) end [2024-12-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090022', 'tblTempVendorCDR_20' ) start [2024-12-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090022', 'tblTempVendorCDR_20' ) end [2024-12-24 05:25:17] Production.INFO: ProcessCDR(1,14090022,1,1,2) [2024-12-24 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090022', 'tblTempUsageDetail_20' ) start [2024-12-24 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090022', 'tblTempUsageDetail_20' ) end [2024-12-24 05:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:25:21] Production.INFO: ==12998== Releasing lock... [2024-12-24 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:25:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:26:04 [end_date_ymd] => 2024-12-24 05:26:04 [RateCDR] => 1 ) [2024-12-24 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:26:04' and `end` < '2024-12-24 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:26:17] Production.INFO: count ==30 [2024-12-24 05:26:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:26:04 - End Time 2024-12-24 05:26:04 [2024-12-24 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090027', 'tblTempUsageDetail_20' ) start [2024-12-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090027', 'tblTempUsageDetail_20' ) end [2024-12-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090027', 'tblTempVendorCDR_20' ) start [2024-12-24 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090027', 'tblTempVendorCDR_20' ) end [2024-12-24 05:26:17] Production.INFO: ProcessCDR(1,14090027,1,1,2) [2024-12-24 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090027', 'tblTempUsageDetail_20' ) start [2024-12-24 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090027', 'tblTempUsageDetail_20' ) end [2024-12-24 05:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:26:20] Production.INFO: ==13079== Releasing lock... [2024-12-24 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:27:05 [end_date_ymd] => 2024-12-24 05:27:05 [RateCDR] => 1 ) [2024-12-24 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:27:05' and `end` < '2024-12-24 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:27:18] Production.INFO: count ==30 [2024-12-24 05:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:27:05 - End Time 2024-12-24 05:27:05 [2024-12-24 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090032', 'tblTempUsageDetail_20' ) start [2024-12-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090032', 'tblTempUsageDetail_20' ) end [2024-12-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090032', 'tblTempVendorCDR_20' ) start [2024-12-24 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090032', 'tblTempVendorCDR_20' ) end [2024-12-24 05:27:18] Production.INFO: ProcessCDR(1,14090032,1,1,2) [2024-12-24 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090032', 'tblTempUsageDetail_20' ) start [2024-12-24 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090032', 'tblTempUsageDetail_20' ) end [2024-12-24 05:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:27:21] Production.INFO: ==13159== Releasing lock... [2024-12-24 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:27:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:28:04 [end_date_ymd] => 2024-12-24 05:28:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:28:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:28:17] Production.INFO: count ==30 [2024-12-24 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:28:04 - End Time 2024-12-24 05:28:04 [2024-12-24 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090037', 'tblTempUsageDetail_20' ) start [2024-12-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090037', 'tblTempUsageDetail_20' ) end [2024-12-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090037', 'tblTempVendorCDR_20' ) start [2024-12-24 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090037', 'tblTempVendorCDR_20' ) end [2024-12-24 05:28:17] Production.INFO: ProcessCDR(1,14090037,1,1,2) [2024-12-24 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090037', 'tblTempUsageDetail_20' ) start [2024-12-24 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090037', 'tblTempUsageDetail_20' ) end [2024-12-24 05:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:28:20] Production.INFO: ==13234== Releasing lock... [2024-12-24 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:29:05 [end_date_ymd] => 2024-12-24 05:29:05 [RateCDR] => 1 ) [2024-12-24 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:29:05' and `end` < '2024-12-24 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:29:17] Production.INFO: count ==30 [2024-12-24 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:29:05 - End Time 2024-12-24 05:29:05 [2024-12-24 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090042', 'tblTempUsageDetail_20' ) start [2024-12-24 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090042', 'tblTempUsageDetail_20' ) end [2024-12-24 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090042', 'tblTempVendorCDR_20' ) start [2024-12-24 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090042', 'tblTempVendorCDR_20' ) end [2024-12-24 05:29:17] Production.INFO: ProcessCDR(1,14090042,1,1,2) [2024-12-24 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090042', 'tblTempUsageDetail_20' ) start [2024-12-24 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090042', 'tblTempUsageDetail_20' ) end [2024-12-24 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:29:20] Production.INFO: ==13350== Releasing lock... [2024-12-24 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:30:05 [end_date_ymd] => 2024-12-24 05:30:05 [RateCDR] => 1 ) [2024-12-24 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:30:05' and `end` < '2024-12-24 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:30:18] Production.INFO: count ==27 [2024-12-24 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:30:05 - End Time 2024-12-24 05:30:05 [2024-12-24 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090048', 'tblTempUsageDetail_20' ) start [2024-12-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090048', 'tblTempUsageDetail_20' ) end [2024-12-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090048', 'tblTempVendorCDR_20' ) start [2024-12-24 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090048', 'tblTempVendorCDR_20' ) end [2024-12-24 05:30:18] Production.INFO: ProcessCDR(1,14090048,1,1,2) [2024-12-24 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090048', 'tblTempUsageDetail_20' ) start [2024-12-24 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090048', 'tblTempUsageDetail_20' ) end [2024-12-24 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:30:21] Production.INFO: ==13433== Releasing lock... [2024-12-24 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:31:05 [end_date_ymd] => 2024-12-24 05:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:31:17] Production.INFO: count ==27 [2024-12-24 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:31:05 - End Time 2024-12-24 05:31:05 [2024-12-24 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090053', 'tblTempUsageDetail_20' ) start [2024-12-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090053', 'tblTempUsageDetail_20' ) end [2024-12-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090053', 'tblTempVendorCDR_20' ) start [2024-12-24 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090053', 'tblTempVendorCDR_20' ) end [2024-12-24 05:31:17] Production.INFO: ProcessCDR(1,14090053,1,1,2) [2024-12-24 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090053', 'tblTempUsageDetail_20' ) start [2024-12-24 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090053', 'tblTempUsageDetail_20' ) end [2024-12-24 05:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:31:21] Production.INFO: ==13512== Releasing lock... [2024-12-24 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:32:04 [end_date_ymd] => 2024-12-24 05:32:04 [RateCDR] => 1 ) [2024-12-24 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:32:04' and `end` < '2024-12-24 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:32:16] Production.INFO: count ==27 [2024-12-24 05:32:16] Production.ERROR: pbx CDR StartTime 2024-12-24 02:32:04 - End Time 2024-12-24 05:32:04 [2024-12-24 05:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090058', 'tblTempUsageDetail_20' ) start [2024-12-24 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090058', 'tblTempUsageDetail_20' ) end [2024-12-24 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090058', 'tblTempVendorCDR_20' ) start [2024-12-24 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090058', 'tblTempVendorCDR_20' ) end [2024-12-24 05:32:16] Production.INFO: ProcessCDR(1,14090058,1,1,2) [2024-12-24 05:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090058', 'tblTempUsageDetail_20' ) start [2024-12-24 05:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090058', 'tblTempUsageDetail_20' ) end [2024-12-24 05:32:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:32:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:32:19] Production.INFO: ==13590== Releasing lock... [2024-12-24 05:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:32:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:33:05 [end_date_ymd] => 2024-12-24 05:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:33:17] Production.INFO: count ==27 [2024-12-24 05:33:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:33:05 - End Time 2024-12-24 05:33:05 [2024-12-24 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090063', 'tblTempUsageDetail_20' ) start [2024-12-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090063', 'tblTempUsageDetail_20' ) end [2024-12-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090063', 'tblTempVendorCDR_20' ) start [2024-12-24 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090063', 'tblTempVendorCDR_20' ) end [2024-12-24 05:33:17] Production.INFO: ProcessCDR(1,14090063,1,1,2) [2024-12-24 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090063', 'tblTempUsageDetail_20' ) start [2024-12-24 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090063', 'tblTempUsageDetail_20' ) end [2024-12-24 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:33:20] Production.INFO: ==13668== Releasing lock... [2024-12-24 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:34:05 [end_date_ymd] => 2024-12-24 05:34:05 [RateCDR] => 1 ) [2024-12-24 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:34:05' and `end` < '2024-12-24 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:34:19] Production.INFO: count ==27 [2024-12-24 05:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 02:34:05 - End Time 2024-12-24 05:34:05 [2024-12-24 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090068', 'tblTempUsageDetail_20' ) start [2024-12-24 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090068', 'tblTempUsageDetail_20' ) end [2024-12-24 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090068', 'tblTempVendorCDR_20' ) start [2024-12-24 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090068', 'tblTempVendorCDR_20' ) end [2024-12-24 05:34:19] Production.INFO: ProcessCDR(1,14090068,1,1,2) [2024-12-24 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090068', 'tblTempUsageDetail_20' ) start [2024-12-24 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090068', 'tblTempUsageDetail_20' ) end [2024-12-24 05:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:34:22] Production.INFO: ==13742== Releasing lock... [2024-12-24 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:35:05 [end_date_ymd] => 2024-12-24 05:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:35:17] Production.INFO: count ==27 [2024-12-24 05:35:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:35:05 - End Time 2024-12-24 05:35:05 [2024-12-24 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090073', 'tblTempUsageDetail_20' ) start [2024-12-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090073', 'tblTempUsageDetail_20' ) end [2024-12-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090073', 'tblTempVendorCDR_20' ) start [2024-12-24 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090073', 'tblTempVendorCDR_20' ) end [2024-12-24 05:35:17] Production.INFO: ProcessCDR(1,14090073,1,1,2) [2024-12-24 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090073', 'tblTempUsageDetail_20' ) start [2024-12-24 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090073', 'tblTempUsageDetail_20' ) end [2024-12-24 05:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:35:21] Production.INFO: ==13817== Releasing lock... [2024-12-24 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:36:05 [end_date_ymd] => 2024-12-24 05:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:36:17] Production.INFO: count ==27 [2024-12-24 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:36:05 - End Time 2024-12-24 05:36:05 [2024-12-24 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090078', 'tblTempUsageDetail_20' ) start [2024-12-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090078', 'tblTempUsageDetail_20' ) end [2024-12-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090078', 'tblTempVendorCDR_20' ) start [2024-12-24 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090078', 'tblTempVendorCDR_20' ) end [2024-12-24 05:36:17] Production.INFO: ProcessCDR(1,14090078,1,1,2) [2024-12-24 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090078', 'tblTempUsageDetail_20' ) start [2024-12-24 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090078', 'tblTempUsageDetail_20' ) end [2024-12-24 05:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:36:21] Production.INFO: ==13898== Releasing lock... [2024-12-24 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:36:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:37:05 [end_date_ymd] => 2024-12-24 05:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:37:17] Production.INFO: count ==27 [2024-12-24 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:37:05 - End Time 2024-12-24 05:37:05 [2024-12-24 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090083', 'tblTempUsageDetail_20' ) start [2024-12-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090083', 'tblTempUsageDetail_20' ) end [2024-12-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090083', 'tblTempVendorCDR_20' ) start [2024-12-24 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090083', 'tblTempVendorCDR_20' ) end [2024-12-24 05:37:17] Production.INFO: ProcessCDR(1,14090083,1,1,2) [2024-12-24 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090083', 'tblTempUsageDetail_20' ) start [2024-12-24 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090083', 'tblTempUsageDetail_20' ) end [2024-12-24 05:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:37:21] Production.INFO: ==13978== Releasing lock... [2024-12-24 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:38:05 [end_date_ymd] => 2024-12-24 05:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:38:17] Production.INFO: count ==27 [2024-12-24 05:38:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:38:05 - End Time 2024-12-24 05:38:05 [2024-12-24 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090088', 'tblTempUsageDetail_20' ) start [2024-12-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090088', 'tblTempUsageDetail_20' ) end [2024-12-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090088', 'tblTempVendorCDR_20' ) start [2024-12-24 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090088', 'tblTempVendorCDR_20' ) end [2024-12-24 05:38:17] Production.INFO: ProcessCDR(1,14090088,1,1,2) [2024-12-24 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090088', 'tblTempUsageDetail_20' ) start [2024-12-24 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090088', 'tblTempUsageDetail_20' ) end [2024-12-24 05:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:38:20] Production.INFO: ==14057== Releasing lock... [2024-12-24 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:39:05 [end_date_ymd] => 2024-12-24 05:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:39:17] Production.INFO: count ==27 [2024-12-24 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:39:05 - End Time 2024-12-24 05:39:05 [2024-12-24 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090093', 'tblTempUsageDetail_20' ) start [2024-12-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090093', 'tblTempUsageDetail_20' ) end [2024-12-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090093', 'tblTempVendorCDR_20' ) start [2024-12-24 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090093', 'tblTempVendorCDR_20' ) end [2024-12-24 05:39:17] Production.INFO: ProcessCDR(1,14090093,1,1,2) [2024-12-24 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090093', 'tblTempUsageDetail_20' ) start [2024-12-24 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090093', 'tblTempUsageDetail_20' ) end [2024-12-24 05:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:39:20] Production.INFO: ==14132== Releasing lock... [2024-12-24 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:40:06 [end_date_ymd] => 2024-12-24 05:40:06 [RateCDR] => 1 ) [2024-12-24 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:40:06' and `end` < '2024-12-24 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:40:18] Production.INFO: count ==22 [2024-12-24 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:40:06 - End Time 2024-12-24 05:40:06 [2024-12-24 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090099', 'tblTempUsageDetail_20' ) start [2024-12-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090099', 'tblTempUsageDetail_20' ) end [2024-12-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090099', 'tblTempVendorCDR_20' ) start [2024-12-24 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090099', 'tblTempVendorCDR_20' ) end [2024-12-24 05:40:18] Production.INFO: ProcessCDR(1,14090099,1,1,2) [2024-12-24 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090099', 'tblTempUsageDetail_20' ) start [2024-12-24 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090099', 'tblTempUsageDetail_20' ) end [2024-12-24 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:40:21] Production.INFO: ==14210== Releasing lock... [2024-12-24 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:41:04 [end_date_ymd] => 2024-12-24 05:41:04 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:41:04' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:41:18] Production.INFO: count ==22 [2024-12-24 05:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:41:04 - End Time 2024-12-24 05:41:04 [2024-12-24 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090104', 'tblTempUsageDetail_20' ) start [2024-12-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090104', 'tblTempUsageDetail_20' ) end [2024-12-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090104', 'tblTempVendorCDR_20' ) start [2024-12-24 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090104', 'tblTempVendorCDR_20' ) end [2024-12-24 05:41:18] Production.INFO: ProcessCDR(1,14090104,1,1,2) [2024-12-24 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090104', 'tblTempUsageDetail_20' ) start [2024-12-24 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090104', 'tblTempUsageDetail_20' ) end [2024-12-24 05:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:41:21] Production.INFO: ==14288== Releasing lock... [2024-12-24 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:42:05 [end_date_ymd] => 2024-12-24 05:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:42:17] Production.INFO: count ==22 [2024-12-24 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:42:05 - End Time 2024-12-24 05:42:05 [2024-12-24 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090109', 'tblTempUsageDetail_20' ) start [2024-12-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090109', 'tblTempUsageDetail_20' ) end [2024-12-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090109', 'tblTempVendorCDR_20' ) start [2024-12-24 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090109', 'tblTempVendorCDR_20' ) end [2024-12-24 05:42:17] Production.INFO: ProcessCDR(1,14090109,1,1,2) [2024-12-24 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090109', 'tblTempUsageDetail_20' ) start [2024-12-24 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090109', 'tblTempUsageDetail_20' ) end [2024-12-24 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:42:20] Production.INFO: ==14365== Releasing lock... [2024-12-24 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:43:05 [end_date_ymd] => 2024-12-24 05:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:43:17] Production.INFO: count ==22 [2024-12-24 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:43:05 - End Time 2024-12-24 05:43:05 [2024-12-24 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090114', 'tblTempUsageDetail_20' ) start [2024-12-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090114', 'tblTempUsageDetail_20' ) end [2024-12-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090114', 'tblTempVendorCDR_20' ) start [2024-12-24 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090114', 'tblTempVendorCDR_20' ) end [2024-12-24 05:43:17] Production.INFO: ProcessCDR(1,14090114,1,1,2) [2024-12-24 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090114', 'tblTempUsageDetail_20' ) start [2024-12-24 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090114', 'tblTempUsageDetail_20' ) end [2024-12-24 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:43:21] Production.INFO: ==14444== Releasing lock... [2024-12-24 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:44:04 [end_date_ymd] => 2024-12-24 05:44:04 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:44:04' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:44:16] Production.INFO: count ==21 [2024-12-24 05:44:16] Production.ERROR: pbx CDR StartTime 2024-12-24 02:44:04 - End Time 2024-12-24 05:44:04 [2024-12-24 05:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090119', 'tblTempUsageDetail_20' ) start [2024-12-24 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090119', 'tblTempUsageDetail_20' ) end [2024-12-24 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090119', 'tblTempVendorCDR_20' ) start [2024-12-24 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090119', 'tblTempVendorCDR_20' ) end [2024-12-24 05:44:16] Production.INFO: ProcessCDR(1,14090119,1,1,2) [2024-12-24 05:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090119', 'tblTempUsageDetail_20' ) start [2024-12-24 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090119', 'tblTempUsageDetail_20' ) end [2024-12-24 05:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:44:21] Production.INFO: ==14518== Releasing lock... [2024-12-24 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:45:04 [end_date_ymd] => 2024-12-24 05:45:04 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:45:04' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:45:16] Production.INFO: count ==21 [2024-12-24 05:45:16] Production.ERROR: pbx CDR StartTime 2024-12-24 02:45:04 - End Time 2024-12-24 05:45:04 [2024-12-24 05:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090124', 'tblTempUsageDetail_20' ) start [2024-12-24 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090124', 'tblTempUsageDetail_20' ) end [2024-12-24 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090124', 'tblTempVendorCDR_20' ) start [2024-12-24 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090124', 'tblTempVendorCDR_20' ) end [2024-12-24 05:45:16] Production.INFO: ProcessCDR(1,14090124,1,1,2) [2024-12-24 05:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090124', 'tblTempUsageDetail_20' ) start [2024-12-24 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090124', 'tblTempUsageDetail_20' ) end [2024-12-24 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:45:20] Production.INFO: ==14636== Releasing lock... [2024-12-24 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:46:05 [end_date_ymd] => 2024-12-24 05:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:46:17] Production.INFO: count ==21 [2024-12-24 05:46:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:46:05 - End Time 2024-12-24 05:46:05 [2024-12-24 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090129', 'tblTempUsageDetail_20' ) start [2024-12-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090129', 'tblTempUsageDetail_20' ) end [2024-12-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090129', 'tblTempVendorCDR_20' ) start [2024-12-24 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090129', 'tblTempVendorCDR_20' ) end [2024-12-24 05:46:17] Production.INFO: ProcessCDR(1,14090129,1,1,2) [2024-12-24 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090129', 'tblTempUsageDetail_20' ) start [2024-12-24 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090129', 'tblTempUsageDetail_20' ) end [2024-12-24 05:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:46:21] Production.INFO: ==14713== Releasing lock... [2024-12-24 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:47:05 [end_date_ymd] => 2024-12-24 05:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:47:17] Production.INFO: count ==19 [2024-12-24 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:47:05 - End Time 2024-12-24 05:47:05 [2024-12-24 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090134', 'tblTempUsageDetail_20' ) start [2024-12-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090134', 'tblTempUsageDetail_20' ) end [2024-12-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090134', 'tblTempVendorCDR_20' ) start [2024-12-24 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090134', 'tblTempVendorCDR_20' ) end [2024-12-24 05:47:17] Production.INFO: ProcessCDR(1,14090134,1,1,2) [2024-12-24 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090134', 'tblTempUsageDetail_20' ) start [2024-12-24 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090134', 'tblTempUsageDetail_20' ) end [2024-12-24 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:47:20] Production.INFO: ==14791== Releasing lock... [2024-12-24 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:48:04 [end_date_ymd] => 2024-12-24 05:48:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:48:04' and `end` < '2024-12-24 05:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:48:17] Production.INFO: count ==18 [2024-12-24 05:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:48:04 - End Time 2024-12-24 05:48:04 [2024-12-24 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090139', 'tblTempUsageDetail_20' ) start [2024-12-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090139', 'tblTempUsageDetail_20' ) end [2024-12-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090139', 'tblTempVendorCDR_20' ) start [2024-12-24 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090139', 'tblTempVendorCDR_20' ) end [2024-12-24 05:48:17] Production.INFO: ProcessCDR(1,14090139,1,1,2) [2024-12-24 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090139', 'tblTempUsageDetail_20' ) start [2024-12-24 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090139', 'tblTempUsageDetail_20' ) end [2024-12-24 05:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:48:20] Production.INFO: ==14869== Releasing lock... [2024-12-24 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:49:05 [end_date_ymd] => 2024-12-24 05:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:49:17] Production.INFO: count ==18 [2024-12-24 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:49:05 - End Time 2024-12-24 05:49:05 [2024-12-24 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090144', 'tblTempUsageDetail_20' ) start [2024-12-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090144', 'tblTempUsageDetail_20' ) end [2024-12-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090144', 'tblTempVendorCDR_20' ) start [2024-12-24 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090144', 'tblTempVendorCDR_20' ) end [2024-12-24 05:49:17] Production.INFO: ProcessCDR(1,14090144,1,1,2) [2024-12-24 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090144', 'tblTempUsageDetail_20' ) start [2024-12-24 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090144', 'tblTempUsageDetail_20' ) end [2024-12-24 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:49:20] Production.INFO: ==14944== Releasing lock... [2024-12-24 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:49:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:50:05 [end_date_ymd] => 2024-12-24 05:50:05 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:50:05' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:50:17] Production.INFO: count ==18 [2024-12-24 05:50:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:50:05 - End Time 2024-12-24 05:50:05 [2024-12-24 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090149', 'tblTempUsageDetail_20' ) start [2024-12-24 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090149', 'tblTempUsageDetail_20' ) end [2024-12-24 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090149', 'tblTempVendorCDR_20' ) start [2024-12-24 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090149', 'tblTempVendorCDR_20' ) end [2024-12-24 05:50:17] Production.INFO: ProcessCDR(1,14090149,1,1,2) [2024-12-24 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090149', 'tblTempUsageDetail_20' ) start [2024-12-24 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090149', 'tblTempUsageDetail_20' ) end [2024-12-24 05:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:50:20] Production.INFO: ==15020== Releasing lock... [2024-12-24 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:50:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:51:05 [end_date_ymd] => 2024-12-24 05:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:51:18] Production.INFO: count ==18 [2024-12-24 05:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:51:05 - End Time 2024-12-24 05:51:05 [2024-12-24 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090155', 'tblTempUsageDetail_20' ) start [2024-12-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090155', 'tblTempUsageDetail_20' ) end [2024-12-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090155', 'tblTempVendorCDR_20' ) start [2024-12-24 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090155', 'tblTempVendorCDR_20' ) end [2024-12-24 05:51:18] Production.INFO: ProcessCDR(1,14090155,1,1,2) [2024-12-24 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090155', 'tblTempUsageDetail_20' ) start [2024-12-24 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090155', 'tblTempUsageDetail_20' ) end [2024-12-24 05:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:51:21] Production.INFO: ==15104== Releasing lock... [2024-12-24 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:51:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:52:05 [end_date_ymd] => 2024-12-24 05:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:52:18] Production.INFO: count ==18 [2024-12-24 05:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 02:52:05 - End Time 2024-12-24 05:52:05 [2024-12-24 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090160', 'tblTempUsageDetail_20' ) start [2024-12-24 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090160', 'tblTempUsageDetail_20' ) end [2024-12-24 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090160', 'tblTempVendorCDR_20' ) start [2024-12-24 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090160', 'tblTempVendorCDR_20' ) end [2024-12-24 05:52:18] Production.INFO: ProcessCDR(1,14090160,1,1,2) [2024-12-24 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090160', 'tblTempUsageDetail_20' ) start [2024-12-24 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090160', 'tblTempUsageDetail_20' ) end [2024-12-24 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:52:21] Production.INFO: ==15183== Releasing lock... [2024-12-24 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:53:05 [end_date_ymd] => 2024-12-24 05:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:53:17] Production.INFO: count ==18 [2024-12-24 05:53:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:53:05 - End Time 2024-12-24 05:53:05 [2024-12-24 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090165', 'tblTempUsageDetail_20' ) start [2024-12-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090165', 'tblTempUsageDetail_20' ) end [2024-12-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090165', 'tblTempVendorCDR_20' ) start [2024-12-24 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090165', 'tblTempVendorCDR_20' ) end [2024-12-24 05:53:17] Production.INFO: ProcessCDR(1,14090165,1,1,2) [2024-12-24 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090165', 'tblTempUsageDetail_20' ) start [2024-12-24 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090165', 'tblTempUsageDetail_20' ) end [2024-12-24 05:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:53:20] Production.INFO: ==15256== Releasing lock... [2024-12-24 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:53:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:54:04 [end_date_ymd] => 2024-12-24 05:54:04 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:54:04' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:54:16] Production.INFO: count ==18 [2024-12-24 05:54:16] Production.ERROR: pbx CDR StartTime 2024-12-24 02:54:04 - End Time 2024-12-24 05:54:04 [2024-12-24 05:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090170', 'tblTempUsageDetail_20' ) start [2024-12-24 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090170', 'tblTempUsageDetail_20' ) end [2024-12-24 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090170', 'tblTempVendorCDR_20' ) start [2024-12-24 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090170', 'tblTempVendorCDR_20' ) end [2024-12-24 05:54:16] Production.INFO: ProcessCDR(1,14090170,1,1,2) [2024-12-24 05:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090170', 'tblTempUsageDetail_20' ) start [2024-12-24 05:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090170', 'tblTempUsageDetail_20' ) end [2024-12-24 05:54:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:54:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:54:19] Production.INFO: ==15330== Releasing lock... [2024-12-24 05:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:54:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:55:05 [end_date_ymd] => 2024-12-24 05:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:55:17] Production.INFO: count ==18 [2024-12-24 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:55:05 - End Time 2024-12-24 05:55:05 [2024-12-24 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090175', 'tblTempUsageDetail_20' ) start [2024-12-24 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090175', 'tblTempUsageDetail_20' ) end [2024-12-24 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090175', 'tblTempVendorCDR_20' ) start [2024-12-24 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090175', 'tblTempVendorCDR_20' ) end [2024-12-24 05:55:17] Production.INFO: ProcessCDR(1,14090175,1,1,2) [2024-12-24 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090175', 'tblTempUsageDetail_20' ) start [2024-12-24 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090175', 'tblTempUsageDetail_20' ) end [2024-12-24 05:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:55:20] Production.INFO: ==15405== Releasing lock... [2024-12-24 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:56:04 [end_date_ymd] => 2024-12-24 05:56:04 [RateCDR] => 1 ) [2024-12-24 05:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 02:56:04' and `end` < '2024-12-24 05:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 05:56:17] Production.INFO: count ==18 [2024-12-24 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:56:04 - End Time 2024-12-24 05:56:04 [2024-12-24 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090176', 'tblTempUsageDetail_20' ) start [2024-12-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090176', 'tblTempUsageDetail_20' ) end [2024-12-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090176', 'tblTempVendorCDR_20' ) start [2024-12-24 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090176', 'tblTempVendorCDR_20' ) end [2024-12-24 05:56:17] Production.INFO: ProcessCDR(1,14090176,1,1,2) [2024-12-24 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090176', 'tblTempUsageDetail_20' ) start [2024-12-24 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090176', 'tblTempUsageDetail_20' ) end [2024-12-24 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:56:20] Production.INFO: ==15482== Releasing lock... [2024-12-24 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:57:04 [end_date_ymd] => 2024-12-24 05:57:04 [RateCDR] => 1 ) [2024-12-24 05: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` >= '2024-12-24 02:57:04' and `end` < '2024-12-24 05: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 ,'') [2024-12-24 05:57:17] Production.INFO: count ==18 [2024-12-24 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:57:04 - End Time 2024-12-24 05:57:04 [2024-12-24 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090185', 'tblTempUsageDetail_20' ) start [2024-12-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090185', 'tblTempUsageDetail_20' ) end [2024-12-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090185', 'tblTempVendorCDR_20' ) start [2024-12-24 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090185', 'tblTempVendorCDR_20' ) end [2024-12-24 05:57:17] Production.INFO: ProcessCDR(1,14090185,1,1,2) [2024-12-24 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090185', 'tblTempUsageDetail_20' ) start [2024-12-24 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090185', 'tblTempUsageDetail_20' ) end [2024-12-24 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:57:20] Production.INFO: ==15560== Releasing lock... [2024-12-24 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:58:05 [end_date_ymd] => 2024-12-24 05:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:58:17] Production.INFO: count ==18 [2024-12-24 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:58:05 - End Time 2024-12-24 05:58:05 [2024-12-24 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090190', 'tblTempUsageDetail_20' ) start [2024-12-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090190', 'tblTempUsageDetail_20' ) end [2024-12-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090190', 'tblTempVendorCDR_20' ) start [2024-12-24 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090190', 'tblTempVendorCDR_20' ) end [2024-12-24 05:58:17] Production.INFO: ProcessCDR(1,14090190,1,1,2) [2024-12-24 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090190', 'tblTempUsageDetail_20' ) start [2024-12-24 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090190', 'tblTempUsageDetail_20' ) end [2024-12-24 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:58:20] Production.INFO: ==15652== Releasing lock... [2024-12-24 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 02:59:05 [end_date_ymd] => 2024-12-24 05:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 02:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 05:59:17] Production.INFO: count ==18 [2024-12-24 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-24 02:59:05 - End Time 2024-12-24 05:59:05 [2024-12-24 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090195', 'tblTempUsageDetail_20' ) start [2024-12-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090195', 'tblTempUsageDetail_20' ) end [2024-12-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090195', 'tblTempVendorCDR_20' ) start [2024-12-24 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090195', 'tblTempVendorCDR_20' ) end [2024-12-24 05:59:17] Production.INFO: ProcessCDR(1,14090195,1,1,2) [2024-12-24 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090195', 'tblTempUsageDetail_20' ) start [2024-12-24 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090195', 'tblTempUsageDetail_20' ) end [2024-12-24 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 05:59:20] Production.INFO: ==15760== Releasing lock... [2024-12-24 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 05:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:00:05 [end_date_ymd] => 2024-12-24 06:00:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:00:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:00:18] Production.INFO: count ==18 [2024-12-24 06:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:00:05 - End Time 2024-12-24 06:00:05 [2024-12-24 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090201', 'tblTempUsageDetail_20' ) start [2024-12-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090201', 'tblTempUsageDetail_20' ) end [2024-12-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090201', 'tblTempVendorCDR_20' ) start [2024-12-24 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090201', 'tblTempVendorCDR_20' ) end [2024-12-24 06:00:18] Production.INFO: ProcessCDR(1,14090201,1,1,2) [2024-12-24 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090201', 'tblTempUsageDetail_20' ) start [2024-12-24 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090201', 'tblTempUsageDetail_20' ) end [2024-12-24 06:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:00:21] Production.INFO: ==15906== Releasing lock... [2024-12-24 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:01:04 [end_date_ymd] => 2024-12-24 06:01:04 [RateCDR] => 1 ) [2024-12-24 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:01:04' and `end` < '2024-12-24 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:01:16] Production.INFO: count ==18 [2024-12-24 06:01:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:01:04 - End Time 2024-12-24 06:01:04 [2024-12-24 06:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090206', 'tblTempUsageDetail_20' ) start [2024-12-24 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090206', 'tblTempUsageDetail_20' ) end [2024-12-24 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090206', 'tblTempVendorCDR_20' ) start [2024-12-24 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090206', 'tblTempVendorCDR_20' ) end [2024-12-24 06:01:16] Production.INFO: ProcessCDR(1,14090206,1,1,2) [2024-12-24 06:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090206', 'tblTempUsageDetail_20' ) start [2024-12-24 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090206', 'tblTempUsageDetail_20' ) end [2024-12-24 06:01:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:01:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:01:19] Production.INFO: ==15996== Releasing lock... [2024-12-24 06:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:01:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:02:04 [end_date_ymd] => 2024-12-24 06:02:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:02:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:02:17] Production.INFO: count ==18 [2024-12-24 06:02:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:02:04 - End Time 2024-12-24 06:02:04 [2024-12-24 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090211', 'tblTempUsageDetail_20' ) start [2024-12-24 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090211', 'tblTempUsageDetail_20' ) end [2024-12-24 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090211', 'tblTempVendorCDR_20' ) start [2024-12-24 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090211', 'tblTempVendorCDR_20' ) end [2024-12-24 06:02:17] Production.INFO: ProcessCDR(1,14090211,1,1,2) [2024-12-24 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090211', 'tblTempUsageDetail_20' ) start [2024-12-24 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090211', 'tblTempUsageDetail_20' ) end [2024-12-24 06:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:02:20] Production.INFO: ==16070== Releasing lock... [2024-12-24 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:02:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:03:05 [end_date_ymd] => 2024-12-24 06:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:03:17] Production.INFO: count ==18 [2024-12-24 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:03:05 - End Time 2024-12-24 06:03:05 [2024-12-24 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090216', 'tblTempUsageDetail_20' ) start [2024-12-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090216', 'tblTempUsageDetail_20' ) end [2024-12-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090216', 'tblTempVendorCDR_20' ) start [2024-12-24 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090216', 'tblTempVendorCDR_20' ) end [2024-12-24 06:03:17] Production.INFO: ProcessCDR(1,14090216,1,1,2) [2024-12-24 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090216', 'tblTempUsageDetail_20' ) start [2024-12-24 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090216', 'tblTempUsageDetail_20' ) end [2024-12-24 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:03:20] Production.INFO: ==16150== Releasing lock... [2024-12-24 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:03:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:04:05 [end_date_ymd] => 2024-12-24 06:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:04:17] Production.INFO: count ==18 [2024-12-24 06:04:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:04:05 - End Time 2024-12-24 06:04:05 [2024-12-24 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090221', 'tblTempUsageDetail_20' ) start [2024-12-24 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090221', 'tblTempUsageDetail_20' ) end [2024-12-24 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090221', 'tblTempVendorCDR_20' ) start [2024-12-24 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090221', 'tblTempVendorCDR_20' ) end [2024-12-24 06:04:17] Production.INFO: ProcessCDR(1,14090221,1,1,2) [2024-12-24 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090221', 'tblTempUsageDetail_20' ) start [2024-12-24 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090221', 'tblTempUsageDetail_20' ) end [2024-12-24 06:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:04:21] Production.INFO: ==16221== Releasing lock... [2024-12-24 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:04:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:05:05 [end_date_ymd] => 2024-12-24 06:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:05:18] Production.INFO: count ==18 [2024-12-24 06:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:05:05 - End Time 2024-12-24 06:05:05 [2024-12-24 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090226', 'tblTempUsageDetail_20' ) start [2024-12-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090226', 'tblTempUsageDetail_20' ) end [2024-12-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090226', 'tblTempVendorCDR_20' ) start [2024-12-24 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090226', 'tblTempVendorCDR_20' ) end [2024-12-24 06:05:18] Production.INFO: ProcessCDR(1,14090226,1,1,2) [2024-12-24 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090226', 'tblTempUsageDetail_20' ) start [2024-12-24 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090226', 'tblTempUsageDetail_20' ) end [2024-12-24 06:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:05:21] Production.INFO: ==16302== Releasing lock... [2024-12-24 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:06:04 [end_date_ymd] => 2024-12-24 06:06:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:06:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:06:17] Production.INFO: count ==18 [2024-12-24 06:06:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:06:04 - End Time 2024-12-24 06:06:04 [2024-12-24 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090231', 'tblTempUsageDetail_20' ) start [2024-12-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090231', 'tblTempUsageDetail_20' ) end [2024-12-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090231', 'tblTempVendorCDR_20' ) start [2024-12-24 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090231', 'tblTempVendorCDR_20' ) end [2024-12-24 06:06:17] Production.INFO: ProcessCDR(1,14090231,1,1,2) [2024-12-24 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090231', 'tblTempUsageDetail_20' ) start [2024-12-24 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090231', 'tblTempUsageDetail_20' ) end [2024-12-24 06:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:06:20] Production.INFO: ==16380== Releasing lock... [2024-12-24 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:06:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:07:04 [end_date_ymd] => 2024-12-24 06:07:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:07:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:07:17] Production.INFO: count ==18 [2024-12-24 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:07:04 - End Time 2024-12-24 06:07:04 [2024-12-24 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090236', 'tblTempUsageDetail_20' ) start [2024-12-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090236', 'tblTempUsageDetail_20' ) end [2024-12-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090236', 'tblTempVendorCDR_20' ) start [2024-12-24 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090236', 'tblTempVendorCDR_20' ) end [2024-12-24 06:07:17] Production.INFO: ProcessCDR(1,14090236,1,1,2) [2024-12-24 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090236', 'tblTempUsageDetail_20' ) start [2024-12-24 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090236', 'tblTempUsageDetail_20' ) end [2024-12-24 06:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:07:20] Production.INFO: ==16456== Releasing lock... [2024-12-24 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:07:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:08:04 [end_date_ymd] => 2024-12-24 06:08:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:08:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:08:16] Production.INFO: count ==18 [2024-12-24 06:08:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:08:04 - End Time 2024-12-24 06:08:04 [2024-12-24 06:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090241', 'tblTempUsageDetail_20' ) start [2024-12-24 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090241', 'tblTempUsageDetail_20' ) end [2024-12-24 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090241', 'tblTempVendorCDR_20' ) start [2024-12-24 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090241', 'tblTempVendorCDR_20' ) end [2024-12-24 06:08:16] Production.INFO: ProcessCDR(1,14090241,1,1,2) [2024-12-24 06:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090241', 'tblTempUsageDetail_20' ) start [2024-12-24 06:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090241', 'tblTempUsageDetail_20' ) end [2024-12-24 06:08:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:08:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:08:19] Production.INFO: ==16535== Releasing lock... [2024-12-24 06:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:08:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:09:05 [end_date_ymd] => 2024-12-24 06:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:09:17] Production.INFO: count ==18 [2024-12-24 06:09:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:09:05 - End Time 2024-12-24 06:09:05 [2024-12-24 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090246', 'tblTempUsageDetail_20' ) start [2024-12-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090246', 'tblTempUsageDetail_20' ) end [2024-12-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090246', 'tblTempVendorCDR_20' ) start [2024-12-24 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090246', 'tblTempVendorCDR_20' ) end [2024-12-24 06:09:17] Production.INFO: ProcessCDR(1,14090246,1,1,2) [2024-12-24 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090246', 'tblTempUsageDetail_20' ) start [2024-12-24 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090246', 'tblTempUsageDetail_20' ) end [2024-12-24 06:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:09:20] Production.INFO: ==16613== Releasing lock... [2024-12-24 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:09:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:10:05 [end_date_ymd] => 2024-12-24 06:10:05 [RateCDR] => 1 ) [2024-12-24 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:10:05' and `end` < '2024-12-24 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:10:18] Production.INFO: count ==18 [2024-12-24 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:10:05 - End Time 2024-12-24 06:10:05 [2024-12-24 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090252', 'tblTempUsageDetail_20' ) start [2024-12-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090252', 'tblTempUsageDetail_20' ) end [2024-12-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090252', 'tblTempVendorCDR_20' ) start [2024-12-24 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090252', 'tblTempVendorCDR_20' ) end [2024-12-24 06:10:18] Production.INFO: ProcessCDR(1,14090252,1,1,2) [2024-12-24 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090252', 'tblTempUsageDetail_20' ) start [2024-12-24 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090252', 'tblTempUsageDetail_20' ) end [2024-12-24 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:10:21] Production.INFO: ==16692== Releasing lock... [2024-12-24 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:11:04 [end_date_ymd] => 2024-12-24 06:11:04 [RateCDR] => 1 ) [2024-12-24 06:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:11:04' and `end` < '2024-12-24 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:11:16] Production.INFO: count ==18 [2024-12-24 06:11:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:11:04 - End Time 2024-12-24 06:11:04 [2024-12-24 06:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090257', 'tblTempUsageDetail_20' ) start [2024-12-24 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090257', 'tblTempUsageDetail_20' ) end [2024-12-24 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090257', 'tblTempVendorCDR_20' ) start [2024-12-24 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090257', 'tblTempVendorCDR_20' ) end [2024-12-24 06:11:16] Production.INFO: ProcessCDR(1,14090257,1,1,2) [2024-12-24 06:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090257', 'tblTempUsageDetail_20' ) start [2024-12-24 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090257', 'tblTempUsageDetail_20' ) end [2024-12-24 06:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:11:19] Production.INFO: ==16766== Releasing lock... [2024-12-24 06:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:11:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:12:05 [end_date_ymd] => 2024-12-24 06:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:12:17] Production.INFO: count ==18 [2024-12-24 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:12:05 - End Time 2024-12-24 06:12:05 [2024-12-24 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090262', 'tblTempUsageDetail_20' ) start [2024-12-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090262', 'tblTempUsageDetail_20' ) end [2024-12-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090262', 'tblTempVendorCDR_20' ) start [2024-12-24 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090262', 'tblTempVendorCDR_20' ) end [2024-12-24 06:12:17] Production.INFO: ProcessCDR(1,14090262,1,1,2) [2024-12-24 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090262', 'tblTempUsageDetail_20' ) start [2024-12-24 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090262', 'tblTempUsageDetail_20' ) end [2024-12-24 06:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:12:21] Production.INFO: ==16845== Releasing lock... [2024-12-24 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:13:04 [end_date_ymd] => 2024-12-24 06:13:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:13:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:13:17] Production.INFO: count ==18 [2024-12-24 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:13:04 - End Time 2024-12-24 06:13:04 [2024-12-24 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090267', 'tblTempUsageDetail_20' ) start [2024-12-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090267', 'tblTempUsageDetail_20' ) end [2024-12-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090267', 'tblTempVendorCDR_20' ) start [2024-12-24 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090267', 'tblTempVendorCDR_20' ) end [2024-12-24 06:13:17] Production.INFO: ProcessCDR(1,14090267,1,1,2) [2024-12-24 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090267', 'tblTempUsageDetail_20' ) start [2024-12-24 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090267', 'tblTempUsageDetail_20' ) end [2024-12-24 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:13:20] Production.INFO: ==16923== Releasing lock... [2024-12-24 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:14:05 [end_date_ymd] => 2024-12-24 06:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:14:17] Production.INFO: count ==18 [2024-12-24 06:14:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:14:05 - End Time 2024-12-24 06:14:05 [2024-12-24 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090272', 'tblTempUsageDetail_20' ) start [2024-12-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090272', 'tblTempUsageDetail_20' ) end [2024-12-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090272', 'tblTempVendorCDR_20' ) start [2024-12-24 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090272', 'tblTempVendorCDR_20' ) end [2024-12-24 06:14:17] Production.INFO: ProcessCDR(1,14090272,1,1,2) [2024-12-24 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090272', 'tblTempUsageDetail_20' ) start [2024-12-24 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090272', 'tblTempUsageDetail_20' ) end [2024-12-24 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:14:20] Production.INFO: ==17008== Releasing lock... [2024-12-24 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:14:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:15:05 [end_date_ymd] => 2024-12-24 06:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:15:18] Production.INFO: count ==15 [2024-12-24 06:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:15:05 - End Time 2024-12-24 06:15:05 [2024-12-24 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090277', 'tblTempUsageDetail_20' ) start [2024-12-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090277', 'tblTempUsageDetail_20' ) end [2024-12-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090277', 'tblTempVendorCDR_20' ) start [2024-12-24 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090277', 'tblTempVendorCDR_20' ) end [2024-12-24 06:15:18] Production.INFO: ProcessCDR(1,14090277,1,1,2) [2024-12-24 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090277', 'tblTempUsageDetail_20' ) start [2024-12-24 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090277', 'tblTempUsageDetail_20' ) end [2024-12-24 06:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:15:21] Production.INFO: ==17085== Releasing lock... [2024-12-24 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:15:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:16:04 [end_date_ymd] => 2024-12-24 06:16:04 [RateCDR] => 1 ) [2024-12-24 06:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:16:04' and `end` < '2024-12-24 06:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:16:17] Production.INFO: count ==15 [2024-12-24 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:16:04 - End Time 2024-12-24 06:16:04 [2024-12-24 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090282', 'tblTempUsageDetail_20' ) start [2024-12-24 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090282', 'tblTempUsageDetail_20' ) end [2024-12-24 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090282', 'tblTempVendorCDR_20' ) start [2024-12-24 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090282', 'tblTempVendorCDR_20' ) end [2024-12-24 06:16:17] Production.INFO: ProcessCDR(1,14090282,1,1,2) [2024-12-24 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090282', 'tblTempUsageDetail_20' ) start [2024-12-24 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090282', 'tblTempUsageDetail_20' ) end [2024-12-24 06:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:16:20] Production.INFO: ==17204== Releasing lock... [2024-12-24 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:16:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:17:05 [end_date_ymd] => 2024-12-24 06:17:05 [RateCDR] => 1 ) [2024-12-24 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:17:05' and `end` < '2024-12-24 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:17:17] Production.INFO: count ==15 [2024-12-24 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:17:05 - End Time 2024-12-24 06:17:05 [2024-12-24 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090287', 'tblTempUsageDetail_20' ) start [2024-12-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090287', 'tblTempUsageDetail_20' ) end [2024-12-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090287', 'tblTempVendorCDR_20' ) start [2024-12-24 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090287', 'tblTempVendorCDR_20' ) end [2024-12-24 06:17:17] Production.INFO: ProcessCDR(1,14090287,1,1,2) [2024-12-24 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090287', 'tblTempUsageDetail_20' ) start [2024-12-24 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090287', 'tblTempUsageDetail_20' ) end [2024-12-24 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:17:20] Production.INFO: ==17287== Releasing lock... [2024-12-24 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:17:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:18:04 [end_date_ymd] => 2024-12-24 06:18:04 [RateCDR] => 1 ) [2024-12-24 06:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:18:04' and `end` < '2024-12-24 06:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:18:16] Production.INFO: count ==15 [2024-12-24 06:18:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:18:04 - End Time 2024-12-24 06:18:04 [2024-12-24 06:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090292', 'tblTempUsageDetail_20' ) start [2024-12-24 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090292', 'tblTempUsageDetail_20' ) end [2024-12-24 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090292', 'tblTempVendorCDR_20' ) start [2024-12-24 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090292', 'tblTempVendorCDR_20' ) end [2024-12-24 06:18:16] Production.INFO: ProcessCDR(1,14090292,1,1,2) [2024-12-24 06:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090292', 'tblTempUsageDetail_20' ) start [2024-12-24 06:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090292', 'tblTempUsageDetail_20' ) end [2024-12-24 06:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:18:19] Production.INFO: ==17365== Releasing lock... [2024-12-24 06:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:18:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:19:04 [end_date_ymd] => 2024-12-24 06:19:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:19:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:19:17] Production.INFO: count ==15 [2024-12-24 06:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:19:04 - End Time 2024-12-24 06:19:04 [2024-12-24 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090297', 'tblTempUsageDetail_20' ) start [2024-12-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090297', 'tblTempUsageDetail_20' ) end [2024-12-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090297', 'tblTempVendorCDR_20' ) start [2024-12-24 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090297', 'tblTempVendorCDR_20' ) end [2024-12-24 06:19:17] Production.INFO: ProcessCDR(1,14090297,1,1,2) [2024-12-24 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090297', 'tblTempUsageDetail_20' ) start [2024-12-24 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090297', 'tblTempUsageDetail_20' ) end [2024-12-24 06:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:19:20] Production.INFO: ==17446== Releasing lock... [2024-12-24 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:20:05 [end_date_ymd] => 2024-12-24 06:20:05 [RateCDR] => 1 ) [2024-12-24 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:20:05' and `end` < '2024-12-24 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:20:18] Production.INFO: count ==15 [2024-12-24 06:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:20:05 - End Time 2024-12-24 06:20:05 [2024-12-24 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090303', 'tblTempUsageDetail_20' ) start [2024-12-24 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090303', 'tblTempUsageDetail_20' ) end [2024-12-24 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090303', 'tblTempVendorCDR_20' ) start [2024-12-24 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090303', 'tblTempVendorCDR_20' ) end [2024-12-24 06:20:18] Production.INFO: ProcessCDR(1,14090303,1,1,2) [2024-12-24 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090303', 'tblTempUsageDetail_20' ) start [2024-12-24 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090303', 'tblTempUsageDetail_20' ) end [2024-12-24 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:20:21] Production.INFO: ==17534== Releasing lock... [2024-12-24 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:21:04 [end_date_ymd] => 2024-12-24 06:21:04 [RateCDR] => 1 ) [2024-12-24 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:21:04' and `end` < '2024-12-24 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:21:17] Production.INFO: count ==15 [2024-12-24 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:21:04 - End Time 2024-12-24 06:21:04 [2024-12-24 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090308', 'tblTempUsageDetail_20' ) start [2024-12-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090308', 'tblTempUsageDetail_20' ) end [2024-12-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090308', 'tblTempVendorCDR_20' ) start [2024-12-24 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090308', 'tblTempVendorCDR_20' ) end [2024-12-24 06:21:17] Production.INFO: ProcessCDR(1,14090308,1,1,2) [2024-12-24 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090308', 'tblTempUsageDetail_20' ) start [2024-12-24 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090308', 'tblTempUsageDetail_20' ) end [2024-12-24 06:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:21:20] Production.INFO: ==17616== Releasing lock... [2024-12-24 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:21:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:22:05 [end_date_ymd] => 2024-12-24 06:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:22:17] Production.INFO: count ==15 [2024-12-24 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:22:05 - End Time 2024-12-24 06:22:05 [2024-12-24 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090313', 'tblTempUsageDetail_20' ) start [2024-12-24 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090313', 'tblTempUsageDetail_20' ) end [2024-12-24 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090313', 'tblTempVendorCDR_20' ) start [2024-12-24 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090313', 'tblTempVendorCDR_20' ) end [2024-12-24 06:22:17] Production.INFO: ProcessCDR(1,14090313,1,1,2) [2024-12-24 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090313', 'tblTempUsageDetail_20' ) start [2024-12-24 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090313', 'tblTempUsageDetail_20' ) end [2024-12-24 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:22:20] Production.INFO: ==17706== Releasing lock... [2024-12-24 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:23:04 [end_date_ymd] => 2024-12-24 06:23:04 [RateCDR] => 1 ) [2024-12-24 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:23:04' and `end` < '2024-12-24 06:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:23:17] Production.INFO: count ==15 [2024-12-24 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:23:04 - End Time 2024-12-24 06:23:04 [2024-12-24 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090318', 'tblTempUsageDetail_20' ) start [2024-12-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090318', 'tblTempUsageDetail_20' ) end [2024-12-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090318', 'tblTempVendorCDR_20' ) start [2024-12-24 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090318', 'tblTempVendorCDR_20' ) end [2024-12-24 06:23:17] Production.INFO: ProcessCDR(1,14090318,1,1,2) [2024-12-24 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090318', 'tblTempUsageDetail_20' ) start [2024-12-24 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090318', 'tblTempUsageDetail_20' ) end [2024-12-24 06:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:23:20] Production.INFO: ==17790== Releasing lock... [2024-12-24 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:24:05 [end_date_ymd] => 2024-12-24 06:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:24:18] Production.INFO: count ==15 [2024-12-24 06:24:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:24:05 - End Time 2024-12-24 06:24:05 [2024-12-24 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090323', 'tblTempUsageDetail_20' ) start [2024-12-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090323', 'tblTempUsageDetail_20' ) end [2024-12-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090323', 'tblTempVendorCDR_20' ) start [2024-12-24 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090323', 'tblTempVendorCDR_20' ) end [2024-12-24 06:24:18] Production.INFO: ProcessCDR(1,14090323,1,1,2) [2024-12-24 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090323', 'tblTempUsageDetail_20' ) start [2024-12-24 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090323', 'tblTempUsageDetail_20' ) end [2024-12-24 06:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:24:21] Production.INFO: ==17879== Releasing lock... [2024-12-24 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:25:05 [end_date_ymd] => 2024-12-24 06:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:25:17] Production.INFO: count ==15 [2024-12-24 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:25:05 - End Time 2024-12-24 06:25:05 [2024-12-24 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090328', 'tblTempUsageDetail_20' ) start [2024-12-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090328', 'tblTempUsageDetail_20' ) end [2024-12-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090328', 'tblTempVendorCDR_20' ) start [2024-12-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090328', 'tblTempVendorCDR_20' ) end [2024-12-24 06:25:17] Production.INFO: ProcessCDR(1,14090328,1,1,2) [2024-12-24 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090328', 'tblTempUsageDetail_20' ) start [2024-12-24 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090328', 'tblTempUsageDetail_20' ) end [2024-12-24 06:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:25:20] Production.INFO: ==17974== Releasing lock... [2024-12-24 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:26:04 [end_date_ymd] => 2024-12-24 06:26:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:26:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:26:16] Production.INFO: count ==15 [2024-12-24 06:26:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:26:04 - End Time 2024-12-24 06:26:04 [2024-12-24 06:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090333', 'tblTempUsageDetail_20' ) start [2024-12-24 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090333', 'tblTempUsageDetail_20' ) end [2024-12-24 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090333', 'tblTempVendorCDR_20' ) start [2024-12-24 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090333', 'tblTempVendorCDR_20' ) end [2024-12-24 06:26:16] Production.INFO: ProcessCDR(1,14090333,1,1,2) [2024-12-24 06:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090333', 'tblTempUsageDetail_20' ) start [2024-12-24 06:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090333', 'tblTempUsageDetail_20' ) end [2024-12-24 06:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:26:19] Production.INFO: ==18086== Releasing lock... [2024-12-24 06:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:26:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:27:04 [end_date_ymd] => 2024-12-24 06:27:04 [RateCDR] => 1 ) [2024-12-24 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:27:04' and `end` < '2024-12-24 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:27:17] Production.INFO: count ==15 [2024-12-24 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:27:04 - End Time 2024-12-24 06:27:04 [2024-12-24 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090338', 'tblTempUsageDetail_20' ) start [2024-12-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090338', 'tblTempUsageDetail_20' ) end [2024-12-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090338', 'tblTempVendorCDR_20' ) start [2024-12-24 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090338', 'tblTempVendorCDR_20' ) end [2024-12-24 06:27:17] Production.INFO: ProcessCDR(1,14090338,1,1,2) [2024-12-24 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090338', 'tblTempUsageDetail_20' ) start [2024-12-24 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090338', 'tblTempUsageDetail_20' ) end [2024-12-24 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:27:20] Production.INFO: ==18207== Releasing lock... [2024-12-24 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:28:04 [end_date_ymd] => 2024-12-24 06:28:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:28:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:28:17] Production.INFO: count ==15 [2024-12-24 06:28:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:28:04 - End Time 2024-12-24 06:28:04 [2024-12-24 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090343', 'tblTempUsageDetail_20' ) start [2024-12-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090343', 'tblTempUsageDetail_20' ) end [2024-12-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090343', 'tblTempVendorCDR_20' ) start [2024-12-24 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090343', 'tblTempVendorCDR_20' ) end [2024-12-24 06:28:17] Production.INFO: ProcessCDR(1,14090343,1,1,2) [2024-12-24 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090343', 'tblTempUsageDetail_20' ) start [2024-12-24 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090343', 'tblTempUsageDetail_20' ) end [2024-12-24 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:28:21] Production.INFO: ==18321== Releasing lock... [2024-12-24 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:29:05 [end_date_ymd] => 2024-12-24 06:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:29:17] Production.INFO: count ==15 [2024-12-24 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:29:05 - End Time 2024-12-24 06:29:05 [2024-12-24 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090348', 'tblTempUsageDetail_20' ) start [2024-12-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090348', 'tblTempUsageDetail_20' ) end [2024-12-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090348', 'tblTempVendorCDR_20' ) start [2024-12-24 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090348', 'tblTempVendorCDR_20' ) end [2024-12-24 06:29:17] Production.INFO: ProcessCDR(1,14090348,1,1,2) [2024-12-24 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090348', 'tblTempUsageDetail_20' ) start [2024-12-24 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090348', 'tblTempUsageDetail_20' ) end [2024-12-24 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:29:20] Production.INFO: ==18446== Releasing lock... [2024-12-24 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:30:05 [end_date_ymd] => 2024-12-24 06:30:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:30:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:30:18] Production.INFO: count ==17 [2024-12-24 06:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:30:05 - End Time 2024-12-24 06:30:05 [2024-12-24 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090353', 'tblTempUsageDetail_20' ) start [2024-12-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090353', 'tblTempUsageDetail_20' ) end [2024-12-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090353', 'tblTempVendorCDR_20' ) start [2024-12-24 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090353', 'tblTempVendorCDR_20' ) end [2024-12-24 06:30:18] Production.INFO: ProcessCDR(1,14090353,1,1,2) [2024-12-24 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090353', 'tblTempUsageDetail_20' ) start [2024-12-24 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090353', 'tblTempUsageDetail_20' ) end [2024-12-24 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:30:21] Production.INFO: ==18565== Releasing lock... [2024-12-24 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:31:05 [end_date_ymd] => 2024-12-24 06:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:31:17] Production.INFO: count ==18 [2024-12-24 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:31:05 - End Time 2024-12-24 06:31:05 [2024-12-24 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090359', 'tblTempUsageDetail_20' ) start [2024-12-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090359', 'tblTempUsageDetail_20' ) end [2024-12-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090359', 'tblTempVendorCDR_20' ) start [2024-12-24 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090359', 'tblTempVendorCDR_20' ) end [2024-12-24 06:31:17] Production.INFO: ProcessCDR(1,14090359,1,1,2) [2024-12-24 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090359', 'tblTempUsageDetail_20' ) start [2024-12-24 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090359', 'tblTempUsageDetail_20' ) end [2024-12-24 06:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:31:21] Production.INFO: ==18688== Releasing lock... [2024-12-24 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:32:04 [end_date_ymd] => 2024-12-24 06:32:04 [RateCDR] => 1 ) [2024-12-24 06:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:32:04' and `end` < '2024-12-24 06:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:32:16] Production.INFO: count ==18 [2024-12-24 06:32:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:32:04 - End Time 2024-12-24 06:32:04 [2024-12-24 06:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090363', 'tblTempUsageDetail_20' ) start [2024-12-24 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090363', 'tblTempUsageDetail_20' ) end [2024-12-24 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090363', 'tblTempVendorCDR_20' ) start [2024-12-24 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090363', 'tblTempVendorCDR_20' ) end [2024-12-24 06:32:16] Production.INFO: ProcessCDR(1,14090363,1,1,2) [2024-12-24 06:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090363', 'tblTempUsageDetail_20' ) start [2024-12-24 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090363', 'tblTempUsageDetail_20' ) end [2024-12-24 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:32:20] Production.INFO: ==18848== Releasing lock... [2024-12-24 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:33:05 [end_date_ymd] => 2024-12-24 06:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:33:17] Production.INFO: count ==18 [2024-12-24 06:33:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:33:05 - End Time 2024-12-24 06:33:05 [2024-12-24 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090369', 'tblTempUsageDetail_20' ) start [2024-12-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090369', 'tblTempUsageDetail_20' ) end [2024-12-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090369', 'tblTempVendorCDR_20' ) start [2024-12-24 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090369', 'tblTempVendorCDR_20' ) end [2024-12-24 06:33:17] Production.INFO: ProcessCDR(1,14090369,1,1,2) [2024-12-24 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090369', 'tblTempUsageDetail_20' ) start [2024-12-24 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090369', 'tblTempUsageDetail_20' ) end [2024-12-24 06:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:33:21] Production.INFO: ==18972== Releasing lock... [2024-12-24 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:34:04 [end_date_ymd] => 2024-12-24 06:34:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:34:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:34:16] Production.INFO: count ==17 [2024-12-24 06:34:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:34:04 - End Time 2024-12-24 06:34:04 [2024-12-24 06:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090374', 'tblTempUsageDetail_20' ) start [2024-12-24 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090374', 'tblTempUsageDetail_20' ) end [2024-12-24 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090374', 'tblTempVendorCDR_20' ) start [2024-12-24 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090374', 'tblTempVendorCDR_20' ) end [2024-12-24 06:34:16] Production.INFO: ProcessCDR(1,14090374,1,1,2) [2024-12-24 06:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090374', 'tblTempUsageDetail_20' ) start [2024-12-24 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090374', 'tblTempUsageDetail_20' ) end [2024-12-24 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:34:20] Production.INFO: ==19092== Releasing lock... [2024-12-24 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:34:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:35:05 [end_date_ymd] => 2024-12-24 06:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:35:17] Production.INFO: count ==17 [2024-12-24 06:35:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:35:05 - End Time 2024-12-24 06:35:05 [2024-12-24 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090379', 'tblTempUsageDetail_20' ) start [2024-12-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090379', 'tblTempUsageDetail_20' ) end [2024-12-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090379', 'tblTempVendorCDR_20' ) start [2024-12-24 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090379', 'tblTempVendorCDR_20' ) end [2024-12-24 06:35:17] Production.INFO: ProcessCDR(1,14090379,1,1,2) [2024-12-24 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090379', 'tblTempUsageDetail_20' ) start [2024-12-24 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090379', 'tblTempUsageDetail_20' ) end [2024-12-24 06:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:35:20] Production.INFO: ==19211== Releasing lock... [2024-12-24 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:36:06 [end_date_ymd] => 2024-12-24 06:36:06 [RateCDR] => 1 ) [2024-12-24 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:36:06' and `end` < '2024-12-24 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:36:18] Production.INFO: count ==17 [2024-12-24 06:36:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:36:06 - End Time 2024-12-24 06:36:06 [2024-12-24 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090384', 'tblTempUsageDetail_20' ) start [2024-12-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090384', 'tblTempUsageDetail_20' ) end [2024-12-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090384', 'tblTempVendorCDR_20' ) start [2024-12-24 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090384', 'tblTempVendorCDR_20' ) end [2024-12-24 06:36:18] Production.INFO: ProcessCDR(1,14090384,1,1,2) [2024-12-24 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090384', 'tblTempUsageDetail_20' ) start [2024-12-24 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090384', 'tblTempUsageDetail_20' ) end [2024-12-24 06:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:36:21] Production.INFO: ==19333== Releasing lock... [2024-12-24 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:36:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:37:05 [end_date_ymd] => 2024-12-24 06:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:37:18] Production.INFO: count ==17 [2024-12-24 06:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:37:05 - End Time 2024-12-24 06:37:05 [2024-12-24 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090389', 'tblTempUsageDetail_20' ) start [2024-12-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090389', 'tblTempUsageDetail_20' ) end [2024-12-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090389', 'tblTempVendorCDR_20' ) start [2024-12-24 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090389', 'tblTempVendorCDR_20' ) end [2024-12-24 06:37:18] Production.INFO: ProcessCDR(1,14090389,1,1,2) [2024-12-24 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090389', 'tblTempUsageDetail_20' ) start [2024-12-24 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090389', 'tblTempUsageDetail_20' ) end [2024-12-24 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:37:21] Production.INFO: ==19451== Releasing lock... [2024-12-24 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:38:05 [end_date_ymd] => 2024-12-24 06:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:38:17] Production.INFO: count ==17 [2024-12-24 06:38:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:38:05 - End Time 2024-12-24 06:38:05 [2024-12-24 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090394', 'tblTempUsageDetail_20' ) start [2024-12-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090394', 'tblTempUsageDetail_20' ) end [2024-12-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090394', 'tblTempVendorCDR_20' ) start [2024-12-24 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090394', 'tblTempVendorCDR_20' ) end [2024-12-24 06:38:17] Production.INFO: ProcessCDR(1,14090394,1,1,2) [2024-12-24 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090394', 'tblTempUsageDetail_20' ) start [2024-12-24 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090394', 'tblTempUsageDetail_20' ) end [2024-12-24 06:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:38:21] Production.INFO: ==19574== Releasing lock... [2024-12-24 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:39:05 [end_date_ymd] => 2024-12-24 06:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:39:17] Production.INFO: count ==17 [2024-12-24 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:39:05 - End Time 2024-12-24 06:39:05 [2024-12-24 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090399', 'tblTempUsageDetail_20' ) start [2024-12-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090399', 'tblTempUsageDetail_20' ) end [2024-12-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090399', 'tblTempVendorCDR_20' ) start [2024-12-24 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090399', 'tblTempVendorCDR_20' ) end [2024-12-24 06:39:17] Production.INFO: ProcessCDR(1,14090399,1,1,2) [2024-12-24 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090399', 'tblTempUsageDetail_20' ) start [2024-12-24 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090399', 'tblTempUsageDetail_20' ) end [2024-12-24 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:39:20] Production.INFO: ==19695== Releasing lock... [2024-12-24 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:40:06 [end_date_ymd] => 2024-12-24 06:40:06 [RateCDR] => 1 ) [2024-12-24 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:40:06' and `end` < '2024-12-24 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:40:19] Production.INFO: count ==17 [2024-12-24 06:40:19] Production.ERROR: pbx CDR StartTime 2024-12-24 03:40:06 - End Time 2024-12-24 06:40:06 [2024-12-24 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090404', 'tblTempUsageDetail_20' ) start [2024-12-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090404', 'tblTempUsageDetail_20' ) end [2024-12-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090404', 'tblTempVendorCDR_20' ) start [2024-12-24 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090404', 'tblTempVendorCDR_20' ) end [2024-12-24 06:40:19] Production.INFO: ProcessCDR(1,14090404,1,1,2) [2024-12-24 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090404', 'tblTempUsageDetail_20' ) start [2024-12-24 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090404', 'tblTempUsageDetail_20' ) end [2024-12-24 06:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:40:22] Production.INFO: ==19809== Releasing lock... [2024-12-24 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:40:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:41:04 [end_date_ymd] => 2024-12-24 06:41:04 [RateCDR] => 1 ) [2024-12-24 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:41:04' and `end` < '2024-12-24 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:41:17] Production.INFO: count ==17 [2024-12-24 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:41:04 - End Time 2024-12-24 06:41:04 [2024-12-24 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090410', 'tblTempUsageDetail_20' ) start [2024-12-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090410', 'tblTempUsageDetail_20' ) end [2024-12-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090410', 'tblTempVendorCDR_20' ) start [2024-12-24 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090410', 'tblTempVendorCDR_20' ) end [2024-12-24 06:41:17] Production.INFO: ProcessCDR(1,14090410,1,1,2) [2024-12-24 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090410', 'tblTempUsageDetail_20' ) start [2024-12-24 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090410', 'tblTempUsageDetail_20' ) end [2024-12-24 06:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:41:20] Production.INFO: ==19899== Releasing lock... [2024-12-24 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:41:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:42:05 [end_date_ymd] => 2024-12-24 06:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:42:18] Production.INFO: count ==17 [2024-12-24 06:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:42:05 - End Time 2024-12-24 06:42:05 [2024-12-24 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090415', 'tblTempUsageDetail_20' ) start [2024-12-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090415', 'tblTempUsageDetail_20' ) end [2024-12-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090415', 'tblTempVendorCDR_20' ) start [2024-12-24 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090415', 'tblTempVendorCDR_20' ) end [2024-12-24 06:42:18] Production.INFO: ProcessCDR(1,14090415,1,1,2) [2024-12-24 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090415', 'tblTempUsageDetail_20' ) start [2024-12-24 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090415', 'tblTempUsageDetail_20' ) end [2024-12-24 06:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:42:21] Production.INFO: ==19979== Releasing lock... [2024-12-24 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:43:04 [end_date_ymd] => 2024-12-24 06:43:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:43:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:43:16] Production.INFO: count ==17 [2024-12-24 06:43:16] Production.ERROR: pbx CDR StartTime 2024-12-24 03:43:04 - End Time 2024-12-24 06:43:04 [2024-12-24 06:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090420', 'tblTempUsageDetail_20' ) start [2024-12-24 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090420', 'tblTempUsageDetail_20' ) end [2024-12-24 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090420', 'tblTempVendorCDR_20' ) start [2024-12-24 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090420', 'tblTempVendorCDR_20' ) end [2024-12-24 06:43:16] Production.INFO: ProcessCDR(1,14090420,1,1,2) [2024-12-24 06:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090420', 'tblTempUsageDetail_20' ) start [2024-12-24 06:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090420', 'tblTempUsageDetail_20' ) end [2024-12-24 06:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:43:19] Production.INFO: ==20063== Releasing lock... [2024-12-24 06:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:43:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:44:05 [end_date_ymd] => 2024-12-24 06:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:44:17] Production.INFO: count ==17 [2024-12-24 06:44:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:44:05 - End Time 2024-12-24 06:44:05 [2024-12-24 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090425', 'tblTempUsageDetail_20' ) start [2024-12-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090425', 'tblTempUsageDetail_20' ) end [2024-12-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090425', 'tblTempVendorCDR_20' ) start [2024-12-24 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090425', 'tblTempVendorCDR_20' ) end [2024-12-24 06:44:17] Production.INFO: ProcessCDR(1,14090425,1,1,2) [2024-12-24 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090425', 'tblTempUsageDetail_20' ) start [2024-12-24 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090425', 'tblTempUsageDetail_20' ) end [2024-12-24 06:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:44:21] Production.INFO: ==20147== Releasing lock... [2024-12-24 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:45:05 [end_date_ymd] => 2024-12-24 06:45:05 [RateCDR] => 1 ) [2024-12-24 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:45:05' and `end` < '2024-12-24 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:45:17] Production.INFO: count ==17 [2024-12-24 06:45:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:45:05 - End Time 2024-12-24 06:45:05 [2024-12-24 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090430', 'tblTempUsageDetail_20' ) start [2024-12-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090430', 'tblTempUsageDetail_20' ) end [2024-12-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090430', 'tblTempVendorCDR_20' ) start [2024-12-24 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090430', 'tblTempVendorCDR_20' ) end [2024-12-24 06:45:17] Production.INFO: ProcessCDR(1,14090430,1,1,2) [2024-12-24 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090430', 'tblTempUsageDetail_20' ) start [2024-12-24 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090430', 'tblTempUsageDetail_20' ) end [2024-12-24 06:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:45:20] Production.INFO: ==20227== Releasing lock... [2024-12-24 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:46:05 [end_date_ymd] => 2024-12-24 06:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:46:18] Production.INFO: count ==17 [2024-12-24 06:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:46:05 - End Time 2024-12-24 06:46:05 [2024-12-24 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090435', 'tblTempUsageDetail_20' ) start [2024-12-24 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090435', 'tblTempUsageDetail_20' ) end [2024-12-24 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090435', 'tblTempVendorCDR_20' ) start [2024-12-24 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090435', 'tblTempVendorCDR_20' ) end [2024-12-24 06:46:18] Production.INFO: ProcessCDR(1,14090435,1,1,2) [2024-12-24 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090435', 'tblTempUsageDetail_20' ) start [2024-12-24 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090435', 'tblTempUsageDetail_20' ) end [2024-12-24 06:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:46:21] Production.INFO: ==20313== Releasing lock... [2024-12-24 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:47:04 [end_date_ymd] => 2024-12-24 06:47:04 [RateCDR] => 1 ) [2024-12-24 06:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:47:04' and `end` < '2024-12-24 06:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:47:17] Production.INFO: count ==17 [2024-12-24 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:47:04 - End Time 2024-12-24 06:47:04 [2024-12-24 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090440', 'tblTempUsageDetail_20' ) start [2024-12-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090440', 'tblTempUsageDetail_20' ) end [2024-12-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090440', 'tblTempVendorCDR_20' ) start [2024-12-24 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090440', 'tblTempVendorCDR_20' ) end [2024-12-24 06:47:17] Production.INFO: ProcessCDR(1,14090440,1,1,2) [2024-12-24 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090440', 'tblTempUsageDetail_20' ) start [2024-12-24 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090440', 'tblTempUsageDetail_20' ) end [2024-12-24 06:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:47:20] Production.INFO: ==20433== Releasing lock... [2024-12-24 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:48:05 [end_date_ymd] => 2024-12-24 06:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:48:17] Production.INFO: count ==17 [2024-12-24 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:48:05 - End Time 2024-12-24 06:48:05 [2024-12-24 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090445', 'tblTempUsageDetail_20' ) start [2024-12-24 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090445', 'tblTempUsageDetail_20' ) end [2024-12-24 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090445', 'tblTempVendorCDR_20' ) start [2024-12-24 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090445', 'tblTempVendorCDR_20' ) end [2024-12-24 06:48:17] Production.INFO: ProcessCDR(1,14090445,1,1,2) [2024-12-24 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090445', 'tblTempUsageDetail_20' ) start [2024-12-24 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090445', 'tblTempUsageDetail_20' ) end [2024-12-24 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:48:20] Production.INFO: ==20516== Releasing lock... [2024-12-24 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:49:04 [end_date_ymd] => 2024-12-24 06:49:04 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:49:04' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:49:17] Production.INFO: count ==17 [2024-12-24 06:49:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:49:04 - End Time 2024-12-24 06:49:04 [2024-12-24 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090450', 'tblTempUsageDetail_20' ) start [2024-12-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090450', 'tblTempUsageDetail_20' ) end [2024-12-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090450', 'tblTempVendorCDR_20' ) start [2024-12-24 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090450', 'tblTempVendorCDR_20' ) end [2024-12-24 06:49:17] Production.INFO: ProcessCDR(1,14090450,1,1,2) [2024-12-24 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090450', 'tblTempUsageDetail_20' ) start [2024-12-24 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090450', 'tblTempUsageDetail_20' ) end [2024-12-24 06:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:49:21] Production.INFO: ==20602== Releasing lock... [2024-12-24 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:50:05 [end_date_ymd] => 2024-12-24 06:50:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:50:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:50:17] Production.INFO: count ==17 [2024-12-24 06:50:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:50:05 - End Time 2024-12-24 06:50:05 [2024-12-24 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090456', 'tblTempUsageDetail_20' ) start [2024-12-24 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090456', 'tblTempUsageDetail_20' ) end [2024-12-24 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090456', 'tblTempVendorCDR_20' ) start [2024-12-24 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090456', 'tblTempVendorCDR_20' ) end [2024-12-24 06:50:17] Production.INFO: ProcessCDR(1,14090456,1,1,2) [2024-12-24 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090456', 'tblTempUsageDetail_20' ) start [2024-12-24 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090456', 'tblTempUsageDetail_20' ) end [2024-12-24 06:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:50:21] Production.INFO: ==20687== Releasing lock... [2024-12-24 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:51:04 [end_date_ymd] => 2024-12-24 06:51:04 [RateCDR] => 1 ) [2024-12-24 06:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:51:04' and `end` < '2024-12-24 06:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:51:17] Production.INFO: count ==17 [2024-12-24 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:51:04 - End Time 2024-12-24 06:51:04 [2024-12-24 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090461', 'tblTempUsageDetail_20' ) start [2024-12-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090461', 'tblTempUsageDetail_20' ) end [2024-12-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090461', 'tblTempVendorCDR_20' ) start [2024-12-24 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090461', 'tblTempVendorCDR_20' ) end [2024-12-24 06:51:17] Production.INFO: ProcessCDR(1,14090461,1,1,2) [2024-12-24 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090461', 'tblTempUsageDetail_20' ) start [2024-12-24 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090461', 'tblTempUsageDetail_20' ) end [2024-12-24 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:51:20] Production.INFO: ==20771== Releasing lock... [2024-12-24 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:52:05 [end_date_ymd] => 2024-12-24 06:52:05 [RateCDR] => 1 ) [2024-12-24 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:52:05' and `end` < '2024-12-24 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:52:17] Production.INFO: count ==16 [2024-12-24 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:52:05 - End Time 2024-12-24 06:52:05 [2024-12-24 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090466', 'tblTempUsageDetail_20' ) start [2024-12-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090466', 'tblTempUsageDetail_20' ) end [2024-12-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090466', 'tblTempVendorCDR_20' ) start [2024-12-24 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090466', 'tblTempVendorCDR_20' ) end [2024-12-24 06:52:17] Production.INFO: ProcessCDR(1,14090466,1,1,2) [2024-12-24 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090466', 'tblTempUsageDetail_20' ) start [2024-12-24 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090466', 'tblTempUsageDetail_20' ) end [2024-12-24 06:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:52:21] Production.INFO: ==20861== Releasing lock... [2024-12-24 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:53:05 [end_date_ymd] => 2024-12-24 06:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:53:17] Production.INFO: count ==16 [2024-12-24 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:53:05 - End Time 2024-12-24 06:53:05 [2024-12-24 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090471', 'tblTempUsageDetail_20' ) start [2024-12-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090471', 'tblTempUsageDetail_20' ) end [2024-12-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090471', 'tblTempVendorCDR_20' ) start [2024-12-24 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090471', 'tblTempVendorCDR_20' ) end [2024-12-24 06:53:17] Production.INFO: ProcessCDR(1,14090471,1,1,2) [2024-12-24 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090471', 'tblTempUsageDetail_20' ) start [2024-12-24 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090471', 'tblTempUsageDetail_20' ) end [2024-12-24 06:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:53:20] Production.INFO: ==20943== Releasing lock... [2024-12-24 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:53:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:54:05 [end_date_ymd] => 2024-12-24 06:54:05 [RateCDR] => 1 ) [2024-12-24 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 03:54:05' and `end` < '2024-12-24 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:54:17] Production.INFO: count ==16 [2024-12-24 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:54:05 - End Time 2024-12-24 06:54:05 [2024-12-24 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090476', 'tblTempUsageDetail_20' ) start [2024-12-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090476', 'tblTempUsageDetail_20' ) end [2024-12-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090476', 'tblTempVendorCDR_20' ) start [2024-12-24 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090476', 'tblTempVendorCDR_20' ) end [2024-12-24 06:54:17] Production.INFO: ProcessCDR(1,14090476,1,1,2) [2024-12-24 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090476', 'tblTempUsageDetail_20' ) start [2024-12-24 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090476', 'tblTempUsageDetail_20' ) end [2024-12-24 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:54:20] Production.INFO: ==21023== Releasing lock... [2024-12-24 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:55:06 [end_date_ymd] => 2024-12-24 06:55:06 [RateCDR] => 1 ) [2024-12-24 06: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` >= '2024-12-24 03:55:06' and `end` < '2024-12-24 06: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 ,'') [2024-12-24 06:55:18] Production.INFO: count ==16 [2024-12-24 06:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:55:06 - End Time 2024-12-24 06:55:06 [2024-12-24 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090481', 'tblTempUsageDetail_20' ) start [2024-12-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090481', 'tblTempUsageDetail_20' ) end [2024-12-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090481', 'tblTempVendorCDR_20' ) start [2024-12-24 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090481', 'tblTempVendorCDR_20' ) end [2024-12-24 06:55:18] Production.INFO: ProcessCDR(1,14090481,1,1,2) [2024-12-24 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090481', 'tblTempUsageDetail_20' ) start [2024-12-24 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090481', 'tblTempUsageDetail_20' ) end [2024-12-24 06:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:55:22] Production.INFO: ==21118== Releasing lock... [2024-12-24 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:55:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:56:05 [end_date_ymd] => 2024-12-24 06:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:56:17] Production.INFO: count ==16 [2024-12-24 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:56:05 - End Time 2024-12-24 06:56:05 [2024-12-24 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090486', 'tblTempUsageDetail_20' ) start [2024-12-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090486', 'tblTempUsageDetail_20' ) end [2024-12-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090486', 'tblTempVendorCDR_20' ) start [2024-12-24 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090486', 'tblTempVendorCDR_20' ) end [2024-12-24 06:56:17] Production.INFO: ProcessCDR(1,14090486,1,1,2) [2024-12-24 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090486', 'tblTempUsageDetail_20' ) start [2024-12-24 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090486', 'tblTempUsageDetail_20' ) end [2024-12-24 06:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:56:20] Production.INFO: ==21197== Releasing lock... [2024-12-24 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-24 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:57:05 [end_date_ymd] => 2024-12-24 06:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:57:17] Production.INFO: count ==16 [2024-12-24 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:57:05 - End Time 2024-12-24 06:57:05 [2024-12-24 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090491', 'tblTempUsageDetail_20' ) start [2024-12-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090491', 'tblTempUsageDetail_20' ) end [2024-12-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090491', 'tblTempVendorCDR_20' ) start [2024-12-24 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090491', 'tblTempVendorCDR_20' ) end [2024-12-24 06:57:17] Production.INFO: ProcessCDR(1,14090491,1,1,2) [2024-12-24 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090491', 'tblTempUsageDetail_20' ) start [2024-12-24 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090491', 'tblTempUsageDetail_20' ) end [2024-12-24 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:57:20] Production.INFO: ==21279== Releasing lock... [2024-12-24 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:58:05 [end_date_ymd] => 2024-12-24 06:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:58:05' and `end` < '2024-12-24 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 06:58:18] Production.INFO: count ==16 [2024-12-24 06:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 03:58:05 - End Time 2024-12-24 06:58:05 [2024-12-24 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090496', 'tblTempUsageDetail_20' ) start [2024-12-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090496', 'tblTempUsageDetail_20' ) end [2024-12-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090496', 'tblTempVendorCDR_20' ) start [2024-12-24 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090496', 'tblTempVendorCDR_20' ) end [2024-12-24 06:58:18] Production.INFO: ProcessCDR(1,14090496,1,1,2) [2024-12-24 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090496', 'tblTempUsageDetail_20' ) start [2024-12-24 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090496', 'tblTempUsageDetail_20' ) end [2024-12-24 06:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:58:21] Production.INFO: ==21362== Releasing lock... [2024-12-24 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 03:59:05 [end_date_ymd] => 2024-12-24 06:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 03:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 06:59:17] Production.INFO: count ==16 [2024-12-24 06:59:17] Production.ERROR: pbx CDR StartTime 2024-12-24 03:59:05 - End Time 2024-12-24 06:59:05 [2024-12-24 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090501', 'tblTempUsageDetail_20' ) start [2024-12-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090501', 'tblTempUsageDetail_20' ) end [2024-12-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090501', 'tblTempVendorCDR_20' ) start [2024-12-24 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090501', 'tblTempVendorCDR_20' ) end [2024-12-24 06:59:17] Production.INFO: ProcessCDR(1,14090501,1,1,2) [2024-12-24 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090501', 'tblTempUsageDetail_20' ) start [2024-12-24 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090501', 'tblTempUsageDetail_20' ) end [2024-12-24 06:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 06:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 06:59:20] Production.INFO: ==21443== Releasing lock... [2024-12-24 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 06:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:00:05 [end_date_ymd] => 2024-12-24 07:00:05 [RateCDR] => 1 ) [2024-12-24 07: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` >= '2024-12-24 04:00:05' and `end` < '2024-12-24 07: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 ,'') [2024-12-24 07:00:18] Production.INFO: count ==16 [2024-12-24 07:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:00:05 - End Time 2024-12-24 07:00:05 [2024-12-24 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090507', 'tblTempUsageDetail_20' ) start [2024-12-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090507', 'tblTempUsageDetail_20' ) end [2024-12-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090507', 'tblTempVendorCDR_20' ) start [2024-12-24 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090507', 'tblTempVendorCDR_20' ) end [2024-12-24 07:00:18] Production.INFO: ProcessCDR(1,14090507,1,1,2) [2024-12-24 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090507', 'tblTempUsageDetail_20' ) start [2024-12-24 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090507', 'tblTempUsageDetail_20' ) end [2024-12-24 07:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:00:21] Production.INFO: ==21531== Releasing lock... [2024-12-24 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:01:05 [end_date_ymd] => 2024-12-24 07:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:01:21] Production.INFO: count ==16 [2024-12-24 07:01:21] Production.ERROR: pbx CDR StartTime 2024-12-24 04:01:05 - End Time 2024-12-24 07:01:05 [2024-12-24 07:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090512', 'tblTempUsageDetail_20' ) start [2024-12-24 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090512', 'tblTempUsageDetail_20' ) end [2024-12-24 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090512', 'tblTempVendorCDR_20' ) start [2024-12-24 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090512', 'tblTempVendorCDR_20' ) end [2024-12-24 07:01:21] Production.INFO: ProcessCDR(1,14090512,1,1,2) [2024-12-24 07:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090512', 'tblTempUsageDetail_20' ) start [2024-12-24 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090512', 'tblTempUsageDetail_20' ) end [2024-12-24 07:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:01:24] Production.INFO: ==21668== Releasing lock... [2024-12-24 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:01:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:02:05 [end_date_ymd] => 2024-12-24 07:02:05 [RateCDR] => 1 ) [2024-12-24 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:02:18] Production.INFO: count ==16 [2024-12-24 07:02:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:02:05 - End Time 2024-12-24 07:02:05 [2024-12-24 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090517', 'tblTempUsageDetail_20' ) start [2024-12-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090517', 'tblTempUsageDetail_20' ) end [2024-12-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090517', 'tblTempVendorCDR_20' ) start [2024-12-24 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090517', 'tblTempVendorCDR_20' ) end [2024-12-24 07:02:18] Production.INFO: ProcessCDR(1,14090517,1,1,2) [2024-12-24 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090517', 'tblTempUsageDetail_20' ) start [2024-12-24 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090517', 'tblTempUsageDetail_20' ) end [2024-12-24 07:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:02:21] Production.INFO: ==21787== Releasing lock... [2024-12-24 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:02:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:03:05 [end_date_ymd] => 2024-12-24 07:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:03:18] Production.INFO: count ==16 [2024-12-24 07:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:03:05 - End Time 2024-12-24 07:03:05 [2024-12-24 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090522', 'tblTempUsageDetail_20' ) start [2024-12-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090522', 'tblTempUsageDetail_20' ) end [2024-12-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090522', 'tblTempVendorCDR_20' ) start [2024-12-24 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090522', 'tblTempVendorCDR_20' ) end [2024-12-24 07:03:18] Production.INFO: ProcessCDR(1,14090522,1,1,2) [2024-12-24 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090522', 'tblTempUsageDetail_20' ) start [2024-12-24 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090522', 'tblTempUsageDetail_20' ) end [2024-12-24 07:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:03:21] Production.INFO: ==21906== Releasing lock... [2024-12-24 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:04:06 [end_date_ymd] => 2024-12-24 07:04:06 [RateCDR] => 1 ) [2024-12-24 07: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` >= '2024-12-24 04:04:06' and `end` < '2024-12-24 07: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 ,'') [2024-12-24 07:04:18] Production.INFO: count ==16 [2024-12-24 07:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:04:06 - End Time 2024-12-24 07:04:06 [2024-12-24 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090527', 'tblTempUsageDetail_20' ) start [2024-12-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090527', 'tblTempUsageDetail_20' ) end [2024-12-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090527', 'tblTempVendorCDR_20' ) start [2024-12-24 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090527', 'tblTempVendorCDR_20' ) end [2024-12-24 07:04:18] Production.INFO: ProcessCDR(1,14090527,1,1,2) [2024-12-24 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090527', 'tblTempUsageDetail_20' ) start [2024-12-24 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090527', 'tblTempUsageDetail_20' ) end [2024-12-24 07:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:04:22] Production.INFO: ==21992== Releasing lock... [2024-12-24 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:04:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:05:04 [end_date_ymd] => 2024-12-24 07:05:04 [RateCDR] => 1 ) [2024-12-24 07:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:05:04' and `end` < '2024-12-24 07:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:05:17] Production.INFO: count ==16 [2024-12-24 07:05:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:05:04 - End Time 2024-12-24 07:05:04 [2024-12-24 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090532', 'tblTempUsageDetail_20' ) start [2024-12-24 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090532', 'tblTempUsageDetail_20' ) end [2024-12-24 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090532', 'tblTempVendorCDR_20' ) start [2024-12-24 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090532', 'tblTempVendorCDR_20' ) end [2024-12-24 07:05:17] Production.INFO: ProcessCDR(1,14090532,1,1,2) [2024-12-24 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090532', 'tblTempUsageDetail_20' ) start [2024-12-24 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090532', 'tblTempUsageDetail_20' ) end [2024-12-24 07:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:05:20] Production.INFO: ==22151== Releasing lock... [2024-12-24 07:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:06:05 [end_date_ymd] => 2024-12-24 07:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:06:20] Production.INFO: count ==16 [2024-12-24 07:06:20] Production.ERROR: pbx CDR StartTime 2024-12-24 04:06:05 - End Time 2024-12-24 07:06:05 [2024-12-24 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090537', 'tblTempUsageDetail_20' ) start [2024-12-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090537', 'tblTempUsageDetail_20' ) end [2024-12-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090537', 'tblTempVendorCDR_20' ) start [2024-12-24 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090537', 'tblTempVendorCDR_20' ) end [2024-12-24 07:06:20] Production.INFO: ProcessCDR(1,14090537,1,1,2) [2024-12-24 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090537', 'tblTempUsageDetail_20' ) start [2024-12-24 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090537', 'tblTempUsageDetail_20' ) end [2024-12-24 07:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:06:23] Production.INFO: ==22248== Releasing lock... [2024-12-24 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:06:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:07:05 [end_date_ymd] => 2024-12-24 07:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:07:19] Production.INFO: count ==16 [2024-12-24 07:07:19] Production.ERROR: pbx CDR StartTime 2024-12-24 04:07:05 - End Time 2024-12-24 07:07:05 [2024-12-24 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090542', 'tblTempUsageDetail_20' ) start [2024-12-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090542', 'tblTempUsageDetail_20' ) end [2024-12-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090542', 'tblTempVendorCDR_20' ) start [2024-12-24 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090542', 'tblTempVendorCDR_20' ) end [2024-12-24 07:07:19] Production.INFO: ProcessCDR(1,14090542,1,1,2) [2024-12-24 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090542', 'tblTempUsageDetail_20' ) start [2024-12-24 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090542', 'tblTempUsageDetail_20' ) end [2024-12-24 07:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:07:22] Production.INFO: ==22345== Releasing lock... [2024-12-24 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:07:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:08:06 [end_date_ymd] => 2024-12-24 07:08:06 [RateCDR] => 1 ) [2024-12-24 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:08:06' and `end` < '2024-12-24 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:08:19] Production.INFO: count ==16 [2024-12-24 07:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 04:08:06 - End Time 2024-12-24 07:08:06 [2024-12-24 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090547', 'tblTempUsageDetail_20' ) start [2024-12-24 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090547', 'tblTempUsageDetail_20' ) end [2024-12-24 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090547', 'tblTempVendorCDR_20' ) start [2024-12-24 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090547', 'tblTempVendorCDR_20' ) end [2024-12-24 07:08:20] Production.INFO: ProcessCDR(1,14090547,1,1,2) [2024-12-24 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090547', 'tblTempUsageDetail_20' ) start [2024-12-24 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090547', 'tblTempUsageDetail_20' ) end [2024-12-24 07:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:08:23] Production.INFO: ==22515== Releasing lock... [2024-12-24 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:08:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:09:05 [end_date_ymd] => 2024-12-24 07:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:09:19] Production.INFO: count ==16 [2024-12-24 07:09:19] Production.ERROR: pbx CDR StartTime 2024-12-24 04:09:05 - End Time 2024-12-24 07:09:05 [2024-12-24 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090552', 'tblTempUsageDetail_20' ) start [2024-12-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090552', 'tblTempUsageDetail_20' ) end [2024-12-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090552', 'tblTempVendorCDR_20' ) start [2024-12-24 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090552', 'tblTempVendorCDR_20' ) end [2024-12-24 07:09:19] Production.INFO: ProcessCDR(1,14090552,1,1,2) [2024-12-24 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090552', 'tblTempUsageDetail_20' ) start [2024-12-24 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090552', 'tblTempUsageDetail_20' ) end [2024-12-24 07:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:09:22] Production.INFO: ==22622== Releasing lock... [2024-12-24 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:09:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:10:06 [end_date_ymd] => 2024-12-24 07:10:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:10:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:10:18] Production.INFO: count ==15 [2024-12-24 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:10:06 - End Time 2024-12-24 07:10:06 [2024-12-24 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090557', 'tblTempUsageDetail_20' ) start [2024-12-24 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090557', 'tblTempUsageDetail_20' ) end [2024-12-24 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090557', 'tblTempVendorCDR_20' ) start [2024-12-24 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090557', 'tblTempVendorCDR_20' ) end [2024-12-24 07:10:18] Production.INFO: ProcessCDR(1,14090557,1,1,2) [2024-12-24 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090557', 'tblTempUsageDetail_20' ) start [2024-12-24 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090557', 'tblTempUsageDetail_20' ) end [2024-12-24 07:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:10:22] Production.INFO: ==22715== Releasing lock... [2024-12-24 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:10:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:11:04 [end_date_ymd] => 2024-12-24 07:11:04 [RateCDR] => 1 ) [2024-12-24 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:11:04' and `end` < '2024-12-24 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:11:19] Production.INFO: count ==15 [2024-12-24 07:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 04:11:04 - End Time 2024-12-24 07:11:04 [2024-12-24 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090563', 'tblTempUsageDetail_20' ) start [2024-12-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090563', 'tblTempUsageDetail_20' ) end [2024-12-24 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090563', 'tblTempVendorCDR_20' ) start [2024-12-24 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090563', 'tblTempVendorCDR_20' ) end [2024-12-24 07:11:20] Production.INFO: ProcessCDR(1,14090563,1,1,2) [2024-12-24 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090563', 'tblTempUsageDetail_20' ) start [2024-12-24 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090563', 'tblTempUsageDetail_20' ) end [2024-12-24 07:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:11:23] Production.INFO: ==22816== Releasing lock... [2024-12-24 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:11:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:12:05 [end_date_ymd] => 2024-12-24 07:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:12:18] Production.INFO: count ==15 [2024-12-24 07:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:12:05 - End Time 2024-12-24 07:12:05 [2024-12-24 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090568', 'tblTempUsageDetail_20' ) start [2024-12-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090568', 'tblTempUsageDetail_20' ) end [2024-12-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090568', 'tblTempVendorCDR_20' ) start [2024-12-24 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090568', 'tblTempVendorCDR_20' ) end [2024-12-24 07:12:18] Production.INFO: ProcessCDR(1,14090568,1,1,2) [2024-12-24 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090568', 'tblTempUsageDetail_20' ) start [2024-12-24 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090568', 'tblTempUsageDetail_20' ) end [2024-12-24 07:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:12:21] Production.INFO: ==22981== Releasing lock... [2024-12-24 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:13:05 [end_date_ymd] => 2024-12-24 07:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:13:18] Production.INFO: count ==15 [2024-12-24 07:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:13:05 - End Time 2024-12-24 07:13:05 [2024-12-24 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090573', 'tblTempUsageDetail_20' ) start [2024-12-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090573', 'tblTempUsageDetail_20' ) end [2024-12-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090573', 'tblTempVendorCDR_20' ) start [2024-12-24 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090573', 'tblTempVendorCDR_20' ) end [2024-12-24 07:13:18] Production.INFO: ProcessCDR(1,14090573,1,1,2) [2024-12-24 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090573', 'tblTempUsageDetail_20' ) start [2024-12-24 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090573', 'tblTempUsageDetail_20' ) end [2024-12-24 07:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:13:21] Production.INFO: ==23101== Releasing lock... [2024-12-24 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:14:05 [end_date_ymd] => 2024-12-24 07:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:14:19] Production.INFO: count ==15 [2024-12-24 07:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 04:14:05 - End Time 2024-12-24 07:14:05 [2024-12-24 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090578', 'tblTempUsageDetail_20' ) start [2024-12-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090578', 'tblTempUsageDetail_20' ) end [2024-12-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090578', 'tblTempVendorCDR_20' ) start [2024-12-24 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090578', 'tblTempVendorCDR_20' ) end [2024-12-24 07:14:19] Production.INFO: ProcessCDR(1,14090578,1,1,2) [2024-12-24 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090578', 'tblTempUsageDetail_20' ) start [2024-12-24 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090578', 'tblTempUsageDetail_20' ) end [2024-12-24 07:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:14:22] Production.INFO: ==23184== Releasing lock... [2024-12-24 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:14:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:15:05 [end_date_ymd] => 2024-12-24 07:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:15:17] Production.INFO: count ==15 [2024-12-24 07:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:15:05 - End Time 2024-12-24 07:15:05 [2024-12-24 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090583', 'tblTempUsageDetail_20' ) start [2024-12-24 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090583', 'tblTempUsageDetail_20' ) end [2024-12-24 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090583', 'tblTempVendorCDR_20' ) start [2024-12-24 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090583', 'tblTempVendorCDR_20' ) end [2024-12-24 07:15:17] Production.INFO: ProcessCDR(1,14090583,1,1,2) [2024-12-24 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090583', 'tblTempUsageDetail_20' ) start [2024-12-24 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090583', 'tblTempUsageDetail_20' ) end [2024-12-24 07:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:15:20] Production.INFO: ==23372== Releasing lock... [2024-12-24 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:16:05 [end_date_ymd] => 2024-12-24 07:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:16:17] Production.INFO: count ==15 [2024-12-24 07:16:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:16:05 - End Time 2024-12-24 07:16:05 [2024-12-24 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090588', 'tblTempUsageDetail_20' ) start [2024-12-24 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090588', 'tblTempUsageDetail_20' ) end [2024-12-24 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090588', 'tblTempVendorCDR_20' ) start [2024-12-24 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090588', 'tblTempVendorCDR_20' ) end [2024-12-24 07:16:17] Production.INFO: ProcessCDR(1,14090588,1,1,2) [2024-12-24 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090588', 'tblTempUsageDetail_20' ) start [2024-12-24 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090588', 'tblTempUsageDetail_20' ) end [2024-12-24 07:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:16:20] Production.INFO: ==23458== Releasing lock... [2024-12-24 07:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:16:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:17:06 [end_date_ymd] => 2024-12-24 07:17:06 [RateCDR] => 1 ) [2024-12-24 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:17:06' and `end` < '2024-12-24 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:17:19] Production.INFO: count ==15 [2024-12-24 07:17:19] Production.ERROR: pbx CDR StartTime 2024-12-24 04:17:06 - End Time 2024-12-24 07:17:06 [2024-12-24 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090593', 'tblTempUsageDetail_20' ) start [2024-12-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090593', 'tblTempUsageDetail_20' ) end [2024-12-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090593', 'tblTempVendorCDR_20' ) start [2024-12-24 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090593', 'tblTempVendorCDR_20' ) end [2024-12-24 07:17:19] Production.INFO: ProcessCDR(1,14090593,1,1,2) [2024-12-24 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090593', 'tblTempUsageDetail_20' ) start [2024-12-24 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090593', 'tblTempUsageDetail_20' ) end [2024-12-24 07:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:17:22] Production.INFO: ==23570== Releasing lock... [2024-12-24 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:17:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:18:05 [end_date_ymd] => 2024-12-24 07:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:18:20] Production.INFO: count ==16 [2024-12-24 07:18:20] Production.ERROR: pbx CDR StartTime 2024-12-24 04:18:05 - End Time 2024-12-24 07:18:05 [2024-12-24 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090598', 'tblTempUsageDetail_20' ) start [2024-12-24 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090598', 'tblTempUsageDetail_20' ) end [2024-12-24 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090598', 'tblTempVendorCDR_20' ) start [2024-12-24 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090598', 'tblTempVendorCDR_20' ) end [2024-12-24 07:18:20] Production.INFO: ProcessCDR(1,14090598,1,1,2) [2024-12-24 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090598', 'tblTempUsageDetail_20' ) start [2024-12-24 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090598', 'tblTempUsageDetail_20' ) end [2024-12-24 07:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:18:24] Production.INFO: ==23655== Releasing lock... [2024-12-24 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:18:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:19:05 [end_date_ymd] => 2024-12-24 07:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:19:17] Production.INFO: count ==16 [2024-12-24 07:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:19:05 - End Time 2024-12-24 07:19:05 [2024-12-24 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090603', 'tblTempUsageDetail_20' ) start [2024-12-24 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090603', 'tblTempUsageDetail_20' ) end [2024-12-24 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090603', 'tblTempVendorCDR_20' ) start [2024-12-24 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090603', 'tblTempVendorCDR_20' ) end [2024-12-24 07:19:17] Production.INFO: ProcessCDR(1,14090603,1,1,2) [2024-12-24 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090603', 'tblTempUsageDetail_20' ) start [2024-12-24 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090603', 'tblTempUsageDetail_20' ) end [2024-12-24 07:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:19:20] Production.INFO: ==23815== Releasing lock... [2024-12-24 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:20:06 [end_date_ymd] => 2024-12-24 07:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:20:18] Production.INFO: count ==16 [2024-12-24 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:20:06 - End Time 2024-12-24 07:20:06 [2024-12-24 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090609', 'tblTempUsageDetail_20' ) start [2024-12-24 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090609', 'tblTempUsageDetail_20' ) end [2024-12-24 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090609', 'tblTempVendorCDR_20' ) start [2024-12-24 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090609', 'tblTempVendorCDR_20' ) end [2024-12-24 07:20:18] Production.INFO: ProcessCDR(1,14090609,1,1,2) [2024-12-24 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090609', 'tblTempUsageDetail_20' ) start [2024-12-24 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090609', 'tblTempUsageDetail_20' ) end [2024-12-24 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:20:21] Production.INFO: ==23905== Releasing lock... [2024-12-24 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:21:05 [end_date_ymd] => 2024-12-24 07:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:21:43] Production.INFO: count ==16 [2024-12-24 07:21:43] Production.ERROR: pbx CDR StartTime 2024-12-24 04:21:05 - End Time 2024-12-24 07:21:05 [2024-12-24 07:21:43] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:21:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090614', 'tblTempUsageDetail_20' ) start [2024-12-24 07:21:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090614', 'tblTempUsageDetail_20' ) end [2024-12-24 07:21:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090614', 'tblTempVendorCDR_20' ) start [2024-12-24 07:21:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090614', 'tblTempVendorCDR_20' ) end [2024-12-24 07:21:43] Production.INFO: ProcessCDR(1,14090614,1,1,2) [2024-12-24 07:21:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:21:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:21:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:21:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:21:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090614', 'tblTempUsageDetail_20' ) start [2024-12-24 07:21:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090614', 'tblTempUsageDetail_20' ) end [2024-12-24 07:21:46] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:21:46] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:21:46] Production.INFO: ==24009== Releasing lock... [2024-12-24 07:21:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:21:46] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:22:05 [end_date_ymd] => 2024-12-24 07:22:05 [RateCDR] => 1 ) [2024-12-24 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:22:05' and `end` < '2024-12-24 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:22:18] Production.INFO: count ==16 [2024-12-24 07:22:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:22:05 - End Time 2024-12-24 07:22:05 [2024-12-24 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090619', 'tblTempUsageDetail_20' ) start [2024-12-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090619', 'tblTempUsageDetail_20' ) end [2024-12-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090619', 'tblTempVendorCDR_20' ) start [2024-12-24 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090619', 'tblTempVendorCDR_20' ) end [2024-12-24 07:22:18] Production.INFO: ProcessCDR(1,14090619,1,1,2) [2024-12-24 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090619', 'tblTempUsageDetail_20' ) start [2024-12-24 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090619', 'tblTempUsageDetail_20' ) end [2024-12-24 07:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:22:22] Production.INFO: ==24098== Releasing lock... [2024-12-24 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:22:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:23:05 [end_date_ymd] => 2024-12-24 07:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:23:17] Production.INFO: count ==16 [2024-12-24 07:23:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:23:05 - End Time 2024-12-24 07:23:05 [2024-12-24 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090624', 'tblTempUsageDetail_20' ) start [2024-12-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090624', 'tblTempUsageDetail_20' ) end [2024-12-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090624', 'tblTempVendorCDR_20' ) start [2024-12-24 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090624', 'tblTempVendorCDR_20' ) end [2024-12-24 07:23:17] Production.INFO: ProcessCDR(1,14090624,1,1,2) [2024-12-24 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090624', 'tblTempUsageDetail_20' ) start [2024-12-24 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090624', 'tblTempUsageDetail_20' ) end [2024-12-24 07:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:23:20] Production.INFO: ==24213== Releasing lock... [2024-12-24 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:24:05 [end_date_ymd] => 2024-12-24 07:24:05 [RateCDR] => 1 ) [2024-12-24 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:24:05' and `end` < '2024-12-24 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:24:17] Production.INFO: count ==16 [2024-12-24 07:24:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:24:05 - End Time 2024-12-24 07:24:05 [2024-12-24 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090629', 'tblTempUsageDetail_20' ) start [2024-12-24 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090629', 'tblTempUsageDetail_20' ) end [2024-12-24 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090629', 'tblTempVendorCDR_20' ) start [2024-12-24 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090629', 'tblTempVendorCDR_20' ) end [2024-12-24 07:24:17] Production.INFO: ProcessCDR(1,14090629,1,1,2) [2024-12-24 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090629', 'tblTempUsageDetail_20' ) start [2024-12-24 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090629', 'tblTempUsageDetail_20' ) end [2024-12-24 07:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:24:20] Production.INFO: ==24301== Releasing lock... [2024-12-24 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:25:05 [end_date_ymd] => 2024-12-24 07:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:25:17] Production.INFO: count ==16 [2024-12-24 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:25:05 - End Time 2024-12-24 07:25:05 [2024-12-24 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090634', 'tblTempUsageDetail_20' ) start [2024-12-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090634', 'tblTempUsageDetail_20' ) end [2024-12-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090634', 'tblTempVendorCDR_20' ) start [2024-12-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090634', 'tblTempVendorCDR_20' ) end [2024-12-24 07:25:17] Production.INFO: ProcessCDR(1,14090634,1,1,2) [2024-12-24 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090634', 'tblTempUsageDetail_20' ) start [2024-12-24 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090634', 'tblTempUsageDetail_20' ) end [2024-12-24 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:25:20] Production.INFO: ==24379== Releasing lock... [2024-12-24 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:26:05 [end_date_ymd] => 2024-12-24 07:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:26:17] Production.INFO: count ==16 [2024-12-24 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:26:05 - End Time 2024-12-24 07:26:05 [2024-12-24 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090639', 'tblTempUsageDetail_20' ) start [2024-12-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090639', 'tblTempUsageDetail_20' ) end [2024-12-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090639', 'tblTempVendorCDR_20' ) start [2024-12-24 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090639', 'tblTempVendorCDR_20' ) end [2024-12-24 07:26:17] Production.INFO: ProcessCDR(1,14090639,1,1,2) [2024-12-24 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090639', 'tblTempUsageDetail_20' ) start [2024-12-24 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090639', 'tblTempUsageDetail_20' ) end [2024-12-24 07:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:26:20] Production.INFO: ==24459== Releasing lock... [2024-12-24 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:27:04 [end_date_ymd] => 2024-12-24 07:27:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:27:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:27:17] Production.INFO: count ==16 [2024-12-24 07:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:27:04 - End Time 2024-12-24 07:27:04 [2024-12-24 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090644', 'tblTempUsageDetail_20' ) start [2024-12-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090644', 'tblTempUsageDetail_20' ) end [2024-12-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090644', 'tblTempVendorCDR_20' ) start [2024-12-24 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090644', 'tblTempVendorCDR_20' ) end [2024-12-24 07:27:17] Production.INFO: ProcessCDR(1,14090644,1,1,2) [2024-12-24 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090644', 'tblTempUsageDetail_20' ) start [2024-12-24 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090644', 'tblTempUsageDetail_20' ) end [2024-12-24 07:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:27:20] Production.INFO: ==24541== Releasing lock... [2024-12-24 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:28:05 [end_date_ymd] => 2024-12-24 07:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:28:17] Production.INFO: count ==16 [2024-12-24 07:28:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:28:05 - End Time 2024-12-24 07:28:05 [2024-12-24 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090649', 'tblTempUsageDetail_20' ) start [2024-12-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090649', 'tblTempUsageDetail_20' ) end [2024-12-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090649', 'tblTempVendorCDR_20' ) start [2024-12-24 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090649', 'tblTempVendorCDR_20' ) end [2024-12-24 07:28:17] Production.INFO: ProcessCDR(1,14090649,1,1,2) [2024-12-24 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090649', 'tblTempUsageDetail_20' ) start [2024-12-24 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090649', 'tblTempUsageDetail_20' ) end [2024-12-24 07:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:28:20] Production.INFO: ==24623== Releasing lock... [2024-12-24 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:28:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:29:05 [end_date_ymd] => 2024-12-24 07:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:29:17] Production.INFO: count ==16 [2024-12-24 07:29:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:29:05 - End Time 2024-12-24 07:29:05 [2024-12-24 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090654', 'tblTempUsageDetail_20' ) start [2024-12-24 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090654', 'tblTempUsageDetail_20' ) end [2024-12-24 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090654', 'tblTempVendorCDR_20' ) start [2024-12-24 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090654', 'tblTempVendorCDR_20' ) end [2024-12-24 07:29:17] Production.INFO: ProcessCDR(1,14090654,1,1,2) [2024-12-24 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090654', 'tblTempUsageDetail_20' ) start [2024-12-24 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090654', 'tblTempUsageDetail_20' ) end [2024-12-24 07:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:29:21] Production.INFO: ==24707== Releasing lock... [2024-12-24 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:30:05 [end_date_ymd] => 2024-12-24 07:30:05 [RateCDR] => 1 ) [2024-12-24 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:30:05' and `end` < '2024-12-24 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:30:17] Production.INFO: count ==19 [2024-12-24 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:30:05 - End Time 2024-12-24 07:30:05 [2024-12-24 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090659', 'tblTempUsageDetail_20' ) start [2024-12-24 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090659', 'tblTempUsageDetail_20' ) end [2024-12-24 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090659', 'tblTempVendorCDR_20' ) start [2024-12-24 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090659', 'tblTempVendorCDR_20' ) end [2024-12-24 07:30:17] Production.INFO: ProcessCDR(1,14090659,1,1,2) [2024-12-24 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090659', 'tblTempUsageDetail_20' ) start [2024-12-24 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090659', 'tblTempUsageDetail_20' ) end [2024-12-24 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:30:20] Production.INFO: ==24796== Releasing lock... [2024-12-24 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:30:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:31:05 [end_date_ymd] => 2024-12-24 07:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:31:17] Production.INFO: count ==19 [2024-12-24 07:31:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:31:05 - End Time 2024-12-24 07:31:05 [2024-12-24 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090665', 'tblTempUsageDetail_20' ) start [2024-12-24 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090665', 'tblTempUsageDetail_20' ) end [2024-12-24 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090665', 'tblTempVendorCDR_20' ) start [2024-12-24 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090665', 'tblTempVendorCDR_20' ) end [2024-12-24 07:31:17] Production.INFO: ProcessCDR(1,14090665,1,1,2) [2024-12-24 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090665', 'tblTempUsageDetail_20' ) start [2024-12-24 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090665', 'tblTempUsageDetail_20' ) end [2024-12-24 07:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:31:20] Production.INFO: ==24879== Releasing lock... [2024-12-24 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:31:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:32:05 [end_date_ymd] => 2024-12-24 07:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:32:17] Production.INFO: count ==19 [2024-12-24 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:32:05 - End Time 2024-12-24 07:32:05 [2024-12-24 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090670', 'tblTempUsageDetail_20' ) start [2024-12-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090670', 'tblTempUsageDetail_20' ) end [2024-12-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090670', 'tblTempVendorCDR_20' ) start [2024-12-24 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090670', 'tblTempVendorCDR_20' ) end [2024-12-24 07:32:17] Production.INFO: ProcessCDR(1,14090670,1,1,2) [2024-12-24 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090670', 'tblTempUsageDetail_20' ) start [2024-12-24 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090670', 'tblTempUsageDetail_20' ) end [2024-12-24 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:32:20] Production.INFO: ==24971== Releasing lock... [2024-12-24 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:33:05 [end_date_ymd] => 2024-12-24 07:33:05 [RateCDR] => 1 ) [2024-12-24 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:33:05' and `end` < '2024-12-24 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:33:18] Production.INFO: count ==19 [2024-12-24 07:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:33:05 - End Time 2024-12-24 07:33:05 [2024-12-24 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090675', 'tblTempUsageDetail_20' ) start [2024-12-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090675', 'tblTempUsageDetail_20' ) end [2024-12-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090675', 'tblTempVendorCDR_20' ) start [2024-12-24 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090675', 'tblTempVendorCDR_20' ) end [2024-12-24 07:33:18] Production.INFO: ProcessCDR(1,14090675,1,1,2) [2024-12-24 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090675', 'tblTempUsageDetail_20' ) start [2024-12-24 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090675', 'tblTempUsageDetail_20' ) end [2024-12-24 07:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:33:21] Production.INFO: ==25053== Releasing lock... [2024-12-24 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:34:05 [end_date_ymd] => 2024-12-24 07:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:34:17] Production.INFO: count ==20 [2024-12-24 07:34:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:34:05 - End Time 2024-12-24 07:34:05 [2024-12-24 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090680', 'tblTempUsageDetail_20' ) start [2024-12-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090680', 'tblTempUsageDetail_20' ) end [2024-12-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090680', 'tblTempVendorCDR_20' ) start [2024-12-24 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090680', 'tblTempVendorCDR_20' ) end [2024-12-24 07:34:17] Production.INFO: ProcessCDR(1,14090680,1,1,2) [2024-12-24 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090680', 'tblTempUsageDetail_20' ) start [2024-12-24 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090680', 'tblTempUsageDetail_20' ) end [2024-12-24 07:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:34:22] Production.INFO: ==25135== Releasing lock... [2024-12-24 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:35:05 [end_date_ymd] => 2024-12-24 07:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:35:18] Production.INFO: count ==20 [2024-12-24 07:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:35:05 - End Time 2024-12-24 07:35:05 [2024-12-24 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090685', 'tblTempUsageDetail_20' ) start [2024-12-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090685', 'tblTempUsageDetail_20' ) end [2024-12-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090685', 'tblTempVendorCDR_20' ) start [2024-12-24 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090685', 'tblTempVendorCDR_20' ) end [2024-12-24 07:35:18] Production.INFO: ProcessCDR(1,14090685,1,1,2) [2024-12-24 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090685', 'tblTempUsageDetail_20' ) start [2024-12-24 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090685', 'tblTempUsageDetail_20' ) end [2024-12-24 07:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:35:22] Production.INFO: ==25261== Releasing lock... [2024-12-24 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:35:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:36:04 [end_date_ymd] => 2024-12-24 07:36:04 [RateCDR] => 1 ) [2024-12-24 07:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:36:04' and `end` < '2024-12-24 07:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:36:17] Production.INFO: count ==20 [2024-12-24 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:36:04 - End Time 2024-12-24 07:36:04 [2024-12-24 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090690', 'tblTempUsageDetail_20' ) start [2024-12-24 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090690', 'tblTempUsageDetail_20' ) end [2024-12-24 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090690', 'tblTempVendorCDR_20' ) start [2024-12-24 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090690', 'tblTempVendorCDR_20' ) end [2024-12-24 07:36:17] Production.INFO: ProcessCDR(1,14090690,1,1,2) [2024-12-24 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090690', 'tblTempUsageDetail_20' ) start [2024-12-24 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090690', 'tblTempUsageDetail_20' ) end [2024-12-24 07:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:36:20] Production.INFO: ==25347== Releasing lock... [2024-12-24 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:37:05 [end_date_ymd] => 2024-12-24 07:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:37:17] Production.INFO: count ==20 [2024-12-24 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:37:05 - End Time 2024-12-24 07:37:05 [2024-12-24 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090695', 'tblTempUsageDetail_20' ) start [2024-12-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090695', 'tblTempUsageDetail_20' ) end [2024-12-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090695', 'tblTempVendorCDR_20' ) start [2024-12-24 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090695', 'tblTempVendorCDR_20' ) end [2024-12-24 07:37:17] Production.INFO: ProcessCDR(1,14090695,1,1,2) [2024-12-24 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090695', 'tblTempUsageDetail_20' ) start [2024-12-24 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090695', 'tblTempUsageDetail_20' ) end [2024-12-24 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:37:20] Production.INFO: ==25428== Releasing lock... [2024-12-24 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:38:05 [end_date_ymd] => 2024-12-24 07:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:38:17] Production.INFO: count ==20 [2024-12-24 07:38:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:38:05 - End Time 2024-12-24 07:38:05 [2024-12-24 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090700', 'tblTempUsageDetail_20' ) start [2024-12-24 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090700', 'tblTempUsageDetail_20' ) end [2024-12-24 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090700', 'tblTempVendorCDR_20' ) start [2024-12-24 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090700', 'tblTempVendorCDR_20' ) end [2024-12-24 07:38:17] Production.INFO: ProcessCDR(1,14090700,1,1,2) [2024-12-24 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090700', 'tblTempUsageDetail_20' ) start [2024-12-24 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090700', 'tblTempUsageDetail_20' ) end [2024-12-24 07:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:38:20] Production.INFO: ==25512== Releasing lock... [2024-12-24 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:39:05 [end_date_ymd] => 2024-12-24 07:39:05 [RateCDR] => 1 ) [2024-12-24 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:39:05' and `end` < '2024-12-24 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:39:17] Production.INFO: count ==20 [2024-12-24 07:39:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:39:05 - End Time 2024-12-24 07:39:05 [2024-12-24 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090705', 'tblTempUsageDetail_20' ) start [2024-12-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090705', 'tblTempUsageDetail_20' ) end [2024-12-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090705', 'tblTempVendorCDR_20' ) start [2024-12-24 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090705', 'tblTempVendorCDR_20' ) end [2024-12-24 07:39:17] Production.INFO: ProcessCDR(1,14090705,1,1,2) [2024-12-24 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090705', 'tblTempUsageDetail_20' ) start [2024-12-24 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090705', 'tblTempUsageDetail_20' ) end [2024-12-24 07:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:39:20] Production.INFO: ==25601== Releasing lock... [2024-12-24 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:40:06 [end_date_ymd] => 2024-12-24 07:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:40:18] Production.INFO: count ==23 [2024-12-24 07:40:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:40:06 - End Time 2024-12-24 07:40:06 [2024-12-24 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090710', 'tblTempUsageDetail_20' ) start [2024-12-24 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090710', 'tblTempUsageDetail_20' ) end [2024-12-24 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090710', 'tblTempVendorCDR_20' ) start [2024-12-24 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090710', 'tblTempVendorCDR_20' ) end [2024-12-24 07:40:18] Production.INFO: ProcessCDR(1,14090710,1,1,2) [2024-12-24 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090710', 'tblTempUsageDetail_20' ) start [2024-12-24 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090710', 'tblTempUsageDetail_20' ) end [2024-12-24 07:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:40:22] Production.INFO: ==25683== Releasing lock... [2024-12-24 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:40:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:41:05 [end_date_ymd] => 2024-12-24 07:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:41:17] Production.INFO: count ==23 [2024-12-24 07:41:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:41:05 - End Time 2024-12-24 07:41:05 [2024-12-24 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090716', 'tblTempUsageDetail_20' ) start [2024-12-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090716', 'tblTempUsageDetail_20' ) end [2024-12-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090716', 'tblTempVendorCDR_20' ) start [2024-12-24 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090716', 'tblTempVendorCDR_20' ) end [2024-12-24 07:41:17] Production.INFO: ProcessCDR(1,14090716,1,1,2) [2024-12-24 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090716', 'tblTempUsageDetail_20' ) start [2024-12-24 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090716', 'tblTempUsageDetail_20' ) end [2024-12-24 07:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:41:20] Production.INFO: ==25767== Releasing lock... [2024-12-24 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:41:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:42:05 [end_date_ymd] => 2024-12-24 07:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:42:17] Production.INFO: count ==23 [2024-12-24 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:42:05 - End Time 2024-12-24 07:42:05 [2024-12-24 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090721', 'tblTempUsageDetail_20' ) start [2024-12-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090721', 'tblTempUsageDetail_20' ) end [2024-12-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090721', 'tblTempVendorCDR_20' ) start [2024-12-24 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090721', 'tblTempVendorCDR_20' ) end [2024-12-24 07:42:17] Production.INFO: ProcessCDR(1,14090721,1,1,2) [2024-12-24 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090721', 'tblTempUsageDetail_20' ) start [2024-12-24 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090721', 'tblTempUsageDetail_20' ) end [2024-12-24 07:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:42:20] Production.INFO: ==25850== Releasing lock... [2024-12-24 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:43:04 [end_date_ymd] => 2024-12-24 07:43:04 [RateCDR] => 1 ) [2024-12-24 07: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` >= '2024-12-24 04:43:04' and `end` < '2024-12-24 07: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 ,'') [2024-12-24 07:43:18] Production.INFO: count ==23 [2024-12-24 07:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:43:04 - End Time 2024-12-24 07:43:04 [2024-12-24 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090726', 'tblTempUsageDetail_20' ) start [2024-12-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090726', 'tblTempUsageDetail_20' ) end [2024-12-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090726', 'tblTempVendorCDR_20' ) start [2024-12-24 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090726', 'tblTempVendorCDR_20' ) end [2024-12-24 07:43:18] Production.INFO: ProcessCDR(1,14090726,1,1,2) [2024-12-24 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090726', 'tblTempUsageDetail_20' ) start [2024-12-24 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090726', 'tblTempUsageDetail_20' ) end [2024-12-24 07:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:43:21] Production.INFO: ==25929== Releasing lock... [2024-12-24 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:44:05 [end_date_ymd] => 2024-12-24 07:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:44:17] Production.INFO: count ==23 [2024-12-24 07:44:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:44:05 - End Time 2024-12-24 07:44:05 [2024-12-24 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090731', 'tblTempUsageDetail_20' ) start [2024-12-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090731', 'tblTempUsageDetail_20' ) end [2024-12-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090731', 'tblTempVendorCDR_20' ) start [2024-12-24 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090731', 'tblTempVendorCDR_20' ) end [2024-12-24 07:44:17] Production.INFO: ProcessCDR(1,14090731,1,1,2) [2024-12-24 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090731', 'tblTempUsageDetail_20' ) start [2024-12-24 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090731', 'tblTempUsageDetail_20' ) end [2024-12-24 07:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:44:20] Production.INFO: ==26018== Releasing lock... [2024-12-24 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:45:04 [end_date_ymd] => 2024-12-24 07:45:04 [RateCDR] => 1 ) [2024-12-24 07: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` >= '2024-12-24 04:45:04' and `end` < '2024-12-24 07: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 ,'') [2024-12-24 07:45:16] Production.INFO: count ==23 [2024-12-24 07:45:16] Production.ERROR: pbx CDR StartTime 2024-12-24 04:45:04 - End Time 2024-12-24 07:45:04 [2024-12-24 07:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090736', 'tblTempUsageDetail_20' ) start [2024-12-24 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090736', 'tblTempUsageDetail_20' ) end [2024-12-24 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090736', 'tblTempVendorCDR_20' ) start [2024-12-24 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090736', 'tblTempVendorCDR_20' ) end [2024-12-24 07:45:16] Production.INFO: ProcessCDR(1,14090736,1,1,2) [2024-12-24 07:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090736', 'tblTempUsageDetail_20' ) start [2024-12-24 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090736', 'tblTempUsageDetail_20' ) end [2024-12-24 07:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:45:20] Production.INFO: ==26097== Releasing lock... [2024-12-24 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:46:05 [end_date_ymd] => 2024-12-24 07:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:46:17] Production.INFO: count ==23 [2024-12-24 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:46:05 - End Time 2024-12-24 07:46:05 [2024-12-24 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090741', 'tblTempUsageDetail_20' ) start [2024-12-24 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090741', 'tblTempUsageDetail_20' ) end [2024-12-24 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090741', 'tblTempVendorCDR_20' ) start [2024-12-24 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090741', 'tblTempVendorCDR_20' ) end [2024-12-24 07:46:17] Production.INFO: ProcessCDR(1,14090741,1,1,2) [2024-12-24 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090741', 'tblTempUsageDetail_20' ) start [2024-12-24 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090741', 'tblTempUsageDetail_20' ) end [2024-12-24 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:46:20] Production.INFO: ==26179== Releasing lock... [2024-12-24 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:47:05 [end_date_ymd] => 2024-12-24 07:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:47:17] Production.INFO: count ==23 [2024-12-24 07:47:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:47:05 - End Time 2024-12-24 07:47:05 [2024-12-24 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090746', 'tblTempUsageDetail_20' ) start [2024-12-24 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090746', 'tblTempUsageDetail_20' ) end [2024-12-24 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090746', 'tblTempVendorCDR_20' ) start [2024-12-24 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090746', 'tblTempVendorCDR_20' ) end [2024-12-24 07:47:17] Production.INFO: ProcessCDR(1,14090746,1,1,2) [2024-12-24 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090746', 'tblTempUsageDetail_20' ) start [2024-12-24 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090746', 'tblTempUsageDetail_20' ) end [2024-12-24 07:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:47:20] Production.INFO: ==26258== Releasing lock... [2024-12-24 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:48:05 [end_date_ymd] => 2024-12-24 07:48:05 [RateCDR] => 1 ) [2024-12-24 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:48:05' and `end` < '2024-12-24 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:48:17] Production.INFO: count ==23 [2024-12-24 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:48:05 - End Time 2024-12-24 07:48:05 [2024-12-24 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090751', 'tblTempUsageDetail_20' ) start [2024-12-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090751', 'tblTempUsageDetail_20' ) end [2024-12-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090751', 'tblTempVendorCDR_20' ) start [2024-12-24 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090751', 'tblTempVendorCDR_20' ) end [2024-12-24 07:48:17] Production.INFO: ProcessCDR(1,14090751,1,1,2) [2024-12-24 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090751', 'tblTempUsageDetail_20' ) start [2024-12-24 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090751', 'tblTempUsageDetail_20' ) end [2024-12-24 07:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:48:20] Production.INFO: ==26340== Releasing lock... [2024-12-24 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:49:05 [end_date_ymd] => 2024-12-24 07:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:49:18] Production.INFO: count ==23 [2024-12-24 07:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:49:05 - End Time 2024-12-24 07:49:05 [2024-12-24 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090756', 'tblTempUsageDetail_20' ) start [2024-12-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090756', 'tblTempUsageDetail_20' ) end [2024-12-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090756', 'tblTempVendorCDR_20' ) start [2024-12-24 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090756', 'tblTempVendorCDR_20' ) end [2024-12-24 07:49:18] Production.INFO: ProcessCDR(1,14090756,1,1,2) [2024-12-24 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090756', 'tblTempUsageDetail_20' ) start [2024-12-24 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090756', 'tblTempUsageDetail_20' ) end [2024-12-24 07:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:49:21] Production.INFO: ==26414== Releasing lock... [2024-12-24 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:50:05 [end_date_ymd] => 2024-12-24 07:50:05 [RateCDR] => 1 ) [2024-12-24 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:50:05' and `end` < '2024-12-24 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:50:17] Production.INFO: count ==29 [2024-12-24 07:50:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:50:05 - End Time 2024-12-24 07:50:05 [2024-12-24 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090762', 'tblTempUsageDetail_20' ) start [2024-12-24 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090762', 'tblTempUsageDetail_20' ) end [2024-12-24 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090762', 'tblTempVendorCDR_20' ) start [2024-12-24 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090762', 'tblTempVendorCDR_20' ) end [2024-12-24 07:50:17] Production.INFO: ProcessCDR(1,14090762,1,1,2) [2024-12-24 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090762', 'tblTempUsageDetail_20' ) start [2024-12-24 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090762', 'tblTempUsageDetail_20' ) end [2024-12-24 07:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:50:20] Production.INFO: ==26535== Releasing lock... [2024-12-24 07:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:50:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:51:05 [end_date_ymd] => 2024-12-24 07:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:51:17] Production.INFO: count ==32 [2024-12-24 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:51:05 - End Time 2024-12-24 07:51:05 [2024-12-24 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090767', 'tblTempUsageDetail_20' ) start [2024-12-24 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090767', 'tblTempUsageDetail_20' ) end [2024-12-24 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090767', 'tblTempVendorCDR_20' ) start [2024-12-24 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090767', 'tblTempVendorCDR_20' ) end [2024-12-24 07:51:17] Production.INFO: ProcessCDR(1,14090767,1,1,2) [2024-12-24 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090767', 'tblTempUsageDetail_20' ) start [2024-12-24 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090767', 'tblTempUsageDetail_20' ) end [2024-12-24 07:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:51:21] Production.INFO: ==26619== Releasing lock... [2024-12-24 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:51:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:52:04 [end_date_ymd] => 2024-12-24 07:52:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:52:04' and `end` < '2024-12-24 07: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 ,'') [2024-12-24 07:52:17] Production.INFO: count ==32 [2024-12-24 07:52:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:52:04 - End Time 2024-12-24 07:52:04 [2024-12-24 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090772', 'tblTempUsageDetail_20' ) start [2024-12-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090772', 'tblTempUsageDetail_20' ) end [2024-12-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090772', 'tblTempVendorCDR_20' ) start [2024-12-24 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090772', 'tblTempVendorCDR_20' ) end [2024-12-24 07:52:17] Production.INFO: ProcessCDR(1,14090772,1,1,2) [2024-12-24 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090772', 'tblTempUsageDetail_20' ) start [2024-12-24 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090772', 'tblTempUsageDetail_20' ) end [2024-12-24 07:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:52:20] Production.INFO: ==26696== Releasing lock... [2024-12-24 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:52:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:53:05 [end_date_ymd] => 2024-12-24 07:53:05 [RateCDR] => 1 ) [2024-12-24 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:53:05' and `end` < '2024-12-24 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:53:18] Production.INFO: count ==32 [2024-12-24 07:53:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:53:05 - End Time 2024-12-24 07:53:05 [2024-12-24 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090777', 'tblTempUsageDetail_20' ) start [2024-12-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090777', 'tblTempUsageDetail_20' ) end [2024-12-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090777', 'tblTempVendorCDR_20' ) start [2024-12-24 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090777', 'tblTempVendorCDR_20' ) end [2024-12-24 07:53:18] Production.INFO: ProcessCDR(1,14090777,1,1,2) [2024-12-24 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090777', 'tblTempUsageDetail_20' ) start [2024-12-24 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090777', 'tblTempUsageDetail_20' ) end [2024-12-24 07:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:53:21] Production.INFO: ==26775== Releasing lock... [2024-12-24 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:54:05 [end_date_ymd] => 2024-12-24 07:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:54:17] Production.INFO: count ==33 [2024-12-24 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:54:05 - End Time 2024-12-24 07:54:05 [2024-12-24 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090782', 'tblTempUsageDetail_20' ) start [2024-12-24 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090782', 'tblTempUsageDetail_20' ) end [2024-12-24 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090782', 'tblTempVendorCDR_20' ) start [2024-12-24 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090782', 'tblTempVendorCDR_20' ) end [2024-12-24 07:54:17] Production.INFO: ProcessCDR(1,14090782,1,1,2) [2024-12-24 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090782', 'tblTempUsageDetail_20' ) start [2024-12-24 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090782', 'tblTempUsageDetail_20' ) end [2024-12-24 07:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:54:21] Production.INFO: ==26857== Releasing lock... [2024-12-24 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-24 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:55:05 [end_date_ymd] => 2024-12-24 07:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:55:17] Production.INFO: count ==34 [2024-12-24 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:55:05 - End Time 2024-12-24 07:55:05 [2024-12-24 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090787', 'tblTempUsageDetail_20' ) start [2024-12-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090787', 'tblTempUsageDetail_20' ) end [2024-12-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090787', 'tblTempVendorCDR_20' ) start [2024-12-24 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090787', 'tblTempVendorCDR_20' ) end [2024-12-24 07:55:17] Production.INFO: ProcessCDR(1,14090787,1,1,2) [2024-12-24 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090787', 'tblTempUsageDetail_20' ) start [2024-12-24 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090787', 'tblTempUsageDetail_20' ) end [2024-12-24 07:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:55:22] Production.INFO: ==26942== Releasing lock... [2024-12-24 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:55:22] Production.INFO: 28 MB #Memory Used# [2024-12-24 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:56:04 [end_date_ymd] => 2024-12-24 07:56:04 [RateCDR] => 1 ) [2024-12-24 07: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` >= '2024-12-24 04:56:04' and `end` < '2024-12-24 07: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 ,'') [2024-12-24 07:56:16] Production.INFO: count ==36 [2024-12-24 07:56:16] Production.ERROR: pbx CDR StartTime 2024-12-24 04:56:04 - End Time 2024-12-24 07:56:04 [2024-12-24 07:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090792', 'tblTempUsageDetail_20' ) start [2024-12-24 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090792', 'tblTempUsageDetail_20' ) end [2024-12-24 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090792', 'tblTempVendorCDR_20' ) start [2024-12-24 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090792', 'tblTempVendorCDR_20' ) end [2024-12-24 07:56:16] Production.INFO: ProcessCDR(1,14090792,1,1,2) [2024-12-24 07:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090792', 'tblTempUsageDetail_20' ) start [2024-12-24 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090792', 'tblTempUsageDetail_20' ) end [2024-12-24 07:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:56:21] Production.INFO: ==27024== Releasing lock... [2024-12-24 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:56:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:57:05 [end_date_ymd] => 2024-12-24 07:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:57:17] Production.INFO: count ==38 [2024-12-24 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:57:05 - End Time 2024-12-24 07:57:05 [2024-12-24 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090797', 'tblTempUsageDetail_20' ) start [2024-12-24 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090797', 'tblTempUsageDetail_20' ) end [2024-12-24 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090797', 'tblTempVendorCDR_20' ) start [2024-12-24 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090797', 'tblTempVendorCDR_20' ) end [2024-12-24 07:57:17] Production.INFO: ProcessCDR(1,14090797,1,1,2) [2024-12-24 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090797', 'tblTempUsageDetail_20' ) start [2024-12-24 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090797', 'tblTempUsageDetail_20' ) end [2024-12-24 07:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:57:21] Production.INFO: ==27116== Releasing lock... [2024-12-24 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:57:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:58:05 [end_date_ymd] => 2024-12-24 07:58:05 [RateCDR] => 1 ) [2024-12-24 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 04:58:05' and `end` < '2024-12-24 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 07:58:18] Production.INFO: count ==40 [2024-12-24 07:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 04:58:05 - End Time 2024-12-24 07:58:05 [2024-12-24 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090802', 'tblTempUsageDetail_20' ) start [2024-12-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090802', 'tblTempUsageDetail_20' ) end [2024-12-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090802', 'tblTempVendorCDR_20' ) start [2024-12-24 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090802', 'tblTempVendorCDR_20' ) end [2024-12-24 07:58:18] Production.INFO: ProcessCDR(1,14090802,1,1,2) [2024-12-24 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090802', 'tblTempUsageDetail_20' ) start [2024-12-24 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090802', 'tblTempUsageDetail_20' ) end [2024-12-24 07:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:58:23] Production.INFO: ==27217== Releasing lock... [2024-12-24 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:58:23] Production.INFO: 28 MB #Memory Used# [2024-12-24 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 04:59:05 [end_date_ymd] => 2024-12-24 07:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 04:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 07:59:17] Production.INFO: count ==40 [2024-12-24 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-24 04:59:05 - End Time 2024-12-24 07:59:05 [2024-12-24 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090807', 'tblTempUsageDetail_20' ) start [2024-12-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090807', 'tblTempUsageDetail_20' ) end [2024-12-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090807', 'tblTempVendorCDR_20' ) start [2024-12-24 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090807', 'tblTempVendorCDR_20' ) end [2024-12-24 07:59:17] Production.INFO: ProcessCDR(1,14090807,1,1,2) [2024-12-24 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090807', 'tblTempUsageDetail_20' ) start [2024-12-24 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090807', 'tblTempUsageDetail_20' ) end [2024-12-24 07:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 07:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 07:59:21] Production.INFO: ==27305== Releasing lock... [2024-12-24 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 07:59:21] Production.INFO: 28 MB #Memory Used# [2024-12-24 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:00:06 [end_date_ymd] => 2024-12-24 08:00:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:00:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:00:18] Production.INFO: count ==53 [2024-12-24 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:00:06 - End Time 2024-12-24 08:00:06 [2024-12-24 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090813', 'tblTempUsageDetail_20' ) start [2024-12-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090813', 'tblTempUsageDetail_20' ) end [2024-12-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090813', 'tblTempVendorCDR_20' ) start [2024-12-24 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090813', 'tblTempVendorCDR_20' ) end [2024-12-24 08:00:18] Production.INFO: ProcessCDR(1,14090813,1,1,2) [2024-12-24 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090813', 'tblTempUsageDetail_20' ) start [2024-12-24 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090813', 'tblTempUsageDetail_20' ) end [2024-12-24 08:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:00:23] Production.INFO: ==27403== Releasing lock... [2024-12-24 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:00:23] Production.INFO: 28 MB #Memory Used# [2024-12-24 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:01:05 [end_date_ymd] => 2024-12-24 08:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:01:17] Production.INFO: count ==62 [2024-12-24 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:01:05 - End Time 2024-12-24 08:01:05 [2024-12-24 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090818', 'tblTempUsageDetail_20' ) start [2024-12-24 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090818', 'tblTempUsageDetail_20' ) end [2024-12-24 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090818', 'tblTempVendorCDR_20' ) start [2024-12-24 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090818', 'tblTempVendorCDR_20' ) end [2024-12-24 08:01:17] Production.INFO: ProcessCDR(1,14090818,1,1,2) [2024-12-24 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090818', 'tblTempUsageDetail_20' ) start [2024-12-24 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090818', 'tblTempUsageDetail_20' ) end [2024-12-24 08:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:01:22] Production.INFO: ==27504== Releasing lock... [2024-12-24 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:01:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:02:05 [end_date_ymd] => 2024-12-24 08:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:02:17] Production.INFO: count ==62 [2024-12-24 08:02:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:02:05 - End Time 2024-12-24 08:02:05 [2024-12-24 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090823', 'tblTempUsageDetail_20' ) start [2024-12-24 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090823', 'tblTempUsageDetail_20' ) end [2024-12-24 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090823', 'tblTempVendorCDR_20' ) start [2024-12-24 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090823', 'tblTempVendorCDR_20' ) end [2024-12-24 08:02:17] Production.INFO: ProcessCDR(1,14090823,1,1,2) [2024-12-24 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090823', 'tblTempUsageDetail_20' ) start [2024-12-24 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090823', 'tblTempUsageDetail_20' ) end [2024-12-24 08:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:02:21] Production.INFO: ==27596== Releasing lock... [2024-12-24 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:02:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:03:04 [end_date_ymd] => 2024-12-24 08:03:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:03:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:03:18] Production.INFO: count ==71 [2024-12-24 08:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:03:04 - End Time 2024-12-24 08:03:04 [2024-12-24 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090828', 'tblTempUsageDetail_20' ) start [2024-12-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090828', 'tblTempUsageDetail_20' ) end [2024-12-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090828', 'tblTempVendorCDR_20' ) start [2024-12-24 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090828', 'tblTempVendorCDR_20' ) end [2024-12-24 08:03:18] Production.INFO: ProcessCDR(1,14090828,1,1,2) [2024-12-24 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090828', 'tblTempUsageDetail_20' ) start [2024-12-24 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090828', 'tblTempUsageDetail_20' ) end [2024-12-24 08:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:03:22] Production.INFO: ==27686== Releasing lock... [2024-12-24 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:03:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:04:05 [end_date_ymd] => 2024-12-24 08:04:05 [RateCDR] => 1 ) [2024-12-24 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:04:05' and `end` < '2024-12-24 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:04:17] Production.INFO: count ==75 [2024-12-24 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:04:05 - End Time 2024-12-24 08:04:05 [2024-12-24 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090833', 'tblTempUsageDetail_20' ) start [2024-12-24 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090833', 'tblTempUsageDetail_20' ) end [2024-12-24 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090833', 'tblTempVendorCDR_20' ) start [2024-12-24 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090833', 'tblTempVendorCDR_20' ) end [2024-12-24 08:04:17] Production.INFO: ProcessCDR(1,14090833,1,1,2) [2024-12-24 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090833', 'tblTempUsageDetail_20' ) start [2024-12-24 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090833', 'tblTempUsageDetail_20' ) end [2024-12-24 08:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:04:21] Production.INFO: ==27775== Releasing lock... [2024-12-24 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:04:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-24 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:05:04 [end_date_ymd] => 2024-12-24 08:05:04 [RateCDR] => 1 ) [2024-12-24 08:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:05:04' and `end` < '2024-12-24 08:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:05:16] Production.INFO: count ==94 [2024-12-24 08:05:16] Production.ERROR: pbx CDR StartTime 2024-12-24 05:05:04 - End Time 2024-12-24 08:05:04 [2024-12-24 08:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090838', 'tblTempUsageDetail_20' ) start [2024-12-24 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090838', 'tblTempUsageDetail_20' ) end [2024-12-24 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090838', 'tblTempVendorCDR_20' ) start [2024-12-24 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090838', 'tblTempVendorCDR_20' ) end [2024-12-24 08:05:16] Production.INFO: ProcessCDR(1,14090838,1,1,2) [2024-12-24 08:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090838', 'tblTempUsageDetail_20' ) start [2024-12-24 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090838', 'tblTempUsageDetail_20' ) end [2024-12-24 08:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:05:20] Production.INFO: ==27863== Releasing lock... [2024-12-24 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:05:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-24 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:06:05 [end_date_ymd] => 2024-12-24 08:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:06:18] Production.INFO: count ==111 [2024-12-24 08:06:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:06:05 - End Time 2024-12-24 08:06:05 [2024-12-24 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090843', 'tblTempUsageDetail_20' ) start [2024-12-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090843', 'tblTempUsageDetail_20' ) end [2024-12-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090843', 'tblTempVendorCDR_20' ) start [2024-12-24 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090843', 'tblTempVendorCDR_20' ) end [2024-12-24 08:06:18] Production.INFO: ProcessCDR(1,14090843,1,1,2) [2024-12-24 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090843', 'tblTempUsageDetail_20' ) start [2024-12-24 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090843', 'tblTempUsageDetail_20' ) end [2024-12-24 08:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:06:22] Production.INFO: ==27983== Releasing lock... [2024-12-24 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:06:22] Production.INFO: 29 MB #Memory Used# [2024-12-24 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:07:05 [end_date_ymd] => 2024-12-24 08:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:07:17] Production.INFO: count ==119 [2024-12-24 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:07:05 - End Time 2024-12-24 08:07:05 [2024-12-24 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090848', 'tblTempUsageDetail_20' ) start [2024-12-24 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090848', 'tblTempUsageDetail_20' ) end [2024-12-24 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090848', 'tblTempVendorCDR_20' ) start [2024-12-24 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090848', 'tblTempVendorCDR_20' ) end [2024-12-24 08:07:17] Production.INFO: ProcessCDR(1,14090848,1,1,2) [2024-12-24 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090848', 'tblTempUsageDetail_20' ) start [2024-12-24 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090848', 'tblTempUsageDetail_20' ) end [2024-12-24 08:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:07:20] Production.INFO: ==28068== Releasing lock... [2024-12-24 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:07:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:08:05 [end_date_ymd] => 2024-12-24 08:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:08:17] Production.INFO: count ==138 [2024-12-24 08:08:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:08:05 - End Time 2024-12-24 08:08:05 [2024-12-24 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090853', 'tblTempUsageDetail_20' ) start [2024-12-24 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090853', 'tblTempUsageDetail_20' ) end [2024-12-24 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090853', 'tblTempVendorCDR_20' ) start [2024-12-24 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090853', 'tblTempVendorCDR_20' ) end [2024-12-24 08:08:17] Production.INFO: ProcessCDR(1,14090853,1,1,2) [2024-12-24 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090853', 'tblTempUsageDetail_20' ) start [2024-12-24 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090853', 'tblTempUsageDetail_20' ) end [2024-12-24 08:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:08:21] Production.INFO: ==28147== Releasing lock... [2024-12-24 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-24 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:09:05 [end_date_ymd] => 2024-12-24 08:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:09:18] Production.INFO: count ==151 [2024-12-24 08:09:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:09:05 - End Time 2024-12-24 08:09:05 [2024-12-24 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090858', 'tblTempUsageDetail_20' ) start [2024-12-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090858', 'tblTempUsageDetail_20' ) end [2024-12-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090858', 'tblTempVendorCDR_20' ) start [2024-12-24 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090858', 'tblTempVendorCDR_20' ) end [2024-12-24 08:09:18] Production.INFO: ProcessCDR(1,14090858,1,1,2) [2024-12-24 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090858', 'tblTempUsageDetail_20' ) start [2024-12-24 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090858', 'tblTempUsageDetail_20' ) end [2024-12-24 08:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:09:21] Production.INFO: ==28229== Releasing lock... [2024-12-24 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:09:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:10:06 [end_date_ymd] => 2024-12-24 08:10:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:10:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:10:18] Production.INFO: count ==163 [2024-12-24 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:10:06 - End Time 2024-12-24 08:10:06 [2024-12-24 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090863', 'tblTempUsageDetail_20' ) start [2024-12-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090863', 'tblTempUsageDetail_20' ) end [2024-12-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090863', 'tblTempVendorCDR_20' ) start [2024-12-24 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090863', 'tblTempVendorCDR_20' ) end [2024-12-24 08:10:18] Production.INFO: ProcessCDR(1,14090863,1,1,2) [2024-12-24 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090863', 'tblTempUsageDetail_20' ) start [2024-12-24 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090863', 'tblTempUsageDetail_20' ) end [2024-12-24 08:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:10:23] Production.INFO: ==28317== Releasing lock... [2024-12-24 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:10:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:11:04 [end_date_ymd] => 2024-12-24 08:11:04 [RateCDR] => 1 ) [2024-12-24 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:11:04' and `end` < '2024-12-24 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:11:16] Production.INFO: count ==175 [2024-12-24 08:11:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:11:04 - End Time 2024-12-24 08:11:04 [2024-12-24 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090869', 'tblTempUsageDetail_20' ) start [2024-12-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090869', 'tblTempUsageDetail_20' ) end [2024-12-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090869', 'tblTempVendorCDR_20' ) start [2024-12-24 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090869', 'tblTempVendorCDR_20' ) end [2024-12-24 08:11:17] Production.INFO: ProcessCDR(1,14090869,1,1,2) [2024-12-24 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090869', 'tblTempUsageDetail_20' ) start [2024-12-24 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090869', 'tblTempUsageDetail_20' ) end [2024-12-24 08:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:11:20] Production.INFO: ==28401== Releasing lock... [2024-12-24 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:11:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:12:04 [end_date_ymd] => 2024-12-24 08:12:04 [RateCDR] => 1 ) [2024-12-24 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:12:04' and `end` < '2024-12-24 08:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:12:17] Production.INFO: count ==184 [2024-12-24 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:12:04 - End Time 2024-12-24 08:12:04 [2024-12-24 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090874', 'tblTempUsageDetail_20' ) start [2024-12-24 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090874', 'tblTempUsageDetail_20' ) end [2024-12-24 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090874', 'tblTempVendorCDR_20' ) start [2024-12-24 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090874', 'tblTempVendorCDR_20' ) end [2024-12-24 08:12:17] Production.INFO: ProcessCDR(1,14090874,1,1,2) [2024-12-24 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090874', 'tblTempUsageDetail_20' ) start [2024-12-24 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090874', 'tblTempUsageDetail_20' ) end [2024-12-24 08:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:12:21] Production.INFO: ==28484== Releasing lock... [2024-12-24 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:12:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-24 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:13:04 [end_date_ymd] => 2024-12-24 08:13:04 [RateCDR] => 1 ) [2024-12-24 08: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` >= '2024-12-24 05:13:04' and `end` < '2024-12-24 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:13:17] Production.INFO: count ==194 [2024-12-24 08:13:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:13:04 - End Time 2024-12-24 08:13:04 [2024-12-24 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090878', 'tblTempUsageDetail_20' ) start [2024-12-24 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090878', 'tblTempUsageDetail_20' ) end [2024-12-24 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090878', 'tblTempVendorCDR_20' ) start [2024-12-24 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090878', 'tblTempVendorCDR_20' ) end [2024-12-24 08:13:17] Production.INFO: ProcessCDR(1,14090878,1,1,2) [2024-12-24 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090878', 'tblTempUsageDetail_20' ) start [2024-12-24 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090878', 'tblTempUsageDetail_20' ) end [2024-12-24 08:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:13:20] Production.INFO: ==28571== Releasing lock... [2024-12-24 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:13:20] Production.INFO: 30 MB #Memory Used# [2024-12-24 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:14:04 [end_date_ymd] => 2024-12-24 08:14:04 [RateCDR] => 1 ) [2024-12-24 08:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:14:04' and `end` < '2024-12-24 08:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:14:16] Production.INFO: count ==206 [2024-12-24 08:14:16] Production.ERROR: pbx CDR StartTime 2024-12-24 05:14:04 - End Time 2024-12-24 08:14:04 [2024-12-24 08:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090884', 'tblTempUsageDetail_20' ) start [2024-12-24 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090884', 'tblTempUsageDetail_20' ) end [2024-12-24 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090884', 'tblTempVendorCDR_20' ) start [2024-12-24 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090884', 'tblTempVendorCDR_20' ) end [2024-12-24 08:14:16] Production.INFO: ProcessCDR(1,14090884,1,1,2) [2024-12-24 08:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090884', 'tblTempUsageDetail_20' ) start [2024-12-24 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090884', 'tblTempUsageDetail_20' ) end [2024-12-24 08:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:14:21] Production.INFO: ==28648== Releasing lock... [2024-12-24 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:14:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-24 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:15:05 [end_date_ymd] => 2024-12-24 08:15:05 [RateCDR] => 1 ) [2024-12-24 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:15:05' and `end` < '2024-12-24 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:15:17] Production.INFO: count ==214 [2024-12-24 08:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:15:05 - End Time 2024-12-24 08:15:05 [2024-12-24 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090889', 'tblTempUsageDetail_20' ) start [2024-12-24 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090889', 'tblTempUsageDetail_20' ) end [2024-12-24 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090889', 'tblTempVendorCDR_20' ) start [2024-12-24 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090889', 'tblTempVendorCDR_20' ) end [2024-12-24 08:15:17] Production.INFO: ProcessCDR(1,14090889,1,1,2) [2024-12-24 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090889', 'tblTempUsageDetail_20' ) start [2024-12-24 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090889', 'tblTempUsageDetail_20' ) end [2024-12-24 08:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:15:22] Production.INFO: ==28731== Releasing lock... [2024-12-24 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:15:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-24 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:16:05 [end_date_ymd] => 2024-12-24 08:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:16:18] Production.INFO: count ==214 [2024-12-24 08:16:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:16:05 - End Time 2024-12-24 08:16:05 [2024-12-24 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090894', 'tblTempUsageDetail_20' ) start [2024-12-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090894', 'tblTempUsageDetail_20' ) end [2024-12-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090894', 'tblTempVendorCDR_20' ) start [2024-12-24 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090894', 'tblTempVendorCDR_20' ) end [2024-12-24 08:16:18] Production.INFO: ProcessCDR(1,14090894,1,1,2) [2024-12-24 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090894', 'tblTempUsageDetail_20' ) start [2024-12-24 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090894', 'tblTempUsageDetail_20' ) end [2024-12-24 08:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:16:21] Production.INFO: ==28815== Releasing lock... [2024-12-24 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:16:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-24 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:17:04 [end_date_ymd] => 2024-12-24 08:17:04 [RateCDR] => 1 ) [2024-12-24 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:17:04' and `end` < '2024-12-24 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:17:17] Production.INFO: count ==219 [2024-12-24 08:17:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:17:04 - End Time 2024-12-24 08:17:04 [2024-12-24 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090899', 'tblTempUsageDetail_20' ) start [2024-12-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090899', 'tblTempUsageDetail_20' ) end [2024-12-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090899', 'tblTempVendorCDR_20' ) start [2024-12-24 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090899', 'tblTempVendorCDR_20' ) end [2024-12-24 08:17:17] Production.INFO: ProcessCDR(1,14090899,1,1,2) [2024-12-24 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090899', 'tblTempUsageDetail_20' ) start [2024-12-24 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090899', 'tblTempUsageDetail_20' ) end [2024-12-24 08:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:17:20] Production.INFO: ==28904== Releasing lock... [2024-12-24 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:17:20] Production.INFO: 30 MB #Memory Used# [2024-12-24 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:18:05 [end_date_ymd] => 2024-12-24 08:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:18:17] Production.INFO: count ==236 [2024-12-24 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:18:05 - End Time 2024-12-24 08:18:05 [2024-12-24 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090904', 'tblTempUsageDetail_20' ) start [2024-12-24 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090904', 'tblTempUsageDetail_20' ) end [2024-12-24 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090904', 'tblTempVendorCDR_20' ) start [2024-12-24 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090904', 'tblTempVendorCDR_20' ) end [2024-12-24 08:18:17] Production.INFO: ProcessCDR(1,14090904,1,1,2) [2024-12-24 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090904', 'tblTempUsageDetail_20' ) start [2024-12-24 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090904', 'tblTempUsageDetail_20' ) end [2024-12-24 08:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:18:21] Production.INFO: ==28982== Releasing lock... [2024-12-24 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:18:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-24 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:19:05 [end_date_ymd] => 2024-12-24 08:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:19:17] Production.INFO: count ==244 [2024-12-24 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:19:05 - End Time 2024-12-24 08:19:05 [2024-12-24 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090909', 'tblTempUsageDetail_20' ) start [2024-12-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090909', 'tblTempUsageDetail_20' ) end [2024-12-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090909', 'tblTempVendorCDR_20' ) start [2024-12-24 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090909', 'tblTempVendorCDR_20' ) end [2024-12-24 08:19:17] Production.INFO: ProcessCDR(1,14090909,1,1,2) [2024-12-24 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090909', 'tblTempUsageDetail_20' ) start [2024-12-24 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090909', 'tblTempUsageDetail_20' ) end [2024-12-24 08:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:19:22] Production.INFO: ==29065== Releasing lock... [2024-12-24 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:19:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-24 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:20:06 [end_date_ymd] => 2024-12-24 08:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:20:18] Production.INFO: count ==259 [2024-12-24 08:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:20:06 - End Time 2024-12-24 08:20:06 [2024-12-24 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090914', 'tblTempUsageDetail_20' ) start [2024-12-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090914', 'tblTempUsageDetail_20' ) end [2024-12-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090914', 'tblTempVendorCDR_20' ) start [2024-12-24 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090914', 'tblTempVendorCDR_20' ) end [2024-12-24 08:20:18] Production.INFO: ProcessCDR(1,14090914,1,1,2) [2024-12-24 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090914', 'tblTempUsageDetail_20' ) start [2024-12-24 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090914', 'tblTempUsageDetail_20' ) end [2024-12-24 08:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:20:23] Production.INFO: ==29142== Releasing lock... [2024-12-24 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:20:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-24 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:21:04 [end_date_ymd] => 2024-12-24 08:21:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:21:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:21:17] Production.INFO: count ==274 [2024-12-24 08:21:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:21:04 - End Time 2024-12-24 08:21:04 [2024-12-24 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090920', 'tblTempUsageDetail_20' ) start [2024-12-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090920', 'tblTempUsageDetail_20' ) end [2024-12-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090920', 'tblTempVendorCDR_20' ) start [2024-12-24 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090920', 'tblTempVendorCDR_20' ) end [2024-12-24 08:21:17] Production.INFO: ProcessCDR(1,14090920,1,1,2) [2024-12-24 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090920', 'tblTempUsageDetail_20' ) start [2024-12-24 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090920', 'tblTempUsageDetail_20' ) end [2024-12-24 08:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:21:20] Production.INFO: ==29227== Releasing lock... [2024-12-24 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:21:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-24 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:22:05 [end_date_ymd] => 2024-12-24 08:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:22:17] Production.INFO: count ==292 [2024-12-24 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:22:05 - End Time 2024-12-24 08:22:05 [2024-12-24 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090925', 'tblTempUsageDetail_20' ) start [2024-12-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090925', 'tblTempUsageDetail_20' ) end [2024-12-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090925', 'tblTempVendorCDR_20' ) start [2024-12-24 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090925', 'tblTempVendorCDR_20' ) end [2024-12-24 08:22:17] Production.INFO: ProcessCDR(1,14090925,1,1,2) [2024-12-24 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090925', 'tblTempUsageDetail_20' ) start [2024-12-24 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090925', 'tblTempUsageDetail_20' ) end [2024-12-24 08:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:22:21] Production.INFO: ==29350== Releasing lock... [2024-12-24 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:22:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-24 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:23:04 [end_date_ymd] => 2024-12-24 08:23:04 [RateCDR] => 1 ) [2024-12-24 08:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:23:04' and `end` < '2024-12-24 08:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:23:17] Production.INFO: count ==297 [2024-12-24 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:23:04 - End Time 2024-12-24 08:23:04 [2024-12-24 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090930', 'tblTempUsageDetail_20' ) start [2024-12-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090930', 'tblTempUsageDetail_20' ) end [2024-12-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090930', 'tblTempVendorCDR_20' ) start [2024-12-24 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090930', 'tblTempVendorCDR_20' ) end [2024-12-24 08:23:17] Production.INFO: ProcessCDR(1,14090930,1,1,2) [2024-12-24 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090930', 'tblTempUsageDetail_20' ) start [2024-12-24 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090930', 'tblTempUsageDetail_20' ) end [2024-12-24 08:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:23:20] Production.INFO: ==29425== Releasing lock... [2024-12-24 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:23:20] Production.INFO: 31 MB #Memory Used# [2024-12-24 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:24:05 [end_date_ymd] => 2024-12-24 08:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:24:17] Production.INFO: count ==309 [2024-12-24 08:24:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:24:05 - End Time 2024-12-24 08:24:05 [2024-12-24 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090935', 'tblTempUsageDetail_20' ) start [2024-12-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090935', 'tblTempUsageDetail_20' ) end [2024-12-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090935', 'tblTempVendorCDR_20' ) start [2024-12-24 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090935', 'tblTempVendorCDR_20' ) end [2024-12-24 08:24:18] Production.INFO: ProcessCDR(1,14090935,1,1,2) [2024-12-24 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090935', 'tblTempUsageDetail_20' ) start [2024-12-24 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090935', 'tblTempUsageDetail_20' ) end [2024-12-24 08:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:24:21] Production.INFO: ==29507== Releasing lock... [2024-12-24 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:24:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-24 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:25:05 [end_date_ymd] => 2024-12-24 08:25:05 [RateCDR] => 1 ) [2024-12-24 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:25:05' and `end` < '2024-12-24 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:25:17] Production.INFO: count ==313 [2024-12-24 08:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:25:05 - End Time 2024-12-24 08:25:05 [2024-12-24 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090940', 'tblTempUsageDetail_20' ) start [2024-12-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090940', 'tblTempUsageDetail_20' ) end [2024-12-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090940', 'tblTempVendorCDR_20' ) start [2024-12-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090940', 'tblTempVendorCDR_20' ) end [2024-12-24 08:25:18] Production.INFO: ProcessCDR(1,14090940,1,1,2) [2024-12-24 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090940', 'tblTempUsageDetail_20' ) start [2024-12-24 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090940', 'tblTempUsageDetail_20' ) end [2024-12-24 08:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:25:21] Production.INFO: ==29588== Releasing lock... [2024-12-24 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:25:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-24 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:26:05 [end_date_ymd] => 2024-12-24 08:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:26:17] Production.INFO: count ==326 [2024-12-24 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:26:05 - End Time 2024-12-24 08:26:05 [2024-12-24 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090945', 'tblTempUsageDetail_20' ) start [2024-12-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090945', 'tblTempUsageDetail_20' ) end [2024-12-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090945', 'tblTempVendorCDR_20' ) start [2024-12-24 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090945', 'tblTempVendorCDR_20' ) end [2024-12-24 08:26:17] Production.INFO: ProcessCDR(1,14090945,1,1,2) [2024-12-24 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090945', 'tblTempUsageDetail_20' ) start [2024-12-24 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090945', 'tblTempUsageDetail_20' ) end [2024-12-24 08:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:26:20] Production.INFO: ==29662== Releasing lock... [2024-12-24 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:26:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-24 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:27:05 [end_date_ymd] => 2024-12-24 08:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:27:17] Production.INFO: count ==330 [2024-12-24 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:27:05 - End Time 2024-12-24 08:27:05 [2024-12-24 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090950', 'tblTempUsageDetail_20' ) start [2024-12-24 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090950', 'tblTempUsageDetail_20' ) end [2024-12-24 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090950', 'tblTempVendorCDR_20' ) start [2024-12-24 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090950', 'tblTempVendorCDR_20' ) end [2024-12-24 08:27:17] Production.INFO: ProcessCDR(1,14090950,1,1,2) [2024-12-24 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090950', 'tblTempUsageDetail_20' ) start [2024-12-24 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090950', 'tblTempUsageDetail_20' ) end [2024-12-24 08:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:27:20] Production.INFO: ==29745== Releasing lock... [2024-12-24 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:27:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-24 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:28:05 [end_date_ymd] => 2024-12-24 08:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:28:17] Production.INFO: count ==336 [2024-12-24 08:28:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:28:05 - End Time 2024-12-24 08:28:05 [2024-12-24 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090955', 'tblTempUsageDetail_20' ) start [2024-12-24 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090955', 'tblTempUsageDetail_20' ) end [2024-12-24 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090955', 'tblTempVendorCDR_20' ) start [2024-12-24 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090955', 'tblTempVendorCDR_20' ) end [2024-12-24 08:28:17] Production.INFO: ProcessCDR(1,14090955,1,1,2) [2024-12-24 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090955', 'tblTempUsageDetail_20' ) start [2024-12-24 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090955', 'tblTempUsageDetail_20' ) end [2024-12-24 08:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:28:22] Production.INFO: ==29829== Releasing lock... [2024-12-24 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:28:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-24 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:29:05 [end_date_ymd] => 2024-12-24 08:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:29:17] Production.INFO: count ==344 [2024-12-24 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:29:05 - End Time 2024-12-24 08:29:05 [2024-12-24 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090960', 'tblTempUsageDetail_20' ) start [2024-12-24 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090960', 'tblTempUsageDetail_20' ) end [2024-12-24 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090960', 'tblTempVendorCDR_20' ) start [2024-12-24 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090960', 'tblTempVendorCDR_20' ) end [2024-12-24 08:29:17] Production.INFO: ProcessCDR(1,14090960,1,1,2) [2024-12-24 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090960', 'tblTempUsageDetail_20' ) start [2024-12-24 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090960', 'tblTempUsageDetail_20' ) end [2024-12-24 08:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:29:21] Production.INFO: ==29907== Releasing lock... [2024-12-24 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:29:21] Production.INFO: 31 MB #Memory Used# [2024-12-24 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:30:05 [end_date_ymd] => 2024-12-24 08:30:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:30:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:30:17] Production.INFO: count ==354 [2024-12-24 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:30:05 - End Time 2024-12-24 08:30:05 [2024-12-24 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090966', 'tblTempUsageDetail_20' ) start [2024-12-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090966', 'tblTempUsageDetail_20' ) end [2024-12-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090966', 'tblTempVendorCDR_20' ) start [2024-12-24 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090966', 'tblTempVendorCDR_20' ) end [2024-12-24 08:30:18] Production.INFO: ProcessCDR(1,14090966,1,1,2) [2024-12-24 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090966', 'tblTempUsageDetail_20' ) start [2024-12-24 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090966', 'tblTempUsageDetail_20' ) end [2024-12-24 08:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:30:22] Production.INFO: ==29994== Releasing lock... [2024-12-24 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:30:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-24 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:31:05 [end_date_ymd] => 2024-12-24 08:31:05 [RateCDR] => 1 ) [2024-12-24 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:31:05' and `end` < '2024-12-24 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:31:18] Production.INFO: count ==371 [2024-12-24 08:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:31:05 - End Time 2024-12-24 08:31:05 [2024-12-24 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090971', 'tblTempUsageDetail_20' ) start [2024-12-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090971', 'tblTempUsageDetail_20' ) end [2024-12-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090971', 'tblTempVendorCDR_20' ) start [2024-12-24 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090971', 'tblTempVendorCDR_20' ) end [2024-12-24 08:31:18] Production.INFO: ProcessCDR(1,14090971,1,1,2) [2024-12-24 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090971', 'tblTempUsageDetail_20' ) start [2024-12-24 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090971', 'tblTempUsageDetail_20' ) end [2024-12-24 08:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:31:23] Production.INFO: ==30076== Releasing lock... [2024-12-24 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:31:23] Production.INFO: 31.5 MB #Memory Used# [2024-12-24 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:32:04 [end_date_ymd] => 2024-12-24 08:32:04 [RateCDR] => 1 ) [2024-12-24 08:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:32:04' and `end` < '2024-12-24 08:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:32:16] Production.INFO: count ==391 [2024-12-24 08:32:16] Production.ERROR: pbx CDR StartTime 2024-12-24 05:32:04 - End Time 2024-12-24 08:32:04 [2024-12-24 08:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090976', 'tblTempUsageDetail_20' ) start [2024-12-24 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090976', 'tblTempUsageDetail_20' ) end [2024-12-24 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090976', 'tblTempVendorCDR_20' ) start [2024-12-24 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090976', 'tblTempVendorCDR_20' ) end [2024-12-24 08:32:16] Production.INFO: ProcessCDR(1,14090976,1,1,2) [2024-12-24 08:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090976', 'tblTempUsageDetail_20' ) start [2024-12-24 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090976', 'tblTempUsageDetail_20' ) end [2024-12-24 08:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:32:21] Production.INFO: ==30151== Releasing lock... [2024-12-24 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:32:21] Production.INFO: 32 MB #Memory Used# [2024-12-24 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:33:05 [end_date_ymd] => 2024-12-24 08:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:33:18] Production.INFO: count ==404 [2024-12-24 08:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:33:05 - End Time 2024-12-24 08:33:05 [2024-12-24 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090981', 'tblTempUsageDetail_20' ) start [2024-12-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090981', 'tblTempUsageDetail_20' ) end [2024-12-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090981', 'tblTempVendorCDR_20' ) start [2024-12-24 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090981', 'tblTempVendorCDR_20' ) end [2024-12-24 08:33:18] Production.INFO: ProcessCDR(1,14090981,1,1,2) [2024-12-24 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090981', 'tblTempUsageDetail_20' ) start [2024-12-24 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090981', 'tblTempUsageDetail_20' ) end [2024-12-24 08:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:33:21] Production.INFO: ==30239== Releasing lock... [2024-12-24 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:33:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-24 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:34:04 [end_date_ymd] => 2024-12-24 08:34:04 [RateCDR] => 1 ) [2024-12-24 08: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` >= '2024-12-24 05:34:04' and `end` < '2024-12-24 08: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 ,'') [2024-12-24 08:34:17] Production.INFO: count ==417 [2024-12-24 08:34:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:34:04 - End Time 2024-12-24 08:34:04 [2024-12-24 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090986', 'tblTempUsageDetail_20' ) start [2024-12-24 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090986', 'tblTempUsageDetail_20' ) end [2024-12-24 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090986', 'tblTempVendorCDR_20' ) start [2024-12-24 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090986', 'tblTempVendorCDR_20' ) end [2024-12-24 08:34:17] Production.INFO: ProcessCDR(1,14090986,1,1,2) [2024-12-24 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090986', 'tblTempUsageDetail_20' ) start [2024-12-24 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090986', 'tblTempUsageDetail_20' ) end [2024-12-24 08:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:34:20] Production.INFO: ==30314== Releasing lock... [2024-12-24 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:34:20] Production.INFO: 32 MB #Memory Used# [2024-12-24 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:35:05 [end_date_ymd] => 2024-12-24 08:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:35:17] Production.INFO: count ==430 [2024-12-24 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:35:05 - End Time 2024-12-24 08:35:05 [2024-12-24 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090991', 'tblTempUsageDetail_20' ) start [2024-12-24 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090991', 'tblTempUsageDetail_20' ) end [2024-12-24 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090991', 'tblTempVendorCDR_20' ) start [2024-12-24 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090991', 'tblTempVendorCDR_20' ) end [2024-12-24 08:35:17] Production.INFO: ProcessCDR(1,14090991,1,1,2) [2024-12-24 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090991', 'tblTempUsageDetail_20' ) start [2024-12-24 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090991', 'tblTempUsageDetail_20' ) end [2024-12-24 08:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:35:22] Production.INFO: ==30392== Releasing lock... [2024-12-24 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:35:22] Production.INFO: 32 MB #Memory Used# [2024-12-24 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:36:05 [end_date_ymd] => 2024-12-24 08:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:36:17] Production.INFO: count ==433 [2024-12-24 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:36:05 - End Time 2024-12-24 08:36:05 [2024-12-24 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090996', 'tblTempUsageDetail_20' ) start [2024-12-24 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14090996', 'tblTempUsageDetail_20' ) end [2024-12-24 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090996', 'tblTempVendorCDR_20' ) start [2024-12-24 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14090996', 'tblTempVendorCDR_20' ) end [2024-12-24 08:36:17] Production.INFO: ProcessCDR(1,14090996,1,1,2) [2024-12-24 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14090996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14090996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14090996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14090996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090996', 'tblTempUsageDetail_20' ) start [2024-12-24 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14090996', 'tblTempUsageDetail_20' ) end [2024-12-24 08:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:36:21] Production.INFO: ==30467== Releasing lock... [2024-12-24 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:36:21] Production.INFO: 32 MB #Memory Used# [2024-12-24 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:37:05 [end_date_ymd] => 2024-12-24 08:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:37:17] Production.INFO: count ==439 [2024-12-24 08:37:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:37:05 - End Time 2024-12-24 08:37:05 [2024-12-24 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091001', 'tblTempUsageDetail_20' ) start [2024-12-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091001', 'tblTempUsageDetail_20' ) end [2024-12-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091001', 'tblTempVendorCDR_20' ) start [2024-12-24 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091001', 'tblTempVendorCDR_20' ) end [2024-12-24 08:37:17] Production.INFO: ProcessCDR(1,14091001,1,1,2) [2024-12-24 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091001', 'tblTempUsageDetail_20' ) start [2024-12-24 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091001', 'tblTempUsageDetail_20' ) end [2024-12-24 08:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:37:22] Production.INFO: ==30580== Releasing lock... [2024-12-24 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:37:22] Production.INFO: 32 MB #Memory Used# [2024-12-24 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:38:05 [end_date_ymd] => 2024-12-24 08:38:05 [RateCDR] => 1 ) [2024-12-24 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:38:05' and `end` < '2024-12-24 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:38:18] Production.INFO: count ==451 [2024-12-24 08:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:38:05 - End Time 2024-12-24 08:38:05 [2024-12-24 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091006', 'tblTempUsageDetail_20' ) start [2024-12-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091006', 'tblTempUsageDetail_20' ) end [2024-12-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091006', 'tblTempVendorCDR_20' ) start [2024-12-24 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091006', 'tblTempVendorCDR_20' ) end [2024-12-24 08:38:18] Production.INFO: ProcessCDR(1,14091006,1,1,2) [2024-12-24 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091006', 'tblTempUsageDetail_20' ) start [2024-12-24 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091006', 'tblTempUsageDetail_20' ) end [2024-12-24 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:38:21] Production.INFO: ==30660== Releasing lock... [2024-12-24 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:38:21] Production.INFO: 32 MB #Memory Used# [2024-12-24 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:39:04 [end_date_ymd] => 2024-12-24 08:39:04 [RateCDR] => 1 ) [2024-12-24 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:39:04' and `end` < '2024-12-24 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:39:18] Production.INFO: count ==454 [2024-12-24 08:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:39:04 - End Time 2024-12-24 08:39:04 [2024-12-24 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091011', 'tblTempUsageDetail_20' ) start [2024-12-24 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091011', 'tblTempUsageDetail_20' ) end [2024-12-24 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091011', 'tblTempVendorCDR_20' ) start [2024-12-24 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091011', 'tblTempVendorCDR_20' ) end [2024-12-24 08:39:18] Production.INFO: ProcessCDR(1,14091011,1,1,2) [2024-12-24 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091011', 'tblTempUsageDetail_20' ) start [2024-12-24 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091011', 'tblTempUsageDetail_20' ) end [2024-12-24 08:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:39:22] Production.INFO: ==30733== Releasing lock... [2024-12-24 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:39:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-24 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:40:05 [end_date_ymd] => 2024-12-24 08:40:05 [RateCDR] => 1 ) [2024-12-24 08: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` >= '2024-12-24 05:40:05' and `end` < '2024-12-24 08: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 ,'') [2024-12-24 08:40:17] Production.INFO: count ==475 [2024-12-24 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:40:05 - End Time 2024-12-24 08:40:05 [2024-12-24 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091016', 'tblTempUsageDetail_20' ) start [2024-12-24 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091016', 'tblTempUsageDetail_20' ) end [2024-12-24 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091016', 'tblTempVendorCDR_20' ) start [2024-12-24 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091016', 'tblTempVendorCDR_20' ) end [2024-12-24 08:40:18] Production.INFO: ProcessCDR(1,14091016,1,1,2) [2024-12-24 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091016', 'tblTempUsageDetail_20' ) start [2024-12-24 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091016', 'tblTempUsageDetail_20' ) end [2024-12-24 08:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:40:22] Production.INFO: ==30812== Releasing lock... [2024-12-24 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:40:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-24 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:41:04 [end_date_ymd] => 2024-12-24 08:41:04 [RateCDR] => 1 ) [2024-12-24 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:41:04' and `end` < '2024-12-24 08:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:41:17] Production.INFO: count ==503 [2024-12-24 08:41:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:41:04 - End Time 2024-12-24 08:41:04 [2024-12-24 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091022', 'tblTempUsageDetail_20' ) start [2024-12-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091022', 'tblTempUsageDetail_20' ) end [2024-12-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091022', 'tblTempVendorCDR_20' ) start [2024-12-24 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091022', 'tblTempVendorCDR_20' ) end [2024-12-24 08:41:17] Production.INFO: ProcessCDR(1,14091022,1,1,2) [2024-12-24 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091022', 'tblTempUsageDetail_20' ) start [2024-12-24 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091022', 'tblTempUsageDetail_20' ) end [2024-12-24 08:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:41:20] Production.INFO: ==30889== Releasing lock... [2024-12-24 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:41:20] Production.INFO: 32 MB #Memory Used# [2024-12-24 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:42:05 [end_date_ymd] => 2024-12-24 08:42:05 [RateCDR] => 1 ) [2024-12-24 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:42:05' and `end` < '2024-12-24 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:42:18] Production.INFO: count ==506 [2024-12-24 08:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:42:05 - End Time 2024-12-24 08:42:05 [2024-12-24 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091027', 'tblTempUsageDetail_20' ) start [2024-12-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091027', 'tblTempUsageDetail_20' ) end [2024-12-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091027', 'tblTempVendorCDR_20' ) start [2024-12-24 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091027', 'tblTempVendorCDR_20' ) end [2024-12-24 08:42:18] Production.INFO: ProcessCDR(1,14091027,1,1,2) [2024-12-24 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091027', 'tblTempUsageDetail_20' ) start [2024-12-24 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091027', 'tblTempUsageDetail_20' ) end [2024-12-24 08:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:42:23] Production.INFO: ==30968== Releasing lock... [2024-12-24 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:42:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-24 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:43:05 [end_date_ymd] => 2024-12-24 08:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:43:17] Production.INFO: count ==514 [2024-12-24 08:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:43:05 - End Time 2024-12-24 08:43:05 [2024-12-24 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091032', 'tblTempUsageDetail_20' ) start [2024-12-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091032', 'tblTempUsageDetail_20' ) end [2024-12-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091032', 'tblTempVendorCDR_20' ) start [2024-12-24 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091032', 'tblTempVendorCDR_20' ) end [2024-12-24 08:43:18] Production.INFO: ProcessCDR(1,14091032,1,1,2) [2024-12-24 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091032', 'tblTempUsageDetail_20' ) start [2024-12-24 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091032', 'tblTempUsageDetail_20' ) end [2024-12-24 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:43:21] Production.INFO: ==31042== Releasing lock... [2024-12-24 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:43:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-24 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:44:05 [end_date_ymd] => 2024-12-24 08:44:05 [RateCDR] => 1 ) [2024-12-24 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:44:05' and `end` < '2024-12-24 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:44:17] Production.INFO: count ==526 [2024-12-24 08:44:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:44:05 - End Time 2024-12-24 08:44:05 [2024-12-24 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091037', 'tblTempUsageDetail_20' ) start [2024-12-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091037', 'tblTempUsageDetail_20' ) end [2024-12-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091037', 'tblTempVendorCDR_20' ) start [2024-12-24 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091037', 'tblTempVendorCDR_20' ) end [2024-12-24 08:44:17] Production.INFO: ProcessCDR(1,14091037,1,1,2) [2024-12-24 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091037', 'tblTempUsageDetail_20' ) start [2024-12-24 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091037', 'tblTempUsageDetail_20' ) end [2024-12-24 08:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:44:22] Production.INFO: ==31120== Releasing lock... [2024-12-24 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:44:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-24 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:45:05 [end_date_ymd] => 2024-12-24 08:45:05 [RateCDR] => 1 ) [2024-12-24 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:45:05' and `end` < '2024-12-24 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:45:18] Production.INFO: count ==532 [2024-12-24 08:45:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:45:05 - End Time 2024-12-24 08:45:05 [2024-12-24 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091042', 'tblTempUsageDetail_20' ) start [2024-12-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091042', 'tblTempUsageDetail_20' ) end [2024-12-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091042', 'tblTempVendorCDR_20' ) start [2024-12-24 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091042', 'tblTempVendorCDR_20' ) end [2024-12-24 08:45:18] Production.INFO: ProcessCDR(1,14091042,1,1,2) [2024-12-24 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091042', 'tblTempUsageDetail_20' ) start [2024-12-24 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091042', 'tblTempUsageDetail_20' ) end [2024-12-24 08:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:45:22] Production.INFO: ==31198== Releasing lock... [2024-12-24 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:45:22] Production.INFO: 33 MB #Memory Used# [2024-12-24 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:46:05 [end_date_ymd] => 2024-12-24 08:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:46:18] Production.INFO: count ==547 [2024-12-24 08:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:46:05 - End Time 2024-12-24 08:46:05 [2024-12-24 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091047', 'tblTempUsageDetail_20' ) start [2024-12-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091047', 'tblTempUsageDetail_20' ) end [2024-12-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091047', 'tblTempVendorCDR_20' ) start [2024-12-24 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091047', 'tblTempVendorCDR_20' ) end [2024-12-24 08:46:18] Production.INFO: ProcessCDR(1,14091047,1,1,2) [2024-12-24 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091047', 'tblTempUsageDetail_20' ) start [2024-12-24 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091047', 'tblTempUsageDetail_20' ) end [2024-12-24 08:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:46:23] Production.INFO: ==31275== Releasing lock... [2024-12-24 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:46:23] Production.INFO: 33 MB #Memory Used# [2024-12-24 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:47:05 [end_date_ymd] => 2024-12-24 08:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:47:18] Production.INFO: count ==552 [2024-12-24 08:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:47:05 - End Time 2024-12-24 08:47:05 [2024-12-24 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091052', 'tblTempUsageDetail_20' ) start [2024-12-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091052', 'tblTempUsageDetail_20' ) end [2024-12-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091052', 'tblTempVendorCDR_20' ) start [2024-12-24 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091052', 'tblTempVendorCDR_20' ) end [2024-12-24 08:47:18] Production.INFO: ProcessCDR(1,14091052,1,1,2) [2024-12-24 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091052', 'tblTempUsageDetail_20' ) start [2024-12-24 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091052', 'tblTempUsageDetail_20' ) end [2024-12-24 08:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:47:21] Production.INFO: ==31353== Releasing lock... [2024-12-24 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:47:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-24 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:48:04 [end_date_ymd] => 2024-12-24 08:48:04 [RateCDR] => 1 ) [2024-12-24 08:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:48:04' and `end` < '2024-12-24 08:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:48:16] Production.INFO: count ==552 [2024-12-24 08:48:16] Production.ERROR: pbx CDR StartTime 2024-12-24 05:48:04 - End Time 2024-12-24 08:48:04 [2024-12-24 08:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091057', 'tblTempUsageDetail_20' ) start [2024-12-24 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091057', 'tblTempUsageDetail_20' ) end [2024-12-24 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091057', 'tblTempVendorCDR_20' ) start [2024-12-24 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091057', 'tblTempVendorCDR_20' ) end [2024-12-24 08:48:16] Production.INFO: ProcessCDR(1,14091057,1,1,2) [2024-12-24 08:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091057', 'tblTempUsageDetail_20' ) start [2024-12-24 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091057', 'tblTempUsageDetail_20' ) end [2024-12-24 08:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:48:20] Production.INFO: ==31429== Releasing lock... [2024-12-24 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:48:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-24 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:49:05 [end_date_ymd] => 2024-12-24 08:49:05 [RateCDR] => 1 ) [2024-12-24 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:49:05' and `end` < '2024-12-24 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:49:18] Production.INFO: count ==553 [2024-12-24 08:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:49:05 - End Time 2024-12-24 08:49:05 [2024-12-24 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091062', 'tblTempUsageDetail_20' ) start [2024-12-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091062', 'tblTempUsageDetail_20' ) end [2024-12-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091062', 'tblTempVendorCDR_20' ) start [2024-12-24 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091062', 'tblTempVendorCDR_20' ) end [2024-12-24 08:49:18] Production.INFO: ProcessCDR(1,14091062,1,1,2) [2024-12-24 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091062', 'tblTempUsageDetail_20' ) start [2024-12-24 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091062', 'tblTempUsageDetail_20' ) end [2024-12-24 08:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:49:22] Production.INFO: ==31508== Releasing lock... [2024-12-24 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:49:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-24 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:50:05 [end_date_ymd] => 2024-12-24 08:50:05 [RateCDR] => 1 ) [2024-12-24 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:50:05' and `end` < '2024-12-24 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:50:18] Production.INFO: count ==560 [2024-12-24 08:50:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:50:05 - End Time 2024-12-24 08:50:05 [2024-12-24 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091068', 'tblTempUsageDetail_20' ) start [2024-12-24 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091068', 'tblTempUsageDetail_20' ) end [2024-12-24 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091068', 'tblTempVendorCDR_20' ) start [2024-12-24 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091068', 'tblTempVendorCDR_20' ) end [2024-12-24 08:50:18] Production.INFO: ProcessCDR(1,14091068,1,1,2) [2024-12-24 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091068', 'tblTempUsageDetail_20' ) start [2024-12-24 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091068', 'tblTempUsageDetail_20' ) end [2024-12-24 08:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:50:23] Production.INFO: ==31582== Releasing lock... [2024-12-24 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:50:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-24 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:51:06 [end_date_ymd] => 2024-12-24 08:51:06 [RateCDR] => 1 ) [2024-12-24 08: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` >= '2024-12-24 05:51:06' and `end` < '2024-12-24 08: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 ,'') [2024-12-24 08:51:18] Production.INFO: count ==585 [2024-12-24 08:51:19] Production.ERROR: pbx CDR StartTime 2024-12-24 05:51:06 - End Time 2024-12-24 08:51:06 [2024-12-24 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091073', 'tblTempUsageDetail_20' ) start [2024-12-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091073', 'tblTempUsageDetail_20' ) end [2024-12-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091073', 'tblTempVendorCDR_20' ) start [2024-12-24 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091073', 'tblTempVendorCDR_20' ) end [2024-12-24 08:51:19] Production.INFO: ProcessCDR(1,14091073,1,1,2) [2024-12-24 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091073', 'tblTempUsageDetail_20' ) start [2024-12-24 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091073', 'tblTempUsageDetail_20' ) end [2024-12-24 08:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:51:22] Production.INFO: ==31664== Releasing lock... [2024-12-24 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:51:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-24 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:52:05 [end_date_ymd] => 2024-12-24 08:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:52:18] Production.INFO: count ==587 [2024-12-24 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:52:05 - End Time 2024-12-24 08:52:05 [2024-12-24 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091078', 'tblTempUsageDetail_20' ) start [2024-12-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091078', 'tblTempUsageDetail_20' ) end [2024-12-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091078', 'tblTempVendorCDR_20' ) start [2024-12-24 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091078', 'tblTempVendorCDR_20' ) end [2024-12-24 08:52:18] Production.INFO: ProcessCDR(1,14091078,1,1,2) [2024-12-24 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091078', 'tblTempUsageDetail_20' ) start [2024-12-24 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091078', 'tblTempUsageDetail_20' ) end [2024-12-24 08:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:52:21] Production.INFO: ==31738== Releasing lock... [2024-12-24 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:52:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-24 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:53:05 [end_date_ymd] => 2024-12-24 08:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:53:17] Production.INFO: count ==600 [2024-12-24 08:53:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:53:05 - End Time 2024-12-24 08:53:05 [2024-12-24 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091083', 'tblTempUsageDetail_20' ) start [2024-12-24 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091083', 'tblTempUsageDetail_20' ) end [2024-12-24 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091083', 'tblTempVendorCDR_20' ) start [2024-12-24 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091083', 'tblTempVendorCDR_20' ) end [2024-12-24 08:53:17] Production.INFO: ProcessCDR(1,14091083,1,1,2) [2024-12-24 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091083', 'tblTempUsageDetail_20' ) start [2024-12-24 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091083', 'tblTempUsageDetail_20' ) end [2024-12-24 08:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:53:22] Production.INFO: ==31860== Releasing lock... [2024-12-24 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:53:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-24 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:54:05 [end_date_ymd] => 2024-12-24 08:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:54:17] Production.INFO: count ==600 [2024-12-24 08:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:54:05 - End Time 2024-12-24 08:54:05 [2024-12-24 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091088', 'tblTempUsageDetail_20' ) start [2024-12-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091088', 'tblTempUsageDetail_20' ) end [2024-12-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091088', 'tblTempVendorCDR_20' ) start [2024-12-24 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091088', 'tblTempVendorCDR_20' ) end [2024-12-24 08:54:18] Production.INFO: ProcessCDR(1,14091088,1,1,2) [2024-12-24 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091088', 'tblTempUsageDetail_20' ) start [2024-12-24 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091088', 'tblTempUsageDetail_20' ) end [2024-12-24 08:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:54:21] Production.INFO: ==31936== Releasing lock... [2024-12-24 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:54:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-24 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:55:05 [end_date_ymd] => 2024-12-24 08:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:55:18] Production.INFO: count ==602 [2024-12-24 08:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:55:05 - End Time 2024-12-24 08:55:05 [2024-12-24 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091093', 'tblTempUsageDetail_20' ) start [2024-12-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091093', 'tblTempUsageDetail_20' ) end [2024-12-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091093', 'tblTempVendorCDR_20' ) start [2024-12-24 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091093', 'tblTempVendorCDR_20' ) end [2024-12-24 08:55:18] Production.INFO: ProcessCDR(1,14091093,1,1,2) [2024-12-24 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091093', 'tblTempUsageDetail_20' ) start [2024-12-24 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091093', 'tblTempUsageDetail_20' ) end [2024-12-24 08:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:55:23] Production.INFO: ==32009== Releasing lock... [2024-12-24 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:55:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-24 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:56:05 [end_date_ymd] => 2024-12-24 08:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:56:18] Production.INFO: count ==604 [2024-12-24 08:56:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:56:05 - End Time 2024-12-24 08:56:05 [2024-12-24 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091098', 'tblTempUsageDetail_20' ) start [2024-12-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091098', 'tblTempUsageDetail_20' ) end [2024-12-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091098', 'tblTempVendorCDR_20' ) start [2024-12-24 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091098', 'tblTempVendorCDR_20' ) end [2024-12-24 08:56:18] Production.INFO: ProcessCDR(1,14091098,1,1,2) [2024-12-24 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091098', 'tblTempUsageDetail_20' ) start [2024-12-24 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091098', 'tblTempUsageDetail_20' ) end [2024-12-24 08:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:56:22] Production.INFO: ==32085== Releasing lock... [2024-12-24 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:56:22] Production.INFO: 33 MB #Memory Used# [2024-12-24 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:57:05 [end_date_ymd] => 2024-12-24 08:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:57:18] Production.INFO: count ==611 [2024-12-24 08:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 05:57:05 - End Time 2024-12-24 08:57:05 [2024-12-24 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091103', 'tblTempUsageDetail_20' ) start [2024-12-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091103', 'tblTempUsageDetail_20' ) end [2024-12-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091103', 'tblTempVendorCDR_20' ) start [2024-12-24 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091103', 'tblTempVendorCDR_20' ) end [2024-12-24 08:57:18] Production.INFO: ProcessCDR(1,14091103,1,1,2) [2024-12-24 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091103', 'tblTempUsageDetail_20' ) start [2024-12-24 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091103', 'tblTempUsageDetail_20' ) end [2024-12-24 08:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:57:22] Production.INFO: ==32160== Releasing lock... [2024-12-24 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:57:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-24 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:58:04 [end_date_ymd] => 2024-12-24 08:58:04 [RateCDR] => 1 ) [2024-12-24 08:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 05:58:04' and `end` < '2024-12-24 08:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 08:58:17] Production.INFO: count ==618 [2024-12-24 08:58:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:58:04 - End Time 2024-12-24 08:58:04 [2024-12-24 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091108', 'tblTempUsageDetail_20' ) start [2024-12-24 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091108', 'tblTempUsageDetail_20' ) end [2024-12-24 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091108', 'tblTempVendorCDR_20' ) start [2024-12-24 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091108', 'tblTempVendorCDR_20' ) end [2024-12-24 08:58:17] Production.INFO: ProcessCDR(1,14091108,1,1,2) [2024-12-24 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091108', 'tblTempUsageDetail_20' ) start [2024-12-24 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091108', 'tblTempUsageDetail_20' ) end [2024-12-24 08:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:58:21] Production.INFO: ==32235== Releasing lock... [2024-12-24 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:58:21] Production.INFO: 33 MB #Memory Used# [2024-12-24 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 05:59:05 [end_date_ymd] => 2024-12-24 08:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 05:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 08:59:17] Production.INFO: count ==635 [2024-12-24 08:59:17] Production.ERROR: pbx CDR StartTime 2024-12-24 05:59:05 - End Time 2024-12-24 08:59:05 [2024-12-24 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091113', 'tblTempUsageDetail_20' ) start [2024-12-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091113', 'tblTempUsageDetail_20' ) end [2024-12-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091113', 'tblTempVendorCDR_20' ) start [2024-12-24 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091113', 'tblTempVendorCDR_20' ) end [2024-12-24 08:59:18] Production.INFO: ProcessCDR(1,14091113,1,1,2) [2024-12-24 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091113', 'tblTempUsageDetail_20' ) start [2024-12-24 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091113', 'tblTempUsageDetail_20' ) end [2024-12-24 08:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 08:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 08:59:22] Production.INFO: ==32315== Releasing lock... [2024-12-24 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 08:59:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-24 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:00:05 [end_date_ymd] => 2024-12-24 09:00:05 [RateCDR] => 1 ) [2024-12-24 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:00:05' and `end` < '2024-12-24 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:00:18] Production.INFO: count ==643 [2024-12-24 09:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:00:05 - End Time 2024-12-24 09:00:05 [2024-12-24 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091119', 'tblTempUsageDetail_20' ) start [2024-12-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091119', 'tblTempUsageDetail_20' ) end [2024-12-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091119', 'tblTempVendorCDR_20' ) start [2024-12-24 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091119', 'tblTempVendorCDR_20' ) end [2024-12-24 09:00:18] Production.INFO: ProcessCDR(1,14091119,1,1,2) [2024-12-24 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091119', 'tblTempUsageDetail_20' ) start [2024-12-24 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091119', 'tblTempUsageDetail_20' ) end [2024-12-24 09:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:00:23] Production.INFO: ==32392== Releasing lock... [2024-12-24 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:00:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-24 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:01:05 [end_date_ymd] => 2024-12-24 09:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:01:18] Production.INFO: count ==672 [2024-12-24 09:01:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:01:05 - End Time 2024-12-24 09:01:05 [2024-12-24 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091124', 'tblTempUsageDetail_20' ) start [2024-12-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091124', 'tblTempUsageDetail_20' ) end [2024-12-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091124', 'tblTempVendorCDR_20' ) start [2024-12-24 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091124', 'tblTempVendorCDR_20' ) end [2024-12-24 09:01:18] Production.INFO: ProcessCDR(1,14091124,1,1,2) [2024-12-24 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091124', 'tblTempUsageDetail_20' ) start [2024-12-24 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091124', 'tblTempUsageDetail_20' ) end [2024-12-24 09:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:01:22] Production.INFO: ==32488== Releasing lock... [2024-12-24 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:01:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-24 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:02:05 [end_date_ymd] => 2024-12-24 09:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:02:18] Production.INFO: count ==679 [2024-12-24 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:02:05 - End Time 2024-12-24 09:02:05 [2024-12-24 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091129', 'tblTempUsageDetail_20' ) start [2024-12-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091129', 'tblTempUsageDetail_20' ) end [2024-12-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091129', 'tblTempVendorCDR_20' ) start [2024-12-24 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091129', 'tblTempVendorCDR_20' ) end [2024-12-24 09:02:18] Production.INFO: ProcessCDR(1,14091129,1,1,2) [2024-12-24 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091129', 'tblTempUsageDetail_20' ) start [2024-12-24 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091129', 'tblTempUsageDetail_20' ) end [2024-12-24 09:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:02:21] Production.INFO: ==32563== Releasing lock... [2024-12-24 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:02:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-24 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:03:05 [end_date_ymd] => 2024-12-24 09:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:03:18] Production.INFO: count ==697 [2024-12-24 09:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:03:05 - End Time 2024-12-24 09:03:05 [2024-12-24 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091134', 'tblTempUsageDetail_20' ) start [2024-12-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091134', 'tblTempUsageDetail_20' ) end [2024-12-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091134', 'tblTempVendorCDR_20' ) start [2024-12-24 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091134', 'tblTempVendorCDR_20' ) end [2024-12-24 09:03:18] Production.INFO: ProcessCDR(1,14091134,1,1,2) [2024-12-24 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091134', 'tblTempUsageDetail_20' ) start [2024-12-24 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091134', 'tblTempUsageDetail_20' ) end [2024-12-24 09:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:03:23] Production.INFO: ==32643== Releasing lock... [2024-12-24 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:03:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-24 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:04:05 [end_date_ymd] => 2024-12-24 09:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:04:17] Production.INFO: count ==705 [2024-12-24 09:04:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:04:05 - End Time 2024-12-24 09:04:05 [2024-12-24 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091139', 'tblTempUsageDetail_20' ) start [2024-12-24 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091139', 'tblTempUsageDetail_20' ) end [2024-12-24 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091139', 'tblTempVendorCDR_20' ) start [2024-12-24 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091139', 'tblTempVendorCDR_20' ) end [2024-12-24 09:04:17] Production.INFO: ProcessCDR(1,14091139,1,1,2) [2024-12-24 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091139', 'tblTempUsageDetail_20' ) start [2024-12-24 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091139', 'tblTempUsageDetail_20' ) end [2024-12-24 09:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:04:21] Production.INFO: ==32720== Releasing lock... [2024-12-24 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:04:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-24 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:05:04 [end_date_ymd] => 2024-12-24 09:05:04 [RateCDR] => 1 ) [2024-12-24 09:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:05:04' and `end` < '2024-12-24 09:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:05:17] Production.INFO: count ==707 [2024-12-24 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:05:04 - End Time 2024-12-24 09:05:04 [2024-12-24 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091144', 'tblTempUsageDetail_20' ) start [2024-12-24 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091144', 'tblTempUsageDetail_20' ) end [2024-12-24 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091144', 'tblTempVendorCDR_20' ) start [2024-12-24 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091144', 'tblTempVendorCDR_20' ) end [2024-12-24 09:05:17] Production.INFO: ProcessCDR(1,14091144,1,1,2) [2024-12-24 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091144', 'tblTempUsageDetail_20' ) start [2024-12-24 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091144', 'tblTempUsageDetail_20' ) end [2024-12-24 09:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:05:22] Production.INFO: ==335== Releasing lock... [2024-12-24 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:05:22] Production.INFO: 34 MB #Memory Used# [2024-12-24 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:06:05 [end_date_ymd] => 2024-12-24 09:06:05 [RateCDR] => 1 ) [2024-12-24 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:06:05' and `end` < '2024-12-24 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:06:18] Production.INFO: count ==714 [2024-12-24 09:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:06:05 - End Time 2024-12-24 09:06:05 [2024-12-24 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091149', 'tblTempUsageDetail_20' ) start [2024-12-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091149', 'tblTempUsageDetail_20' ) end [2024-12-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091149', 'tblTempVendorCDR_20' ) start [2024-12-24 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091149', 'tblTempVendorCDR_20' ) end [2024-12-24 09:06:19] Production.INFO: ProcessCDR(1,14091149,1,1,2) [2024-12-24 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091149', 'tblTempUsageDetail_20' ) start [2024-12-24 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091149', 'tblTempUsageDetail_20' ) end [2024-12-24 09:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:06:22] Production.INFO: ==423== Releasing lock... [2024-12-24 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:06:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-24 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:07:05 [end_date_ymd] => 2024-12-24 09:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:07:17] Production.INFO: count ==722 [2024-12-24 09:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:07:05 - End Time 2024-12-24 09:07:05 [2024-12-24 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091154', 'tblTempUsageDetail_20' ) start [2024-12-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091154', 'tblTempUsageDetail_20' ) end [2024-12-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091154', 'tblTempVendorCDR_20' ) start [2024-12-24 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091154', 'tblTempVendorCDR_20' ) end [2024-12-24 09:07:18] Production.INFO: ProcessCDR(1,14091154,1,1,2) [2024-12-24 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091154', 'tblTempUsageDetail_20' ) start [2024-12-24 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091154', 'tblTempUsageDetail_20' ) end [2024-12-24 09:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:07:22] Production.INFO: ==498== Releasing lock... [2024-12-24 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:07:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-24 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:08:06 [end_date_ymd] => 2024-12-24 09:08:06 [RateCDR] => 1 ) [2024-12-24 09: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` >= '2024-12-24 06:08:06' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:08:18] Production.INFO: count ==723 [2024-12-24 09:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:08:06 - End Time 2024-12-24 09:08:06 [2024-12-24 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091159', 'tblTempUsageDetail_20' ) start [2024-12-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091159', 'tblTempUsageDetail_20' ) end [2024-12-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091159', 'tblTempVendorCDR_20' ) start [2024-12-24 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091159', 'tblTempVendorCDR_20' ) end [2024-12-24 09:08:18] Production.INFO: ProcessCDR(1,14091159,1,1,2) [2024-12-24 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091159', 'tblTempUsageDetail_20' ) start [2024-12-24 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091159', 'tblTempUsageDetail_20' ) end [2024-12-24 09:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:08:22] Production.INFO: ==573== Releasing lock... [2024-12-24 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:08:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-24 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:09:05 [end_date_ymd] => 2024-12-24 09:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:09:17] Production.INFO: count ==747 [2024-12-24 09:09:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:09:05 - End Time 2024-12-24 09:09:05 [2024-12-24 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091164', 'tblTempUsageDetail_20' ) start [2024-12-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091164', 'tblTempUsageDetail_20' ) end [2024-12-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091164', 'tblTempVendorCDR_20' ) start [2024-12-24 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091164', 'tblTempVendorCDR_20' ) end [2024-12-24 09:09:18] Production.INFO: ProcessCDR(1,14091164,1,1,2) [2024-12-24 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091164', 'tblTempUsageDetail_20' ) start [2024-12-24 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091164', 'tblTempUsageDetail_20' ) end [2024-12-24 09:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:09:21] Production.INFO: ==715== Releasing lock... [2024-12-24 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:09:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-24 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:10:05 [end_date_ymd] => 2024-12-24 09:10:05 [RateCDR] => 1 ) [2024-12-24 09: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` >= '2024-12-24 06:10:05' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:10:17] Production.INFO: count ==771 [2024-12-24 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:10:05 - End Time 2024-12-24 09:10:05 [2024-12-24 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091170', 'tblTempUsageDetail_20' ) start [2024-12-24 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091170', 'tblTempUsageDetail_20' ) end [2024-12-24 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091170', 'tblTempVendorCDR_20' ) start [2024-12-24 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091170', 'tblTempVendorCDR_20' ) end [2024-12-24 09:10:18] Production.INFO: ProcessCDR(1,14091170,1,1,2) [2024-12-24 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091170', 'tblTempUsageDetail_20' ) start [2024-12-24 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091170', 'tblTempUsageDetail_20' ) end [2024-12-24 09:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:10:21] Production.INFO: ==798== Releasing lock... [2024-12-24 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:10:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-24 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:11:05 [end_date_ymd] => 2024-12-24 09:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:11:17] Production.INFO: count ==828 [2024-12-24 09:11:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:11:05 - End Time 2024-12-24 09:11:05 [2024-12-24 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091175', 'tblTempUsageDetail_20' ) start [2024-12-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091175', 'tblTempUsageDetail_20' ) end [2024-12-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091175', 'tblTempVendorCDR_20' ) start [2024-12-24 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091175', 'tblTempVendorCDR_20' ) end [2024-12-24 09:11:17] Production.INFO: ProcessCDR(1,14091175,1,1,2) [2024-12-24 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091175', 'tblTempUsageDetail_20' ) start [2024-12-24 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091175', 'tblTempUsageDetail_20' ) end [2024-12-24 09:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:11:22] Production.INFO: ==874== Releasing lock... [2024-12-24 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:11:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-24 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:12:05 [end_date_ymd] => 2024-12-24 09:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:12:18] Production.INFO: count ==835 [2024-12-24 09:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:12:05 - End Time 2024-12-24 09:12:05 [2024-12-24 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091180', 'tblTempUsageDetail_20' ) start [2024-12-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091180', 'tblTempUsageDetail_20' ) end [2024-12-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091180', 'tblTempVendorCDR_20' ) start [2024-12-24 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091180', 'tblTempVendorCDR_20' ) end [2024-12-24 09:12:18] Production.INFO: ProcessCDR(1,14091180,1,1,2) [2024-12-24 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091180', 'tblTempUsageDetail_20' ) start [2024-12-24 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091180', 'tblTempUsageDetail_20' ) end [2024-12-24 09:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:12:23] Production.INFO: ==946== Releasing lock... [2024-12-24 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:12:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-24 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:13:05 [end_date_ymd] => 2024-12-24 09:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:13:17] Production.INFO: count ==878 [2024-12-24 09:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:13:05 - End Time 2024-12-24 09:13:05 [2024-12-24 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091185', 'tblTempUsageDetail_20' ) start [2024-12-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091185', 'tblTempUsageDetail_20' ) end [2024-12-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091185', 'tblTempVendorCDR_20' ) start [2024-12-24 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091185', 'tblTempVendorCDR_20' ) end [2024-12-24 09:13:18] Production.INFO: ProcessCDR(1,14091185,1,1,2) [2024-12-24 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091185', 'tblTempUsageDetail_20' ) start [2024-12-24 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091185', 'tblTempUsageDetail_20' ) end [2024-12-24 09:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:13:22] Production.INFO: ==1020== Releasing lock... [2024-12-24 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:13:22] Production.INFO: 35 MB #Memory Used# [2024-12-24 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:14:05 [end_date_ymd] => 2024-12-24 09:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:14:18] Production.INFO: count ==894 [2024-12-24 09:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:14:05 - End Time 2024-12-24 09:14:05 [2024-12-24 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091190', 'tblTempUsageDetail_20' ) start [2024-12-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091190', 'tblTempUsageDetail_20' ) end [2024-12-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091190', 'tblTempVendorCDR_20' ) start [2024-12-24 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091190', 'tblTempVendorCDR_20' ) end [2024-12-24 09:14:18] Production.INFO: ProcessCDR(1,14091190,1,1,2) [2024-12-24 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091190', 'tblTempUsageDetail_20' ) start [2024-12-24 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091190', 'tblTempUsageDetail_20' ) end [2024-12-24 09:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:14:23] Production.INFO: ==1094== Releasing lock... [2024-12-24 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:14:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-24 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:15:05 [end_date_ymd] => 2024-12-24 09:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:15:17] Production.INFO: count ==907 [2024-12-24 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:15:05 - End Time 2024-12-24 09:15:05 [2024-12-24 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091195', 'tblTempUsageDetail_20' ) start [2024-12-24 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091195', 'tblTempUsageDetail_20' ) end [2024-12-24 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091195', 'tblTempVendorCDR_20' ) start [2024-12-24 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091195', 'tblTempVendorCDR_20' ) end [2024-12-24 09:15:17] Production.INFO: ProcessCDR(1,14091195,1,1,2) [2024-12-24 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091195', 'tblTempUsageDetail_20' ) start [2024-12-24 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091195', 'tblTempUsageDetail_20' ) end [2024-12-24 09:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:15:21] Production.INFO: ==1178== Releasing lock... [2024-12-24 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:15:21] Production.INFO: 35 MB #Memory Used# [2024-12-24 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:16:05 [end_date_ymd] => 2024-12-24 09:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:16:17] Production.INFO: count ==938 [2024-12-24 09:16:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:16:05 - End Time 2024-12-24 09:16:05 [2024-12-24 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091200', 'tblTempUsageDetail_20' ) start [2024-12-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091200', 'tblTempUsageDetail_20' ) end [2024-12-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091200', 'tblTempVendorCDR_20' ) start [2024-12-24 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091200', 'tblTempVendorCDR_20' ) end [2024-12-24 09:16:18] Production.INFO: ProcessCDR(1,14091200,1,1,2) [2024-12-24 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091200', 'tblTempUsageDetail_20' ) start [2024-12-24 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091200', 'tblTempUsageDetail_20' ) end [2024-12-24 09:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:16:22] Production.INFO: ==1263== Releasing lock... [2024-12-24 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:16:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-24 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:17:04 [end_date_ymd] => 2024-12-24 09:17:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:17:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:17:17] Production.INFO: count ==952 [2024-12-24 09:17:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:17:04 - End Time 2024-12-24 09:17:04 [2024-12-24 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091205', 'tblTempUsageDetail_20' ) start [2024-12-24 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091205', 'tblTempUsageDetail_20' ) end [2024-12-24 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091205', 'tblTempVendorCDR_20' ) start [2024-12-24 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091205', 'tblTempVendorCDR_20' ) end [2024-12-24 09:17:17] Production.INFO: ProcessCDR(1,14091205,1,1,2) [2024-12-24 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091205', 'tblTempUsageDetail_20' ) start [2024-12-24 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091205', 'tblTempUsageDetail_20' ) end [2024-12-24 09:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:17:21] Production.INFO: ==1339== Releasing lock... [2024-12-24 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:17:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-24 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:18:05 [end_date_ymd] => 2024-12-24 09:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:18:17] Production.INFO: count ==973 [2024-12-24 09:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:18:05 - End Time 2024-12-24 09:18:05 [2024-12-24 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091210', 'tblTempUsageDetail_20' ) start [2024-12-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091210', 'tblTempUsageDetail_20' ) end [2024-12-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091210', 'tblTempVendorCDR_20' ) start [2024-12-24 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091210', 'tblTempVendorCDR_20' ) end [2024-12-24 09:18:18] Production.INFO: ProcessCDR(1,14091210,1,1,2) [2024-12-24 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091210', 'tblTempUsageDetail_20' ) start [2024-12-24 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091210', 'tblTempUsageDetail_20' ) end [2024-12-24 09:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:18:22] Production.INFO: ==1410== Releasing lock... [2024-12-24 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:18:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-24 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:19:04 [end_date_ymd] => 2024-12-24 09:19:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:19:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:19:17] Production.INFO: count ==979 [2024-12-24 09:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:19:04 - End Time 2024-12-24 09:19:04 [2024-12-24 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091215', 'tblTempUsageDetail_20' ) start [2024-12-24 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091215', 'tblTempUsageDetail_20' ) end [2024-12-24 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091215', 'tblTempVendorCDR_20' ) start [2024-12-24 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091215', 'tblTempVendorCDR_20' ) end [2024-12-24 09:19:17] Production.INFO: ProcessCDR(1,14091215,1,1,2) [2024-12-24 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091215', 'tblTempUsageDetail_20' ) start [2024-12-24 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091215', 'tblTempUsageDetail_20' ) end [2024-12-24 09:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:19:22] Production.INFO: ==1488== Releasing lock... [2024-12-24 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:19:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-24 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:20:05 [end_date_ymd] => 2024-12-24 09:20:05 [RateCDR] => 1 ) [2024-12-24 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:20:05' and `end` < '2024-12-24 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:20:18] Production.INFO: count ==1000 [2024-12-24 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:20:05 - End Time 2024-12-24 09:20:05 [2024-12-24 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091221', 'tblTempUsageDetail_20' ) start [2024-12-24 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091221', 'tblTempUsageDetail_20' ) end [2024-12-24 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091221', 'tblTempVendorCDR_20' ) start [2024-12-24 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091221', 'tblTempVendorCDR_20' ) end [2024-12-24 09:20:18] Production.INFO: ProcessCDR(1,14091221,1,1,2) [2024-12-24 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091221', 'tblTempUsageDetail_20' ) start [2024-12-24 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091221', 'tblTempUsageDetail_20' ) end [2024-12-24 09:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:20:23] Production.INFO: ==1602== Releasing lock... [2024-12-24 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:20:23] Production.INFO: 36 MB #Memory Used# [2024-12-24 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:21:05 [end_date_ymd] => 2024-12-24 09:21:05 [RateCDR] => 1 ) [2024-12-24 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:21:05' and `end` < '2024-12-24 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:21:18] Production.INFO: count ==1059 [2024-12-24 09:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:21:05 - End Time 2024-12-24 09:21:05 [2024-12-24 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091226', 'tblTempUsageDetail_20' ) start [2024-12-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091226', 'tblTempUsageDetail_20' ) end [2024-12-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091226', 'tblTempVendorCDR_20' ) start [2024-12-24 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091226', 'tblTempVendorCDR_20' ) end [2024-12-24 09:21:18] Production.INFO: ProcessCDR(1,14091226,1,1,2) [2024-12-24 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091226', 'tblTempUsageDetail_20' ) start [2024-12-24 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091226', 'tblTempUsageDetail_20' ) end [2024-12-24 09:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:21:23] Production.INFO: ==1675== Releasing lock... [2024-12-24 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:21:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-24 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:22:05 [end_date_ymd] => 2024-12-24 09:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:22:17] Production.INFO: count ==1071 [2024-12-24 09:22:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:22:05 - End Time 2024-12-24 09:22:05 [2024-12-24 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091231', 'tblTempUsageDetail_20' ) start [2024-12-24 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091231', 'tblTempUsageDetail_20' ) end [2024-12-24 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091231', 'tblTempVendorCDR_20' ) start [2024-12-24 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091231', 'tblTempVendorCDR_20' ) end [2024-12-24 09:22:17] Production.INFO: ProcessCDR(1,14091231,1,1,2) [2024-12-24 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091231', 'tblTempUsageDetail_20' ) start [2024-12-24 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091231', 'tblTempUsageDetail_20' ) end [2024-12-24 09:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:22:20] Production.INFO: ==1775== Releasing lock... [2024-12-24 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:22:20] Production.INFO: 36 MB #Memory Used# [2024-12-24 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:23:05 [end_date_ymd] => 2024-12-24 09:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:23:19] Production.INFO: count ==1107 [2024-12-24 09:23:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:23:05 - End Time 2024-12-24 09:23:05 [2024-12-24 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091236', 'tblTempUsageDetail_20' ) start [2024-12-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091236', 'tblTempUsageDetail_20' ) end [2024-12-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091236', 'tblTempVendorCDR_20' ) start [2024-12-24 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091236', 'tblTempVendorCDR_20' ) end [2024-12-24 09:23:19] Production.INFO: ProcessCDR(1,14091236,1,1,2) [2024-12-24 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091236', 'tblTempUsageDetail_20' ) start [2024-12-24 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091236', 'tblTempUsageDetail_20' ) end [2024-12-24 09:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:23:24] Production.INFO: ==1884== Releasing lock... [2024-12-24 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:23:24] Production.INFO: 36.5 MB #Memory Used# [2024-12-24 09:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:24:04 [end_date_ymd] => 2024-12-24 09:24:04 [RateCDR] => 1 ) [2024-12-24 09:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:24:04' and `end` < '2024-12-24 09:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:24:17] Production.INFO: count ==1126 [2024-12-24 09:24:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:24:04 - End Time 2024-12-24 09:24:04 [2024-12-24 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091241', 'tblTempUsageDetail_20' ) start [2024-12-24 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091241', 'tblTempUsageDetail_20' ) end [2024-12-24 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091241', 'tblTempVendorCDR_20' ) start [2024-12-24 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091241', 'tblTempVendorCDR_20' ) end [2024-12-24 09:24:17] Production.INFO: ProcessCDR(1,14091241,1,1,2) [2024-12-24 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091241', 'tblTempUsageDetail_20' ) start [2024-12-24 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091241', 'tblTempUsageDetail_20' ) end [2024-12-24 09:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:24:21] Production.INFO: ==2022== Releasing lock... [2024-12-24 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:24:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-24 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:25:05 [end_date_ymd] => 2024-12-24 09:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:25:17] Production.INFO: count ==1133 [2024-12-24 09:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:25:05 - End Time 2024-12-24 09:25:05 [2024-12-24 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091246', 'tblTempUsageDetail_20' ) start [2024-12-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091246', 'tblTempUsageDetail_20' ) end [2024-12-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091246', 'tblTempVendorCDR_20' ) start [2024-12-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091246', 'tblTempVendorCDR_20' ) end [2024-12-24 09:25:18] Production.INFO: ProcessCDR(1,14091246,1,1,2) [2024-12-24 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091246', 'tblTempUsageDetail_20' ) start [2024-12-24 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091246', 'tblTempUsageDetail_20' ) end [2024-12-24 09:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:25:22] Production.INFO: ==2097== Releasing lock... [2024-12-24 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:25:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-24 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:26:05 [end_date_ymd] => 2024-12-24 09:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:26:18] Production.INFO: count ==1165 [2024-12-24 09:26:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:26:05 - End Time 2024-12-24 09:26:05 [2024-12-24 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091251', 'tblTempUsageDetail_20' ) start [2024-12-24 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091251', 'tblTempUsageDetail_20' ) end [2024-12-24 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091251', 'tblTempVendorCDR_20' ) start [2024-12-24 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091251', 'tblTempVendorCDR_20' ) end [2024-12-24 09:26:18] Production.INFO: ProcessCDR(1,14091251,1,1,2) [2024-12-24 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091251', 'tblTempUsageDetail_20' ) start [2024-12-24 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091251', 'tblTempUsageDetail_20' ) end [2024-12-24 09:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:26:21] Production.INFO: ==2168== Releasing lock... [2024-12-24 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:26:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-24 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:27:04 [end_date_ymd] => 2024-12-24 09:27:04 [RateCDR] => 1 ) [2024-12-24 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:27:04' and `end` < '2024-12-24 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:27:17] Production.INFO: count ==1179 [2024-12-24 09:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:27:04 - End Time 2024-12-24 09:27:04 [2024-12-24 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091255', 'tblTempUsageDetail_20' ) start [2024-12-24 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091255', 'tblTempUsageDetail_20' ) end [2024-12-24 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091255', 'tblTempVendorCDR_20' ) start [2024-12-24 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091255', 'tblTempVendorCDR_20' ) end [2024-12-24 09:27:17] Production.INFO: ProcessCDR(1,14091255,1,1,2) [2024-12-24 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091255', 'tblTempUsageDetail_20' ) start [2024-12-24 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091255', 'tblTempUsageDetail_20' ) end [2024-12-24 09:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:27:21] Production.INFO: ==2245== Releasing lock... [2024-12-24 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:27:21] Production.INFO: 37 MB #Memory Used# [2024-12-24 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:28:05 [end_date_ymd] => 2024-12-24 09:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:28:18] Production.INFO: count ==1194 [2024-12-24 09:28:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:28:05 - End Time 2024-12-24 09:28:05 [2024-12-24 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091261', 'tblTempUsageDetail_20' ) start [2024-12-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091261', 'tblTempUsageDetail_20' ) end [2024-12-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091261', 'tblTempVendorCDR_20' ) start [2024-12-24 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091261', 'tblTempVendorCDR_20' ) end [2024-12-24 09:28:19] Production.INFO: ProcessCDR(1,14091261,1,1,2) [2024-12-24 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091261', 'tblTempUsageDetail_20' ) start [2024-12-24 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091261', 'tblTempUsageDetail_20' ) end [2024-12-24 09:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:28:24] Production.INFO: ==2318== Releasing lock... [2024-12-24 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:28:24] Production.INFO: 37 MB #Memory Used# [2024-12-24 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:29:04 [end_date_ymd] => 2024-12-24 09:29:04 [RateCDR] => 1 ) [2024-12-24 09:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:29:04' and `end` < '2024-12-24 09:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:29:16] Production.INFO: count ==1205 [2024-12-24 09:29:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:29:04 - End Time 2024-12-24 09:29:04 [2024-12-24 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091266', 'tblTempUsageDetail_20' ) start [2024-12-24 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091266', 'tblTempUsageDetail_20' ) end [2024-12-24 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091266', 'tblTempVendorCDR_20' ) start [2024-12-24 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091266', 'tblTempVendorCDR_20' ) end [2024-12-24 09:29:17] Production.INFO: ProcessCDR(1,14091266,1,1,2) [2024-12-24 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091266', 'tblTempUsageDetail_20' ) start [2024-12-24 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091266', 'tblTempUsageDetail_20' ) end [2024-12-24 09:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:29:20] Production.INFO: ==2392== Releasing lock... [2024-12-24 09:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:29:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-24 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:30:06 [end_date_ymd] => 2024-12-24 09:30:06 [RateCDR] => 1 ) [2024-12-24 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:30:06' and `end` < '2024-12-24 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:30:18] Production.INFO: count ==1215 [2024-12-24 09:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:30:06 - End Time 2024-12-24 09:30:06 [2024-12-24 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091271', 'tblTempUsageDetail_20' ) start [2024-12-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091271', 'tblTempUsageDetail_20' ) end [2024-12-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091271', 'tblTempVendorCDR_20' ) start [2024-12-24 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091271', 'tblTempVendorCDR_20' ) end [2024-12-24 09:30:19] Production.INFO: ProcessCDR(1,14091271,1,1,2) [2024-12-24 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091271', 'tblTempUsageDetail_20' ) start [2024-12-24 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091271', 'tblTempUsageDetail_20' ) end [2024-12-24 09:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:30:23] Production.INFO: ==2471== Releasing lock... [2024-12-24 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:30:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-24 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:31:04 [end_date_ymd] => 2024-12-24 09:31:04 [RateCDR] => 1 ) [2024-12-24 09: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` >= '2024-12-24 06:31:04' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:31:16] Production.INFO: count ==1275 [2024-12-24 09:31:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:31:04 - End Time 2024-12-24 09:31:04 [2024-12-24 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091277', 'tblTempUsageDetail_20' ) start [2024-12-24 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091277', 'tblTempUsageDetail_20' ) end [2024-12-24 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091277', 'tblTempVendorCDR_20' ) start [2024-12-24 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091277', 'tblTempVendorCDR_20' ) end [2024-12-24 09:31:17] Production.INFO: ProcessCDR(1,14091277,1,1,2) [2024-12-24 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091277', 'tblTempUsageDetail_20' ) start [2024-12-24 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091277', 'tblTempUsageDetail_20' ) end [2024-12-24 09:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:31:21] Production.INFO: ==2548== Releasing lock... [2024-12-24 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:31:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-24 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:32:05 [end_date_ymd] => 2024-12-24 09:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:32:17] Production.INFO: count ==1281 [2024-12-24 09:32:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:32:05 - End Time 2024-12-24 09:32:05 [2024-12-24 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091282', 'tblTempUsageDetail_20' ) start [2024-12-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091282', 'tblTempUsageDetail_20' ) end [2024-12-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091282', 'tblTempVendorCDR_20' ) start [2024-12-24 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091282', 'tblTempVendorCDR_20' ) end [2024-12-24 09:32:18] Production.INFO: ProcessCDR(1,14091282,1,1,2) [2024-12-24 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091282', 'tblTempUsageDetail_20' ) start [2024-12-24 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091282', 'tblTempUsageDetail_20' ) end [2024-12-24 09:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:32:22] Production.INFO: ==2624== Releasing lock... [2024-12-24 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:32:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-24 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:33:04 [end_date_ymd] => 2024-12-24 09:33:04 [RateCDR] => 1 ) [2024-12-24 09: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` >= '2024-12-24 06:33:04' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:33:18] Production.INFO: count ==1289 [2024-12-24 09:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:33:04 - End Time 2024-12-24 09:33:04 [2024-12-24 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091287', 'tblTempUsageDetail_20' ) start [2024-12-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091287', 'tblTempUsageDetail_20' ) end [2024-12-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091287', 'tblTempVendorCDR_20' ) start [2024-12-24 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091287', 'tblTempVendorCDR_20' ) end [2024-12-24 09:33:18] Production.INFO: ProcessCDR(1,14091287,1,1,2) [2024-12-24 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091287', 'tblTempUsageDetail_20' ) start [2024-12-24 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091287', 'tblTempUsageDetail_20' ) end [2024-12-24 09:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:33:23] Production.INFO: ==2707== Releasing lock... [2024-12-24 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:33:23] Production.INFO: 38 MB #Memory Used# [2024-12-24 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:34:05 [end_date_ymd] => 2024-12-24 09:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:34:18] Production.INFO: count ==1334 [2024-12-24 09:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:34:05 - End Time 2024-12-24 09:34:05 [2024-12-24 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091292', 'tblTempUsageDetail_20' ) start [2024-12-24 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091292', 'tblTempUsageDetail_20' ) end [2024-12-24 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091292', 'tblTempVendorCDR_20' ) start [2024-12-24 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091292', 'tblTempVendorCDR_20' ) end [2024-12-24 09:34:18] Production.INFO: ProcessCDR(1,14091292,1,1,2) [2024-12-24 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091292', 'tblTempUsageDetail_20' ) start [2024-12-24 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091292', 'tblTempUsageDetail_20' ) end [2024-12-24 09:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:34:23] Production.INFO: ==2818== Releasing lock... [2024-12-24 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:34:23] Production.INFO: 38 MB #Memory Used# [2024-12-24 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:35:04 [end_date_ymd] => 2024-12-24 09:35:04 [RateCDR] => 1 ) [2024-12-24 09: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` >= '2024-12-24 06:35:04' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:35:17] Production.INFO: count ==1338 [2024-12-24 09:35:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:35:04 - End Time 2024-12-24 09:35:04 [2024-12-24 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091297', 'tblTempUsageDetail_20' ) start [2024-12-24 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091297', 'tblTempUsageDetail_20' ) end [2024-12-24 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091297', 'tblTempVendorCDR_20' ) start [2024-12-24 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091297', 'tblTempVendorCDR_20' ) end [2024-12-24 09:35:17] Production.INFO: ProcessCDR(1,14091297,1,1,2) [2024-12-24 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091297', 'tblTempUsageDetail_20' ) start [2024-12-24 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091297', 'tblTempUsageDetail_20' ) end [2024-12-24 09:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:35:21] Production.INFO: ==2928== Releasing lock... [2024-12-24 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:35:21] Production.INFO: 38 MB #Memory Used# [2024-12-24 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:36:04 [end_date_ymd] => 2024-12-24 09:36:04 [RateCDR] => 1 ) [2024-12-24 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:36:04' and `end` < '2024-12-24 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:36:17] Production.INFO: count ==1359 [2024-12-24 09:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:36:04 - End Time 2024-12-24 09:36:04 [2024-12-24 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091302', 'tblTempUsageDetail_20' ) start [2024-12-24 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091302', 'tblTempUsageDetail_20' ) end [2024-12-24 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091302', 'tblTempVendorCDR_20' ) start [2024-12-24 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091302', 'tblTempVendorCDR_20' ) end [2024-12-24 09:36:17] Production.INFO: ProcessCDR(1,14091302,1,1,2) [2024-12-24 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091302', 'tblTempUsageDetail_20' ) start [2024-12-24 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091302', 'tblTempUsageDetail_20' ) end [2024-12-24 09:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:36:22] Production.INFO: ==3040== Releasing lock... [2024-12-24 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:36:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-24 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:37:05 [end_date_ymd] => 2024-12-24 09:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:37:18] Production.INFO: count ==1366 [2024-12-24 09:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:37:05 - End Time 2024-12-24 09:37:05 [2024-12-24 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091307', 'tblTempUsageDetail_20' ) start [2024-12-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091307', 'tblTempUsageDetail_20' ) end [2024-12-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091307', 'tblTempVendorCDR_20' ) start [2024-12-24 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091307', 'tblTempVendorCDR_20' ) end [2024-12-24 09:37:18] Production.INFO: ProcessCDR(1,14091307,1,1,2) [2024-12-24 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091307', 'tblTempUsageDetail_20' ) start [2024-12-24 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091307', 'tblTempUsageDetail_20' ) end [2024-12-24 09:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:37:23] Production.INFO: ==3155== Releasing lock... [2024-12-24 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:37:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-24 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:38:05 [end_date_ymd] => 2024-12-24 09:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:38:17] Production.INFO: count ==1385 [2024-12-24 09:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:38:05 - End Time 2024-12-24 09:38:05 [2024-12-24 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091312', 'tblTempUsageDetail_20' ) start [2024-12-24 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091312', 'tblTempUsageDetail_20' ) end [2024-12-24 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091312', 'tblTempVendorCDR_20' ) start [2024-12-24 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091312', 'tblTempVendorCDR_20' ) end [2024-12-24 09:38:18] Production.INFO: ProcessCDR(1,14091312,1,1,2) [2024-12-24 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091312', 'tblTempUsageDetail_20' ) start [2024-12-24 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091312', 'tblTempUsageDetail_20' ) end [2024-12-24 09:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:38:21] Production.INFO: ==3264== Releasing lock... [2024-12-24 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:38:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-24 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:39:05 [end_date_ymd] => 2024-12-24 09:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:39:18] Production.INFO: count ==1393 [2024-12-24 09:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:39:05 - End Time 2024-12-24 09:39:05 [2024-12-24 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091317', 'tblTempUsageDetail_20' ) start [2024-12-24 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091317', 'tblTempUsageDetail_20' ) end [2024-12-24 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091317', 'tblTempVendorCDR_20' ) start [2024-12-24 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091317', 'tblTempVendorCDR_20' ) end [2024-12-24 09:39:18] Production.INFO: ProcessCDR(1,14091317,1,1,2) [2024-12-24 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091317', 'tblTempUsageDetail_20' ) start [2024-12-24 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091317', 'tblTempUsageDetail_20' ) end [2024-12-24 09:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:39:23] Production.INFO: ==3379== Releasing lock... [2024-12-24 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:39:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-24 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:40:06 [end_date_ymd] => 2024-12-24 09:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:40:18] Production.INFO: count ==1417 [2024-12-24 09:40:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:40:06 - End Time 2024-12-24 09:40:06 [2024-12-24 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091323', 'tblTempUsageDetail_20' ) start [2024-12-24 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091323', 'tblTempUsageDetail_20' ) end [2024-12-24 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091323', 'tblTempVendorCDR_20' ) start [2024-12-24 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091323', 'tblTempVendorCDR_20' ) end [2024-12-24 09:40:19] Production.INFO: ProcessCDR(1,14091323,1,1,2) [2024-12-24 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091323', 'tblTempUsageDetail_20' ) start [2024-12-24 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091323', 'tblTempUsageDetail_20' ) end [2024-12-24 09:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:40:24] Production.INFO: ==3532== Releasing lock... [2024-12-24 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:40:24] Production.INFO: 38.75 MB #Memory Used# [2024-12-24 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:41:05 [end_date_ymd] => 2024-12-24 09:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:41:19] Production.INFO: count ==1511 [2024-12-24 09:41:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:41:05 - End Time 2024-12-24 09:41:05 [2024-12-24 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091328', 'tblTempUsageDetail_20' ) start [2024-12-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091328', 'tblTempUsageDetail_20' ) end [2024-12-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091328', 'tblTempVendorCDR_20' ) start [2024-12-24 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091328', 'tblTempVendorCDR_20' ) end [2024-12-24 09:41:19] Production.INFO: ProcessCDR(1,14091328,1,1,2) [2024-12-24 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091328', 'tblTempUsageDetail_20' ) start [2024-12-24 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091328', 'tblTempUsageDetail_20' ) end [2024-12-24 09:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:41:24] Production.INFO: ==3647== Releasing lock... [2024-12-24 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:41:24] Production.INFO: 39.75 MB #Memory Used# [2024-12-24 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:42:05 [end_date_ymd] => 2024-12-24 09:42:05 [RateCDR] => 1 ) [2024-12-24 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:42:05' and `end` < '2024-12-24 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:42:17] Production.INFO: count ==1519 [2024-12-24 09:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:42:05 - End Time 2024-12-24 09:42:05 [2024-12-24 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091333', 'tblTempUsageDetail_20' ) start [2024-12-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091333', 'tblTempUsageDetail_20' ) end [2024-12-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091333', 'tblTempVendorCDR_20' ) start [2024-12-24 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091333', 'tblTempVendorCDR_20' ) end [2024-12-24 09:42:18] Production.INFO: ProcessCDR(1,14091333,1,1,2) [2024-12-24 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091333', 'tblTempUsageDetail_20' ) start [2024-12-24 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091333', 'tblTempUsageDetail_20' ) end [2024-12-24 09:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:42:22] Production.INFO: ==3756== Releasing lock... [2024-12-24 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:42:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-24 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:43:05 [end_date_ymd] => 2024-12-24 09:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:43:18] Production.INFO: count ==1527 [2024-12-24 09:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:43:05 - End Time 2024-12-24 09:43:05 [2024-12-24 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091338', 'tblTempUsageDetail_20' ) start [2024-12-24 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091338', 'tblTempUsageDetail_20' ) end [2024-12-24 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091338', 'tblTempVendorCDR_20' ) start [2024-12-24 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091338', 'tblTempVendorCDR_20' ) end [2024-12-24 09:43:18] Production.INFO: ProcessCDR(1,14091338,1,1,2) [2024-12-24 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091338', 'tblTempUsageDetail_20' ) start [2024-12-24 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091338', 'tblTempUsageDetail_20' ) end [2024-12-24 09:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:43:23] Production.INFO: ==3869== Releasing lock... [2024-12-24 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:43:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-24 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:44:05 [end_date_ymd] => 2024-12-24 09:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:44:21] Production.INFO: count ==1531 [2024-12-24 09:44:21] Production.ERROR: pbx CDR StartTime 2024-12-24 06:44:05 - End Time 2024-12-24 09:44:05 [2024-12-24 09:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091343', 'tblTempUsageDetail_20' ) start [2024-12-24 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091343', 'tblTempUsageDetail_20' ) end [2024-12-24 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091343', 'tblTempVendorCDR_20' ) start [2024-12-24 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091343', 'tblTempVendorCDR_20' ) end [2024-12-24 09:44:21] Production.INFO: ProcessCDR(1,14091343,1,1,2) [2024-12-24 09:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091343', 'tblTempUsageDetail_20' ) start [2024-12-24 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091343', 'tblTempUsageDetail_20' ) end [2024-12-24 09:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:44:26] Production.INFO: ==3978== Releasing lock... [2024-12-24 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:44:26] Production.INFO: 39.5 MB #Memory Used# [2024-12-24 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:45:05 [end_date_ymd] => 2024-12-24 09:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:45:18] Production.INFO: count ==1539 [2024-12-24 09:45:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:45:05 - End Time 2024-12-24 09:45:05 [2024-12-24 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091348', 'tblTempUsageDetail_20' ) start [2024-12-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091348', 'tblTempUsageDetail_20' ) end [2024-12-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091348', 'tblTempVendorCDR_20' ) start [2024-12-24 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091348', 'tblTempVendorCDR_20' ) end [2024-12-24 09:45:19] Production.INFO: ProcessCDR(1,14091348,1,1,2) [2024-12-24 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091348', 'tblTempUsageDetail_20' ) start [2024-12-24 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091348', 'tblTempUsageDetail_20' ) end [2024-12-24 09:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:45:23] Production.INFO: ==4094== Releasing lock... [2024-12-24 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:45:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-24 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:46:05 [end_date_ymd] => 2024-12-24 09:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:46:17] Production.INFO: count ==1570 [2024-12-24 09:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:46:05 - End Time 2024-12-24 09:46:05 [2024-12-24 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091353', 'tblTempUsageDetail_20' ) start [2024-12-24 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091353', 'tblTempUsageDetail_20' ) end [2024-12-24 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091353', 'tblTempVendorCDR_20' ) start [2024-12-24 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091353', 'tblTempVendorCDR_20' ) end [2024-12-24 09:46:18] Production.INFO: ProcessCDR(1,14091353,1,1,2) [2024-12-24 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091353', 'tblTempUsageDetail_20' ) start [2024-12-24 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091353', 'tblTempUsageDetail_20' ) end [2024-12-24 09:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:46:21] Production.INFO: ==4204== Releasing lock... [2024-12-24 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:46:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-24 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:47:05 [end_date_ymd] => 2024-12-24 09:47:05 [RateCDR] => 1 ) [2024-12-24 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:47:05' and `end` < '2024-12-24 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:47:18] Production.INFO: count ==1598 [2024-12-24 09:47:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:47:05 - End Time 2024-12-24 09:47:05 [2024-12-24 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091358', 'tblTempUsageDetail_20' ) start [2024-12-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091358', 'tblTempUsageDetail_20' ) end [2024-12-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091358', 'tblTempVendorCDR_20' ) start [2024-12-24 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091358', 'tblTempVendorCDR_20' ) end [2024-12-24 09:47:19] Production.INFO: ProcessCDR(1,14091358,1,1,2) [2024-12-24 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091358', 'tblTempUsageDetail_20' ) start [2024-12-24 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091358', 'tblTempUsageDetail_20' ) end [2024-12-24 09:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:47:24] Production.INFO: ==4279== Releasing lock... [2024-12-24 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:47:24] Production.INFO: 40 MB #Memory Used# [2024-12-24 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:48:04 [end_date_ymd] => 2024-12-24 09:48:04 [RateCDR] => 1 ) [2024-12-24 09:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:48:04' and `end` < '2024-12-24 09:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:48:17] Production.INFO: count ==1614 [2024-12-24 09:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:48:04 - End Time 2024-12-24 09:48:04 [2024-12-24 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091363', 'tblTempUsageDetail_20' ) start [2024-12-24 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091363', 'tblTempUsageDetail_20' ) end [2024-12-24 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091363', 'tblTempVendorCDR_20' ) start [2024-12-24 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091363', 'tblTempVendorCDR_20' ) end [2024-12-24 09:48:18] Production.INFO: ProcessCDR(1,14091363,1,1,2) [2024-12-24 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091363', 'tblTempUsageDetail_20' ) start [2024-12-24 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091363', 'tblTempUsageDetail_20' ) end [2024-12-24 09:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:48:22] Production.INFO: ==4353== Releasing lock... [2024-12-24 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:48:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-24 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:49:05 [end_date_ymd] => 2024-12-24 09:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:49:18] Production.INFO: count ==1622 [2024-12-24 09:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:49:05 - End Time 2024-12-24 09:49:05 [2024-12-24 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091368', 'tblTempUsageDetail_20' ) start [2024-12-24 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091368', 'tblTempUsageDetail_20' ) end [2024-12-24 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091368', 'tblTempVendorCDR_20' ) start [2024-12-24 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091368', 'tblTempVendorCDR_20' ) end [2024-12-24 09:49:18] Production.INFO: ProcessCDR(1,14091368,1,1,2) [2024-12-24 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091368', 'tblTempUsageDetail_20' ) start [2024-12-24 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091368', 'tblTempUsageDetail_20' ) end [2024-12-24 09:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:49:23] Production.INFO: ==4423== Releasing lock... [2024-12-24 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:49:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-24 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:50:05 [end_date_ymd] => 2024-12-24 09:50:05 [RateCDR] => 1 ) [2024-12-24 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:50:05' and `end` < '2024-12-24 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:50:18] Production.INFO: count ==1655 [2024-12-24 09:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:50:05 - End Time 2024-12-24 09:50:05 [2024-12-24 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091373', 'tblTempUsageDetail_20' ) start [2024-12-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091373', 'tblTempUsageDetail_20' ) end [2024-12-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091373', 'tblTempVendorCDR_20' ) start [2024-12-24 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091373', 'tblTempVendorCDR_20' ) end [2024-12-24 09:50:19] Production.INFO: ProcessCDR(1,14091373,1,1,2) [2024-12-24 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091373', 'tblTempUsageDetail_20' ) start [2024-12-24 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091373', 'tblTempUsageDetail_20' ) end [2024-12-24 09:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:50:24] Production.INFO: ==4504== Releasing lock... [2024-12-24 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:50:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-24 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:51:05 [end_date_ymd] => 2024-12-24 09:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:51:18] Production.INFO: count ==1691 [2024-12-24 09:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:51:05 - End Time 2024-12-24 09:51:05 [2024-12-24 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091379', 'tblTempUsageDetail_20' ) start [2024-12-24 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091379', 'tblTempUsageDetail_20' ) end [2024-12-24 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091379', 'tblTempVendorCDR_20' ) start [2024-12-24 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091379', 'tblTempVendorCDR_20' ) end [2024-12-24 09:51:18] Production.INFO: ProcessCDR(1,14091379,1,1,2) [2024-12-24 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091379', 'tblTempUsageDetail_20' ) start [2024-12-24 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091379', 'tblTempUsageDetail_20' ) end [2024-12-24 09:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:51:23] Production.INFO: ==4585== Releasing lock... [2024-12-24 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:51:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-24 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:52:04 [end_date_ymd] => 2024-12-24 09:52:04 [RateCDR] => 1 ) [2024-12-24 09: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` >= '2024-12-24 06:52:04' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:52:18] Production.INFO: count ==1714 [2024-12-24 09:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:52:04 - End Time 2024-12-24 09:52:04 [2024-12-24 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091384', 'tblTempUsageDetail_20' ) start [2024-12-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091384', 'tblTempUsageDetail_20' ) end [2024-12-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091384', 'tblTempVendorCDR_20' ) start [2024-12-24 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091384', 'tblTempVendorCDR_20' ) end [2024-12-24 09:52:19] Production.INFO: ProcessCDR(1,14091384,1,1,2) [2024-12-24 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091384', 'tblTempUsageDetail_20' ) start [2024-12-24 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091384', 'tblTempUsageDetail_20' ) end [2024-12-24 09:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:52:24] Production.INFO: ==4663== Releasing lock... [2024-12-24 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:52:24] Production.INFO: 41 MB #Memory Used# [2024-12-24 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:53:04 [end_date_ymd] => 2024-12-24 09:53:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:53:04' and `end` < '2024-12-24 09:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:53:20] Production.INFO: count ==1728 [2024-12-24 09:53:21] Production.ERROR: pbx CDR StartTime 2024-12-24 06:53:04 - End Time 2024-12-24 09:53:04 [2024-12-24 09:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091389', 'tblTempUsageDetail_20' ) start [2024-12-24 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091389', 'tblTempUsageDetail_20' ) end [2024-12-24 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091389', 'tblTempVendorCDR_20' ) start [2024-12-24 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091389', 'tblTempVendorCDR_20' ) end [2024-12-24 09:53:21] Production.INFO: ProcessCDR(1,14091389,1,1,2) [2024-12-24 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091389', 'tblTempUsageDetail_20' ) start [2024-12-24 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091389', 'tblTempUsageDetail_20' ) end [2024-12-24 09:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:53:25] Production.INFO: ==4740== Releasing lock... [2024-12-24 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:53:25] Production.INFO: 41 MB #Memory Used# [2024-12-24 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:54:04 [end_date_ymd] => 2024-12-24 09:54:04 [RateCDR] => 1 ) [2024-12-24 09: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` >= '2024-12-24 06:54:04' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:54:17] Production.INFO: count ==1739 [2024-12-24 09:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:54:04 - End Time 2024-12-24 09:54:04 [2024-12-24 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091394', 'tblTempUsageDetail_20' ) start [2024-12-24 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091394', 'tblTempUsageDetail_20' ) end [2024-12-24 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091394', 'tblTempVendorCDR_20' ) start [2024-12-24 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091394', 'tblTempVendorCDR_20' ) end [2024-12-24 09:54:18] Production.INFO: ProcessCDR(1,14091394,1,1,2) [2024-12-24 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091394', 'tblTempUsageDetail_20' ) start [2024-12-24 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091394', 'tblTempUsageDetail_20' ) end [2024-12-24 09:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:54:22] Production.INFO: ==4811== Releasing lock... [2024-12-24 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:54:22] Production.INFO: 41 MB #Memory Used# [2024-12-24 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:55:05 [end_date_ymd] => 2024-12-24 09:55:05 [RateCDR] => 1 ) [2024-12-24 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:55:05' and `end` < '2024-12-24 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:55:18] Production.INFO: count ==1750 [2024-12-24 09:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:55:05 - End Time 2024-12-24 09:55:05 [2024-12-24 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091399', 'tblTempUsageDetail_20' ) start [2024-12-24 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091399', 'tblTempUsageDetail_20' ) end [2024-12-24 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091399', 'tblTempVendorCDR_20' ) start [2024-12-24 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091399', 'tblTempVendorCDR_20' ) end [2024-12-24 09:55:18] Production.INFO: ProcessCDR(1,14091399,1,1,2) [2024-12-24 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091399', 'tblTempUsageDetail_20' ) start [2024-12-24 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091399', 'tblTempUsageDetail_20' ) end [2024-12-24 09:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:55:23] Production.INFO: ==4890== Releasing lock... [2024-12-24 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:55:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-24 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:56:05 [end_date_ymd] => 2024-12-24 09:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:56:18] Production.INFO: count ==1757 [2024-12-24 09:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 06:56:05 - End Time 2024-12-24 09:56:05 [2024-12-24 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091404', 'tblTempUsageDetail_20' ) start [2024-12-24 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091404', 'tblTempUsageDetail_20' ) end [2024-12-24 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091404', 'tblTempVendorCDR_20' ) start [2024-12-24 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091404', 'tblTempVendorCDR_20' ) end [2024-12-24 09:56:19] Production.INFO: ProcessCDR(1,14091404,1,1,2) [2024-12-24 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091404', 'tblTempUsageDetail_20' ) start [2024-12-24 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091404', 'tblTempUsageDetail_20' ) end [2024-12-24 09:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:56:24] Production.INFO: ==5001== Releasing lock... [2024-12-24 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:56:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-24 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:57:04 [end_date_ymd] => 2024-12-24 09:57:04 [RateCDR] => 1 ) [2024-12-24 09:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:57:04' and `end` < '2024-12-24 09:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 09:57:17] Production.INFO: count ==1772 [2024-12-24 09:57:17] Production.ERROR: pbx CDR StartTime 2024-12-24 06:57:04 - End Time 2024-12-24 09:57:04 [2024-12-24 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091409', 'tblTempUsageDetail_20' ) start [2024-12-24 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091409', 'tblTempUsageDetail_20' ) end [2024-12-24 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091409', 'tblTempVendorCDR_20' ) start [2024-12-24 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091409', 'tblTempVendorCDR_20' ) end [2024-12-24 09:57:17] Production.INFO: ProcessCDR(1,14091409,1,1,2) [2024-12-24 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091409', 'tblTempUsageDetail_20' ) start [2024-12-24 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091409', 'tblTempUsageDetail_20' ) end [2024-12-24 09:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:57:22] Production.INFO: ==5078== Releasing lock... [2024-12-24 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:57:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-24 09:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:58:04 [end_date_ymd] => 2024-12-24 09:58:04 [RateCDR] => 1 ) [2024-12-24 09:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 06:58:04' and `end` < '2024-12-24 09: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 ,'') [2024-12-24 09:58:17] Production.INFO: count ==1773 [2024-12-24 09:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:58:04 - End Time 2024-12-24 09:58:04 [2024-12-24 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091414', 'tblTempUsageDetail_20' ) start [2024-12-24 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091414', 'tblTempUsageDetail_20' ) end [2024-12-24 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091414', 'tblTempVendorCDR_20' ) start [2024-12-24 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091414', 'tblTempVendorCDR_20' ) end [2024-12-24 09:58:18] Production.INFO: ProcessCDR(1,14091414,1,1,2) [2024-12-24 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091414', 'tblTempUsageDetail_20' ) start [2024-12-24 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091414', 'tblTempUsageDetail_20' ) end [2024-12-24 09:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:58:21] Production.INFO: ==5148== Releasing lock... [2024-12-24 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:58:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-24 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 06:59:05 [end_date_ymd] => 2024-12-24 09:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 06:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 09:59:18] Production.INFO: count ==1800 [2024-12-24 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 06:59:05 - End Time 2024-12-24 09:59:05 [2024-12-24 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091419', 'tblTempUsageDetail_20' ) start [2024-12-24 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091419', 'tblTempUsageDetail_20' ) end [2024-12-24 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091419', 'tblTempVendorCDR_20' ) start [2024-12-24 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091419', 'tblTempVendorCDR_20' ) end [2024-12-24 09:59:18] Production.INFO: ProcessCDR(1,14091419,1,1,2) [2024-12-24 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091419', 'tblTempUsageDetail_20' ) start [2024-12-24 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091419', 'tblTempUsageDetail_20' ) end [2024-12-24 09:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 09:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 09:59:23] Production.INFO: ==5224== Releasing lock... [2024-12-24 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 09:59:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-24 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:00:05 [end_date_ymd] => 2024-12-24 10:00:05 [RateCDR] => 1 ) [2024-12-24 10:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:00:05' and `end` < '2024-12-24 10:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:00:17] Production.INFO: count ==1823 [2024-12-24 10:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:00:05 - End Time 2024-12-24 10:00:05 [2024-12-24 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091424', 'tblTempUsageDetail_20' ) start [2024-12-24 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091424', 'tblTempUsageDetail_20' ) end [2024-12-24 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091424', 'tblTempVendorCDR_20' ) start [2024-12-24 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091424', 'tblTempVendorCDR_20' ) end [2024-12-24 10:00:18] Production.INFO: ProcessCDR(1,14091424,1,1,2) [2024-12-24 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091424', 'tblTempUsageDetail_20' ) start [2024-12-24 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091424', 'tblTempUsageDetail_20' ) end [2024-12-24 10:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:00:22] Production.INFO: ==5301== Releasing lock... [2024-12-24 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:00:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-24 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:01:05 [end_date_ymd] => 2024-12-24 10:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:01:17] Production.INFO: count ==1930 [2024-12-24 10:01:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:01:05 - End Time 2024-12-24 10:01:05 [2024-12-24 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091430', 'tblTempUsageDetail_20' ) start [2024-12-24 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091430', 'tblTempUsageDetail_20' ) end [2024-12-24 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091430', 'tblTempVendorCDR_20' ) start [2024-12-24 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091430', 'tblTempVendorCDR_20' ) end [2024-12-24 10:01:18] Production.INFO: ProcessCDR(1,14091430,1,1,2) [2024-12-24 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091430', 'tblTempUsageDetail_20' ) start [2024-12-24 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091430', 'tblTempUsageDetail_20' ) end [2024-12-24 10:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:01:22] Production.INFO: ==5390== Releasing lock... [2024-12-24 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:01:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:02:05 [end_date_ymd] => 2024-12-24 10:02:05 [RateCDR] => 1 ) [2024-12-24 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:02:05' and `end` < '2024-12-24 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:02:18] Production.INFO: count ==1959 [2024-12-24 10:02:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:02:05 - End Time 2024-12-24 10:02:05 [2024-12-24 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091435', 'tblTempUsageDetail_20' ) start [2024-12-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091435', 'tblTempUsageDetail_20' ) end [2024-12-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091435', 'tblTempVendorCDR_20' ) start [2024-12-24 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091435', 'tblTempVendorCDR_20' ) end [2024-12-24 10:02:19] Production.INFO: ProcessCDR(1,14091435,1,1,2) [2024-12-24 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091435', 'tblTempUsageDetail_20' ) start [2024-12-24 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091435', 'tblTempUsageDetail_20' ) end [2024-12-24 10:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:02:23] Production.INFO: ==5467== Releasing lock... [2024-12-24 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:02:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:03:05 [end_date_ymd] => 2024-12-24 10:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:03:25] Production.INFO: count ==1976 [2024-12-24 10:03:25] Production.ERROR: pbx CDR StartTime 2024-12-24 07:03:05 - End Time 2024-12-24 10:03:05 [2024-12-24 10:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091440', 'tblTempUsageDetail_20' ) start [2024-12-24 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091440', 'tblTempUsageDetail_20' ) end [2024-12-24 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091440', 'tblTempVendorCDR_20' ) start [2024-12-24 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091440', 'tblTempVendorCDR_20' ) end [2024-12-24 10:03:25] Production.INFO: ProcessCDR(1,14091440,1,1,2) [2024-12-24 10:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091440', 'tblTempUsageDetail_20' ) start [2024-12-24 10:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091440', 'tblTempUsageDetail_20' ) end [2024-12-24 10:03:30] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:03:30] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:03:30] Production.INFO: ==5539== Releasing lock... [2024-12-24 10:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:03:30] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:04:05 [end_date_ymd] => 2024-12-24 10:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:04:19] Production.INFO: count ==1990 [2024-12-24 10:04:20] Production.ERROR: pbx CDR StartTime 2024-12-24 07:04:05 - End Time 2024-12-24 10:04:05 [2024-12-24 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091445', 'tblTempUsageDetail_20' ) start [2024-12-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091445', 'tblTempUsageDetail_20' ) end [2024-12-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091445', 'tblTempVendorCDR_20' ) start [2024-12-24 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091445', 'tblTempVendorCDR_20' ) end [2024-12-24 10:04:20] Production.INFO: ProcessCDR(1,14091445,1,1,2) [2024-12-24 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091445', 'tblTempUsageDetail_20' ) start [2024-12-24 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091445', 'tblTempUsageDetail_20' ) end [2024-12-24 10:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:04:25] Production.INFO: ==5614== Releasing lock... [2024-12-24 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:04:25] Production.INFO: 43 MB #Memory Used# [2024-12-24 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:05:05 [end_date_ymd] => 2024-12-24 10:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:05:22] Production.INFO: count ==1997 [2024-12-24 10:05:22] Production.ERROR: pbx CDR StartTime 2024-12-24 07:05:05 - End Time 2024-12-24 10:05:05 [2024-12-24 10:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091450', 'tblTempUsageDetail_20' ) start [2024-12-24 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091450', 'tblTempUsageDetail_20' ) end [2024-12-24 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091450', 'tblTempVendorCDR_20' ) start [2024-12-24 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091450', 'tblTempVendorCDR_20' ) end [2024-12-24 10:05:22] Production.INFO: ProcessCDR(1,14091450,1,1,2) [2024-12-24 10:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091450', 'tblTempUsageDetail_20' ) start [2024-12-24 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091450', 'tblTempUsageDetail_20' ) end [2024-12-24 10:05:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:05:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:05:27] Production.INFO: ==5688== Releasing lock... [2024-12-24 10:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:05:27] Production.INFO: 43 MB #Memory Used# [2024-12-24 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:06:05 [end_date_ymd] => 2024-12-24 10:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:06:19] Production.INFO: count ==2009 [2024-12-24 10:06:20] Production.ERROR: pbx CDR StartTime 2024-12-24 07:06:05 - End Time 2024-12-24 10:06:05 [2024-12-24 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091455', 'tblTempUsageDetail_20' ) start [2024-12-24 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091455', 'tblTempUsageDetail_20' ) end [2024-12-24 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091455', 'tblTempVendorCDR_20' ) start [2024-12-24 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091455', 'tblTempVendorCDR_20' ) end [2024-12-24 10:06:20] Production.INFO: ProcessCDR(1,14091455,1,1,2) [2024-12-24 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091455', 'tblTempUsageDetail_20' ) start [2024-12-24 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091455', 'tblTempUsageDetail_20' ) end [2024-12-24 10:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:06:25] Production.INFO: ==5763== Releasing lock... [2024-12-24 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:06:25] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:07:04 [end_date_ymd] => 2024-12-24 10:07:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:07:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:07:18] Production.INFO: count ==2022 [2024-12-24 10:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:07:04 - End Time 2024-12-24 10:07:04 [2024-12-24 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091460', 'tblTempUsageDetail_20' ) start [2024-12-24 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091460', 'tblTempUsageDetail_20' ) end [2024-12-24 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091460', 'tblTempVendorCDR_20' ) start [2024-12-24 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091460', 'tblTempVendorCDR_20' ) end [2024-12-24 10:07:19] Production.INFO: ProcessCDR(1,14091460,1,1,2) [2024-12-24 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091460', 'tblTempUsageDetail_20' ) start [2024-12-24 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091460', 'tblTempUsageDetail_20' ) end [2024-12-24 10:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:07:23] Production.INFO: ==5837== Releasing lock... [2024-12-24 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:07:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:08:05 [end_date_ymd] => 2024-12-24 10:08:05 [RateCDR] => 1 ) [2024-12-24 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:08:05' and `end` < '2024-12-24 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:08:21] Production.INFO: count ==2039 [2024-12-24 10:08:22] Production.ERROR: pbx CDR StartTime 2024-12-24 07:08:05 - End Time 2024-12-24 10:08:05 [2024-12-24 10:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091465', 'tblTempUsageDetail_20' ) start [2024-12-24 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091465', 'tblTempUsageDetail_20' ) end [2024-12-24 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091465', 'tblTempVendorCDR_20' ) start [2024-12-24 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091465', 'tblTempVendorCDR_20' ) end [2024-12-24 10:08:22] Production.INFO: ProcessCDR(1,14091465,1,1,2) [2024-12-24 10:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091465', 'tblTempUsageDetail_20' ) start [2024-12-24 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091465', 'tblTempUsageDetail_20' ) end [2024-12-24 10:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:08:27] Production.INFO: ==5911== Releasing lock... [2024-12-24 10:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:08:27] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:09:04 [end_date_ymd] => 2024-12-24 10:09:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:09:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:09:17] Production.INFO: count ==2046 [2024-12-24 10:09:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:09:04 - End Time 2024-12-24 10:09:04 [2024-12-24 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091470', 'tblTempUsageDetail_20' ) start [2024-12-24 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091470', 'tblTempUsageDetail_20' ) end [2024-12-24 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091470', 'tblTempVendorCDR_20' ) start [2024-12-24 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091470', 'tblTempVendorCDR_20' ) end [2024-12-24 10:09:18] Production.INFO: ProcessCDR(1,14091470,1,1,2) [2024-12-24 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091470', 'tblTempUsageDetail_20' ) start [2024-12-24 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091470', 'tblTempUsageDetail_20' ) end [2024-12-24 10:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:09:23] Production.INFO: ==5994== Releasing lock... [2024-12-24 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:09:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-24 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:10:05 [end_date_ymd] => 2024-12-24 10:10:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:10:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:10:18] Production.INFO: count ==2073 [2024-12-24 10:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:10:05 - End Time 2024-12-24 10:10:05 [2024-12-24 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091476', 'tblTempUsageDetail_20' ) start [2024-12-24 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091476', 'tblTempUsageDetail_20' ) end [2024-12-24 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091476', 'tblTempVendorCDR_20' ) start [2024-12-24 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091476', 'tblTempVendorCDR_20' ) end [2024-12-24 10:10:19] Production.INFO: ProcessCDR(1,14091476,1,1,2) [2024-12-24 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091476', 'tblTempUsageDetail_20' ) start [2024-12-24 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091476', 'tblTempUsageDetail_20' ) end [2024-12-24 10:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:10:23] Production.INFO: ==6081== Releasing lock... [2024-12-24 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:10:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-24 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:11:05 [end_date_ymd] => 2024-12-24 10:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:11:18] Production.INFO: count ==2140 [2024-12-24 10:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:11:05 - End Time 2024-12-24 10:11:05 [2024-12-24 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091481', 'tblTempUsageDetail_20' ) start [2024-12-24 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091481', 'tblTempUsageDetail_20' ) end [2024-12-24 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091481', 'tblTempVendorCDR_20' ) start [2024-12-24 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091481', 'tblTempVendorCDR_20' ) end [2024-12-24 10:11:19] Production.INFO: ProcessCDR(1,14091481,1,1,2) [2024-12-24 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091481', 'tblTempUsageDetail_20' ) start [2024-12-24 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091481', 'tblTempUsageDetail_20' ) end [2024-12-24 10:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:11:23] Production.INFO: ==6208== Releasing lock... [2024-12-24 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:11:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-24 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:12:04 [end_date_ymd] => 2024-12-24 10:12:04 [RateCDR] => 1 ) [2024-12-24 10:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:12:04' and `end` < '2024-12-24 10:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:12:17] Production.INFO: count ==2145 [2024-12-24 10:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:12:04 - End Time 2024-12-24 10:12:04 [2024-12-24 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091486', 'tblTempUsageDetail_20' ) start [2024-12-24 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091486', 'tblTempUsageDetail_20' ) end [2024-12-24 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091486', 'tblTempVendorCDR_20' ) start [2024-12-24 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091486', 'tblTempVendorCDR_20' ) end [2024-12-24 10:12:18] Production.INFO: ProcessCDR(1,14091486,1,1,2) [2024-12-24 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091486', 'tblTempUsageDetail_20' ) start [2024-12-24 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091486', 'tblTempUsageDetail_20' ) end [2024-12-24 10:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:12:22] Production.INFO: ==6295== Releasing lock... [2024-12-24 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:12:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-24 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:13:05 [end_date_ymd] => 2024-12-24 10:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:13:18] Production.INFO: count ==2150 [2024-12-24 10:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:13:05 - End Time 2024-12-24 10:13:05 [2024-12-24 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091491', 'tblTempUsageDetail_20' ) start [2024-12-24 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091491', 'tblTempUsageDetail_20' ) end [2024-12-24 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091491', 'tblTempVendorCDR_20' ) start [2024-12-24 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091491', 'tblTempVendorCDR_20' ) end [2024-12-24 10:13:19] Production.INFO: ProcessCDR(1,14091491,1,1,2) [2024-12-24 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091491', 'tblTempUsageDetail_20' ) start [2024-12-24 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091491', 'tblTempUsageDetail_20' ) end [2024-12-24 10:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:13:23] Production.INFO: ==6381== Releasing lock... [2024-12-24 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:13:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-24 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:14:05 [end_date_ymd] => 2024-12-24 10:14:05 [RateCDR] => 1 ) [2024-12-24 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:14:05' and `end` < '2024-12-24 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:14:19] Production.INFO: count ==2179 [2024-12-24 10:14:20] Production.ERROR: pbx CDR StartTime 2024-12-24 07:14:05 - End Time 2024-12-24 10:14:05 [2024-12-24 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091496', 'tblTempUsageDetail_20' ) start [2024-12-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091496', 'tblTempUsageDetail_20' ) end [2024-12-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091496', 'tblTempVendorCDR_20' ) start [2024-12-24 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091496', 'tblTempVendorCDR_20' ) end [2024-12-24 10:14:20] Production.INFO: ProcessCDR(1,14091496,1,1,2) [2024-12-24 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091496', 'tblTempUsageDetail_20' ) start [2024-12-24 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091496', 'tblTempUsageDetail_20' ) end [2024-12-24 10:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:14:26] Production.INFO: ==6453== Releasing lock... [2024-12-24 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:14:26] Production.INFO: 44.75 MB #Memory Used# [2024-12-24 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:15:05 [end_date_ymd] => 2024-12-24 10:15:05 [RateCDR] => 1 ) [2024-12-24 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:15:05' and `end` < '2024-12-24 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:15:17] Production.INFO: count ==2193 [2024-12-24 10:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:15:05 - End Time 2024-12-24 10:15:05 [2024-12-24 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091501', 'tblTempUsageDetail_20' ) start [2024-12-24 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091501', 'tblTempUsageDetail_20' ) end [2024-12-24 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091501', 'tblTempVendorCDR_20' ) start [2024-12-24 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091501', 'tblTempVendorCDR_20' ) end [2024-12-24 10:15:18] Production.INFO: ProcessCDR(1,14091501,1,1,2) [2024-12-24 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091501', 'tblTempUsageDetail_20' ) start [2024-12-24 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091501', 'tblTempUsageDetail_20' ) end [2024-12-24 10:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:15:23] Production.INFO: ==6524== Releasing lock... [2024-12-24 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:15:23] Production.INFO: 45 MB #Memory Used# [2024-12-24 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:16:05 [end_date_ymd] => 2024-12-24 10:16:05 [RateCDR] => 1 ) [2024-12-24 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:16:05' and `end` < '2024-12-24 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:16:18] Production.INFO: count ==2206 [2024-12-24 10:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:16:05 - End Time 2024-12-24 10:16:05 [2024-12-24 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091506', 'tblTempUsageDetail_20' ) start [2024-12-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091506', 'tblTempUsageDetail_20' ) end [2024-12-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091506', 'tblTempVendorCDR_20' ) start [2024-12-24 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091506', 'tblTempVendorCDR_20' ) end [2024-12-24 10:16:19] Production.INFO: ProcessCDR(1,14091506,1,1,2) [2024-12-24 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091506', 'tblTempUsageDetail_20' ) start [2024-12-24 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091506', 'tblTempUsageDetail_20' ) end [2024-12-24 10:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:16:23] Production.INFO: ==6598== Releasing lock... [2024-12-24 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:16:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-24 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:17:05 [end_date_ymd] => 2024-12-24 10:17:05 [RateCDR] => 1 ) [2024-12-24 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:17:05' and `end` < '2024-12-24 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:17:24] Production.INFO: count ==2230 [2024-12-24 10:17:25] Production.ERROR: pbx CDR StartTime 2024-12-24 07:17:05 - End Time 2024-12-24 10:17:05 [2024-12-24 10:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091511', 'tblTempUsageDetail_20' ) start [2024-12-24 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091511', 'tblTempUsageDetail_20' ) end [2024-12-24 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091511', 'tblTempVendorCDR_20' ) start [2024-12-24 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091511', 'tblTempVendorCDR_20' ) end [2024-12-24 10:17:25] Production.INFO: ProcessCDR(1,14091511,1,1,2) [2024-12-24 10:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091511', 'tblTempUsageDetail_20' ) start [2024-12-24 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091511', 'tblTempUsageDetail_20' ) end [2024-12-24 10:17:30] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:17:30] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:17:30] Production.INFO: ==6668== Releasing lock... [2024-12-24 10:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:17:30] Production.INFO: 45 MB #Memory Used# [2024-12-24 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:18:05 [end_date_ymd] => 2024-12-24 10:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:18:20] Production.INFO: count ==2242 [2024-12-24 10:18:21] Production.ERROR: pbx CDR StartTime 2024-12-24 07:18:05 - End Time 2024-12-24 10:18:05 [2024-12-24 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091516', 'tblTempUsageDetail_20' ) start [2024-12-24 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091516', 'tblTempUsageDetail_20' ) end [2024-12-24 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091516', 'tblTempVendorCDR_20' ) start [2024-12-24 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091516', 'tblTempVendorCDR_20' ) end [2024-12-24 10:18:21] Production.INFO: ProcessCDR(1,14091516,1,1,2) [2024-12-24 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091516', 'tblTempUsageDetail_20' ) start [2024-12-24 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091516', 'tblTempUsageDetail_20' ) end [2024-12-24 10:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:18:26] Production.INFO: ==6742== Releasing lock... [2024-12-24 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:18:26] Production.INFO: 45 MB #Memory Used# [2024-12-24 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:19:04 [end_date_ymd] => 2024-12-24 10:19:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:19:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:19:19] Production.INFO: count ==2253 [2024-12-24 10:19:20] Production.ERROR: pbx CDR StartTime 2024-12-24 07:19:04 - End Time 2024-12-24 10:19:04 [2024-12-24 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091521', 'tblTempUsageDetail_20' ) start [2024-12-24 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091521', 'tblTempUsageDetail_20' ) end [2024-12-24 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091521', 'tblTempVendorCDR_20' ) start [2024-12-24 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091521', 'tblTempVendorCDR_20' ) end [2024-12-24 10:19:20] Production.INFO: ProcessCDR(1,14091521,1,1,2) [2024-12-24 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091521', 'tblTempUsageDetail_20' ) start [2024-12-24 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091521', 'tblTempUsageDetail_20' ) end [2024-12-24 10:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:19:24] Production.INFO: ==6813== Releasing lock... [2024-12-24 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:19:24] Production.INFO: 45 MB #Memory Used# [2024-12-24 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:20:05 [end_date_ymd] => 2024-12-24 10:20:05 [RateCDR] => 1 ) [2024-12-24 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:20:05' and `end` < '2024-12-24 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:20:18] Production.INFO: count ==2265 [2024-12-24 10:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:20:05 - End Time 2024-12-24 10:20:05 [2024-12-24 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091527', 'tblTempUsageDetail_20' ) start [2024-12-24 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091527', 'tblTempUsageDetail_20' ) end [2024-12-24 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091527', 'tblTempVendorCDR_20' ) start [2024-12-24 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091527', 'tblTempVendorCDR_20' ) end [2024-12-24 10:20:19] Production.INFO: ProcessCDR(1,14091527,1,1,2) [2024-12-24 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091527', 'tblTempUsageDetail_20' ) start [2024-12-24 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091527', 'tblTempUsageDetail_20' ) end [2024-12-24 10:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:20:23] Production.INFO: ==6887== Releasing lock... [2024-12-24 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:20:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:21:04 [end_date_ymd] => 2024-12-24 10:21:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:21:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:21:17] Production.INFO: count ==2323 [2024-12-24 10:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:21:04 - End Time 2024-12-24 10:21:04 [2024-12-24 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091532', 'tblTempUsageDetail_20' ) start [2024-12-24 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091532', 'tblTempUsageDetail_20' ) end [2024-12-24 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091532', 'tblTempVendorCDR_20' ) start [2024-12-24 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091532', 'tblTempVendorCDR_20' ) end [2024-12-24 10:21:18] Production.INFO: ProcessCDR(1,14091532,1,1,2) [2024-12-24 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091532', 'tblTempUsageDetail_20' ) start [2024-12-24 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091532', 'tblTempUsageDetail_20' ) end [2024-12-24 10:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:21:23] Production.INFO: ==6958== Releasing lock... [2024-12-24 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:21:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:22:05 [end_date_ymd] => 2024-12-24 10:22:05 [RateCDR] => 1 ) [2024-12-24 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:22:05' and `end` < '2024-12-24 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:22:18] Production.INFO: count ==2327 [2024-12-24 10:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:22:05 - End Time 2024-12-24 10:22:05 [2024-12-24 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091537', 'tblTempUsageDetail_20' ) start [2024-12-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091537', 'tblTempUsageDetail_20' ) end [2024-12-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091537', 'tblTempVendorCDR_20' ) start [2024-12-24 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091537', 'tblTempVendorCDR_20' ) end [2024-12-24 10:22:19] Production.INFO: ProcessCDR(1,14091537,1,1,2) [2024-12-24 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091537', 'tblTempUsageDetail_20' ) start [2024-12-24 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091537', 'tblTempUsageDetail_20' ) end [2024-12-24 10:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:22:24] Production.INFO: ==7029== Releasing lock... [2024-12-24 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:22:24] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:23:05 [end_date_ymd] => 2024-12-24 10:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:23:21] Production.INFO: count ==2331 [2024-12-24 10:23:22] Production.ERROR: pbx CDR StartTime 2024-12-24 07:23:05 - End Time 2024-12-24 10:23:05 [2024-12-24 10:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091542', 'tblTempUsageDetail_20' ) start [2024-12-24 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091542', 'tblTempUsageDetail_20' ) end [2024-12-24 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091542', 'tblTempVendorCDR_20' ) start [2024-12-24 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091542', 'tblTempVendorCDR_20' ) end [2024-12-24 10:23:22] Production.INFO: ProcessCDR(1,14091542,1,1,2) [2024-12-24 10:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091542', 'tblTempUsageDetail_20' ) start [2024-12-24 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091542', 'tblTempUsageDetail_20' ) end [2024-12-24 10:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:23:27] Production.INFO: ==7108== Releasing lock... [2024-12-24 10:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:23:27] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:24:05 [end_date_ymd] => 2024-12-24 10:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:24:20] Production.INFO: count ==2347 [2024-12-24 10:24:21] Production.ERROR: pbx CDR StartTime 2024-12-24 07:24:05 - End Time 2024-12-24 10:24:05 [2024-12-24 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091547', 'tblTempUsageDetail_20' ) start [2024-12-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091547', 'tblTempUsageDetail_20' ) end [2024-12-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091547', 'tblTempVendorCDR_20' ) start [2024-12-24 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091547', 'tblTempVendorCDR_20' ) end [2024-12-24 10:24:21] Production.INFO: ProcessCDR(1,14091547,1,1,2) [2024-12-24 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091547', 'tblTempUsageDetail_20' ) start [2024-12-24 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091547', 'tblTempUsageDetail_20' ) end [2024-12-24 10:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:24:25] Production.INFO: ==7181== Releasing lock... [2024-12-24 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:24:25] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:25:04 [end_date_ymd] => 2024-12-24 10:25:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:25:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:25:23] Production.INFO: count ==2357 [2024-12-24 10:25:24] Production.ERROR: pbx CDR StartTime 2024-12-24 07:25:04 - End Time 2024-12-24 10:25:04 [2024-12-24 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091552', 'tblTempUsageDetail_20' ) start [2024-12-24 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091552', 'tblTempUsageDetail_20' ) end [2024-12-24 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091552', 'tblTempVendorCDR_20' ) start [2024-12-24 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091552', 'tblTempVendorCDR_20' ) end [2024-12-24 10:25:24] Production.INFO: ProcessCDR(1,14091552,1,1,2) [2024-12-24 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091552', 'tblTempUsageDetail_20' ) start [2024-12-24 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091552', 'tblTempUsageDetail_20' ) end [2024-12-24 10:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:25:28] Production.INFO: ==7252== Releasing lock... [2024-12-24 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:25:28] Production.INFO: 46 MB #Memory Used# [2024-12-24 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:26:04 [end_date_ymd] => 2024-12-24 10:26:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:26:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:26:18] Production.INFO: count ==2360 [2024-12-24 10:26:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:26:04 - End Time 2024-12-24 10:26:04 [2024-12-24 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091557', 'tblTempUsageDetail_20' ) start [2024-12-24 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091557', 'tblTempUsageDetail_20' ) end [2024-12-24 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091557', 'tblTempVendorCDR_20' ) start [2024-12-24 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091557', 'tblTempVendorCDR_20' ) end [2024-12-24 10:26:19] Production.INFO: ProcessCDR(1,14091557,1,1,2) [2024-12-24 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091557', 'tblTempUsageDetail_20' ) start [2024-12-24 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091557', 'tblTempUsageDetail_20' ) end [2024-12-24 10:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:26:23] Production.INFO: ==7331== Releasing lock... [2024-12-24 10:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:26:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:27:05 [end_date_ymd] => 2024-12-24 10:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:27:23] Production.INFO: count ==2364 [2024-12-24 10:27:24] Production.ERROR: pbx CDR StartTime 2024-12-24 07:27:05 - End Time 2024-12-24 10:27:05 [2024-12-24 10:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091562', 'tblTempUsageDetail_20' ) start [2024-12-24 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091562', 'tblTempUsageDetail_20' ) end [2024-12-24 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091562', 'tblTempVendorCDR_20' ) start [2024-12-24 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091562', 'tblTempVendorCDR_20' ) end [2024-12-24 10:27:24] Production.INFO: ProcessCDR(1,14091562,1,1,2) [2024-12-24 10:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091562', 'tblTempUsageDetail_20' ) start [2024-12-24 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091562', 'tblTempUsageDetail_20' ) end [2024-12-24 10:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:27:29] Production.INFO: ==7445== Releasing lock... [2024-12-24 10:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:27:29] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:28:04 [end_date_ymd] => 2024-12-24 10:28:04 [RateCDR] => 1 ) [2024-12-24 10:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:28:04' and `end` < '2024-12-24 10:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:28:18] Production.INFO: count ==2367 [2024-12-24 10:28:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:28:04 - End Time 2024-12-24 10:28:04 [2024-12-24 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091567', 'tblTempUsageDetail_20' ) start [2024-12-24 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091567', 'tblTempUsageDetail_20' ) end [2024-12-24 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091567', 'tblTempVendorCDR_20' ) start [2024-12-24 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091567', 'tblTempVendorCDR_20' ) end [2024-12-24 10:28:19] Production.INFO: ProcessCDR(1,14091567,1,1,2) [2024-12-24 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091567', 'tblTempUsageDetail_20' ) start [2024-12-24 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091567', 'tblTempUsageDetail_20' ) end [2024-12-24 10:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:28:24] Production.INFO: ==7515== Releasing lock... [2024-12-24 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:28:24] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:29:05 [end_date_ymd] => 2024-12-24 10:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:29:18] Production.INFO: count ==2376 [2024-12-24 10:29:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:29:05 - End Time 2024-12-24 10:29:05 [2024-12-24 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091572', 'tblTempUsageDetail_20' ) start [2024-12-24 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091572', 'tblTempUsageDetail_20' ) end [2024-12-24 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091572', 'tblTempVendorCDR_20' ) start [2024-12-24 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091572', 'tblTempVendorCDR_20' ) end [2024-12-24 10:29:18] Production.INFO: ProcessCDR(1,14091572,1,1,2) [2024-12-24 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091572', 'tblTempUsageDetail_20' ) start [2024-12-24 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091572', 'tblTempUsageDetail_20' ) end [2024-12-24 10:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:29:23] Production.INFO: ==7588== Releasing lock... [2024-12-24 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:29:23] Production.INFO: 46 MB #Memory Used# [2024-12-24 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:30:05 [end_date_ymd] => 2024-12-24 10:30:05 [RateCDR] => 1 ) [2024-12-24 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:30:05' and `end` < '2024-12-24 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:30:18] Production.INFO: count ==2395 [2024-12-24 10:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:30:05 - End Time 2024-12-24 10:30:05 [2024-12-24 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091578', 'tblTempUsageDetail_20' ) start [2024-12-24 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091578', 'tblTempUsageDetail_20' ) end [2024-12-24 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091578', 'tblTempVendorCDR_20' ) start [2024-12-24 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091578', 'tblTempVendorCDR_20' ) end [2024-12-24 10:30:19] Production.INFO: ProcessCDR(1,14091578,1,1,2) [2024-12-24 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091578', 'tblTempUsageDetail_20' ) start [2024-12-24 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091578', 'tblTempUsageDetail_20' ) end [2024-12-24 10:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:30:23] Production.INFO: ==7662== Releasing lock... [2024-12-24 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:30:23] Production.INFO: 46 MB #Memory Used# [2024-12-24 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:31:04 [end_date_ymd] => 2024-12-24 10:31:04 [RateCDR] => 1 ) [2024-12-24 10:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:31:04' and `end` < '2024-12-24 10:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:31:19] Production.INFO: count ==2443 [2024-12-24 10:31:20] Production.ERROR: pbx CDR StartTime 2024-12-24 07:31:04 - End Time 2024-12-24 10:31:04 [2024-12-24 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091583', 'tblTempUsageDetail_20' ) start [2024-12-24 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091583', 'tblTempUsageDetail_20' ) end [2024-12-24 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091583', 'tblTempVendorCDR_20' ) start [2024-12-24 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091583', 'tblTempVendorCDR_20' ) end [2024-12-24 10:31:20] Production.INFO: ProcessCDR(1,14091583,1,1,2) [2024-12-24 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091583', 'tblTempUsageDetail_20' ) start [2024-12-24 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091583', 'tblTempUsageDetail_20' ) end [2024-12-24 10:31:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:31:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:31:25] Production.INFO: ==7743== Releasing lock... [2024-12-24 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:31:25] Production.INFO: 46.5 MB #Memory Used# [2024-12-24 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:32:05 [end_date_ymd] => 2024-12-24 10:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:32:18] Production.INFO: count ==2458 [2024-12-24 10:32:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:32:05 - End Time 2024-12-24 10:32:05 [2024-12-24 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091588', 'tblTempUsageDetail_20' ) start [2024-12-24 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091588', 'tblTempUsageDetail_20' ) end [2024-12-24 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091588', 'tblTempVendorCDR_20' ) start [2024-12-24 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091588', 'tblTempVendorCDR_20' ) end [2024-12-24 10:32:19] Production.INFO: ProcessCDR(1,14091588,1,1,2) [2024-12-24 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091588', 'tblTempUsageDetail_20' ) start [2024-12-24 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091588', 'tblTempUsageDetail_20' ) end [2024-12-24 10:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:32:24] Production.INFO: ==7818== Releasing lock... [2024-12-24 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:32:24] Production.INFO: 46.5 MB #Memory Used# [2024-12-24 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:33:04 [end_date_ymd] => 2024-12-24 10:33:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:33:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:33:21] Production.INFO: count ==2469 [2024-12-24 10:33:22] Production.ERROR: pbx CDR StartTime 2024-12-24 07:33:04 - End Time 2024-12-24 10:33:04 [2024-12-24 10:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091593', 'tblTempUsageDetail_20' ) start [2024-12-24 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091593', 'tblTempUsageDetail_20' ) end [2024-12-24 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091593', 'tblTempVendorCDR_20' ) start [2024-12-24 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091593', 'tblTempVendorCDR_20' ) end [2024-12-24 10:33:22] Production.INFO: ProcessCDR(1,14091593,1,1,2) [2024-12-24 10:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091593', 'tblTempUsageDetail_20' ) start [2024-12-24 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091593', 'tblTempUsageDetail_20' ) end [2024-12-24 10:33:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:33:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:33:27] Production.INFO: ==7888== Releasing lock... [2024-12-24 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:33:27] Production.INFO: 46.5 MB #Memory Used# [2024-12-24 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:34:05 [end_date_ymd] => 2024-12-24 10:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:34:21] Production.INFO: count ==2480 [2024-12-24 10:34:22] Production.ERROR: pbx CDR StartTime 2024-12-24 07:34:05 - End Time 2024-12-24 10:34:05 [2024-12-24 10:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091598', 'tblTempUsageDetail_20' ) start [2024-12-24 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091598', 'tblTempUsageDetail_20' ) end [2024-12-24 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091598', 'tblTempVendorCDR_20' ) start [2024-12-24 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091598', 'tblTempVendorCDR_20' ) end [2024-12-24 10:34:22] Production.INFO: ProcessCDR(1,14091598,1,1,2) [2024-12-24 10:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091598', 'tblTempUsageDetail_20' ) start [2024-12-24 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091598', 'tblTempUsageDetail_20' ) end [2024-12-24 10:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:34:27] Production.INFO: ==7963== Releasing lock... [2024-12-24 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:34:27] Production.INFO: 46.75 MB #Memory Used# [2024-12-24 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:35:05 [end_date_ymd] => 2024-12-24 10:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:35:23] Production.INFO: count ==2481 [2024-12-24 10:35:23] Production.ERROR: pbx CDR StartTime 2024-12-24 07:35:05 - End Time 2024-12-24 10:35:05 [2024-12-24 10:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091603', 'tblTempUsageDetail_20' ) start [2024-12-24 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091603', 'tblTempUsageDetail_20' ) end [2024-12-24 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091603', 'tblTempVendorCDR_20' ) start [2024-12-24 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091603', 'tblTempVendorCDR_20' ) end [2024-12-24 10:35:24] Production.INFO: ProcessCDR(1,14091603,1,1,2) [2024-12-24 10:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091603', 'tblTempUsageDetail_20' ) start [2024-12-24 10:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091603', 'tblTempUsageDetail_20' ) end [2024-12-24 10:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:35:28] Production.INFO: ==8036== Releasing lock... [2024-12-24 10:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:35:28] Production.INFO: 46.75 MB #Memory Used# [2024-12-24 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:36:05 [end_date_ymd] => 2024-12-24 10:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:36:18] Production.INFO: count ==2490 [2024-12-24 10:36:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:36:05 - End Time 2024-12-24 10:36:05 [2024-12-24 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091608', 'tblTempUsageDetail_20' ) start [2024-12-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091608', 'tblTempUsageDetail_20' ) end [2024-12-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091608', 'tblTempVendorCDR_20' ) start [2024-12-24 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091608', 'tblTempVendorCDR_20' ) end [2024-12-24 10:36:19] Production.INFO: ProcessCDR(1,14091608,1,1,2) [2024-12-24 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091608', 'tblTempUsageDetail_20' ) start [2024-12-24 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091608', 'tblTempUsageDetail_20' ) end [2024-12-24 10:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:36:23] Production.INFO: ==8107== Releasing lock... [2024-12-24 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:36:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-24 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:37:04 [end_date_ymd] => 2024-12-24 10:37:04 [RateCDR] => 1 ) [2024-12-24 10:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:37:04' and `end` < '2024-12-24 10:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:37:17] Production.INFO: count ==2499 [2024-12-24 10:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:37:04 - End Time 2024-12-24 10:37:04 [2024-12-24 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091613', 'tblTempUsageDetail_20' ) start [2024-12-24 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091613', 'tblTempUsageDetail_20' ) end [2024-12-24 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091613', 'tblTempVendorCDR_20' ) start [2024-12-24 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091613', 'tblTempVendorCDR_20' ) end [2024-12-24 10:37:18] Production.INFO: ProcessCDR(1,14091613,1,1,2) [2024-12-24 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091613', 'tblTempUsageDetail_20' ) start [2024-12-24 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091613', 'tblTempUsageDetail_20' ) end [2024-12-24 10:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:37:23] Production.INFO: ==8181== Releasing lock... [2024-12-24 10:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:37:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-24 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:38:05 [end_date_ymd] => 2024-12-24 10:38:05 [RateCDR] => 1 ) [2024-12-24 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:38:05' and `end` < '2024-12-24 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:38:17] Production.INFO: count ==2515 [2024-12-24 10:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:38:05 - End Time 2024-12-24 10:38:05 [2024-12-24 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091618', 'tblTempUsageDetail_20' ) start [2024-12-24 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091618', 'tblTempUsageDetail_20' ) end [2024-12-24 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091618', 'tblTempVendorCDR_20' ) start [2024-12-24 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091618', 'tblTempVendorCDR_20' ) end [2024-12-24 10:38:18] Production.INFO: ProcessCDR(1,14091618,1,1,2) [2024-12-24 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091618', 'tblTempUsageDetail_20' ) start [2024-12-24 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091618', 'tblTempUsageDetail_20' ) end [2024-12-24 10:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:38:23] Production.INFO: ==8250== Releasing lock... [2024-12-24 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:38:23] Production.INFO: 47 MB #Memory Used# [2024-12-24 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:39:05 [end_date_ymd] => 2024-12-24 10:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:39:22] Production.INFO: count ==2521 [2024-12-24 10:39:23] Production.ERROR: pbx CDR StartTime 2024-12-24 07:39:05 - End Time 2024-12-24 10:39:05 [2024-12-24 10:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091623', 'tblTempUsageDetail_20' ) start [2024-12-24 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091623', 'tblTempUsageDetail_20' ) end [2024-12-24 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091623', 'tblTempVendorCDR_20' ) start [2024-12-24 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091623', 'tblTempVendorCDR_20' ) end [2024-12-24 10:39:24] Production.INFO: ProcessCDR(1,14091623,1,1,2) [2024-12-24 10:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091623', 'tblTempUsageDetail_20' ) start [2024-12-24 10:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091623', 'tblTempUsageDetail_20' ) end [2024-12-24 10:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:39:28] Production.INFO: ==8333== Releasing lock... [2024-12-24 10:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:39:28] Production.INFO: 47 MB #Memory Used# [2024-12-24 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:40:05 [end_date_ymd] => 2024-12-24 10:40:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:40:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:40:22] Production.INFO: count ==2541 [2024-12-24 10:40:23] Production.ERROR: pbx CDR StartTime 2024-12-24 07:40:05 - End Time 2024-12-24 10:40:05 [2024-12-24 10:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091629', 'tblTempUsageDetail_20' ) start [2024-12-24 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091629', 'tblTempUsageDetail_20' ) end [2024-12-24 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091629', 'tblTempVendorCDR_20' ) start [2024-12-24 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091629', 'tblTempVendorCDR_20' ) end [2024-12-24 10:40:23] Production.INFO: ProcessCDR(1,14091629,1,1,2) [2024-12-24 10:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091629', 'tblTempUsageDetail_20' ) start [2024-12-24 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091629', 'tblTempUsageDetail_20' ) end [2024-12-24 10:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:40:26] Production.INFO: ==8410== Releasing lock... [2024-12-24 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:40:26] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:41:05 [end_date_ymd] => 2024-12-24 10:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:41:20] Production.INFO: count ==2598 [2024-12-24 10:41:21] Production.ERROR: pbx CDR StartTime 2024-12-24 07:41:05 - End Time 2024-12-24 10:41:05 [2024-12-24 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091634', 'tblTempUsageDetail_20' ) start [2024-12-24 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091634', 'tblTempUsageDetail_20' ) end [2024-12-24 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091634', 'tblTempVendorCDR_20' ) start [2024-12-24 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091634', 'tblTempVendorCDR_20' ) end [2024-12-24 10:41:21] Production.INFO: ProcessCDR(1,14091634,1,1,2) [2024-12-24 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091634', 'tblTempUsageDetail_20' ) start [2024-12-24 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091634', 'tblTempUsageDetail_20' ) end [2024-12-24 10:41:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:41:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:41:26] Production.INFO: ==8483== Releasing lock... [2024-12-24 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:41:26] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:42:04 [end_date_ymd] => 2024-12-24 10:42:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:42:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:42:18] Production.INFO: count ==2598 [2024-12-24 10:42:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:42:04 - End Time 2024-12-24 10:42:04 [2024-12-24 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091639', 'tblTempUsageDetail_20' ) start [2024-12-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091639', 'tblTempUsageDetail_20' ) end [2024-12-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091639', 'tblTempVendorCDR_20' ) start [2024-12-24 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091639', 'tblTempVendorCDR_20' ) end [2024-12-24 10:42:19] Production.INFO: ProcessCDR(1,14091639,1,1,2) [2024-12-24 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091639', 'tblTempUsageDetail_20' ) start [2024-12-24 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091639', 'tblTempUsageDetail_20' ) end [2024-12-24 10:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:42:22] Production.INFO: ==8563== Releasing lock... [2024-12-24 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:42:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:43:05 [end_date_ymd] => 2024-12-24 10:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:43:17] Production.INFO: count ==2618 [2024-12-24 10:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 07:43:05 - End Time 2024-12-24 10:43:05 [2024-12-24 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091644', 'tblTempUsageDetail_20' ) start [2024-12-24 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091644', 'tblTempUsageDetail_20' ) end [2024-12-24 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091644', 'tblTempVendorCDR_20' ) start [2024-12-24 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091644', 'tblTempVendorCDR_20' ) end [2024-12-24 10:43:19] Production.INFO: ProcessCDR(1,14091644,1,1,2) [2024-12-24 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091644', 'tblTempUsageDetail_20' ) start [2024-12-24 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091644', 'tblTempUsageDetail_20' ) end [2024-12-24 10:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:43:23] Production.INFO: ==8674== Releasing lock... [2024-12-24 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:43:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:44:05 [end_date_ymd] => 2024-12-24 10:44:05 [RateCDR] => 1 ) [2024-12-24 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:44:05' and `end` < '2024-12-24 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:44:18] Production.INFO: count ==2635 [2024-12-24 10:44:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:44:05 - End Time 2024-12-24 10:44:05 [2024-12-24 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091649', 'tblTempUsageDetail_20' ) start [2024-12-24 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091649', 'tblTempUsageDetail_20' ) end [2024-12-24 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091649', 'tblTempVendorCDR_20' ) start [2024-12-24 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091649', 'tblTempVendorCDR_20' ) end [2024-12-24 10:44:19] Production.INFO: ProcessCDR(1,14091649,1,1,2) [2024-12-24 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091649', 'tblTempUsageDetail_20' ) start [2024-12-24 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091649', 'tblTempUsageDetail_20' ) end [2024-12-24 10:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:44:24] Production.INFO: ==8751== Releasing lock... [2024-12-24 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:44:24] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:45:04 [end_date_ymd] => 2024-12-24 10:45:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:45:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:45:22] Production.INFO: count ==2645 [2024-12-24 10:45:23] Production.ERROR: pbx CDR StartTime 2024-12-24 07:45:04 - End Time 2024-12-24 10:45:04 [2024-12-24 10:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091654', 'tblTempUsageDetail_20' ) start [2024-12-24 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091654', 'tblTempUsageDetail_20' ) end [2024-12-24 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091654', 'tblTempVendorCDR_20' ) start [2024-12-24 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091654', 'tblTempVendorCDR_20' ) end [2024-12-24 10:45:23] Production.INFO: ProcessCDR(1,14091654,1,1,2) [2024-12-24 10:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091654', 'tblTempUsageDetail_20' ) start [2024-12-24 10:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091654', 'tblTempUsageDetail_20' ) end [2024-12-24 10:45:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:45:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:45:28] Production.INFO: ==8838== Releasing lock... [2024-12-24 10:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:45:28] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:46:05 [end_date_ymd] => 2024-12-24 10:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:46:21] Production.INFO: count ==2657 [2024-12-24 10:46:22] Production.ERROR: pbx CDR StartTime 2024-12-24 07:46:05 - End Time 2024-12-24 10:46:05 [2024-12-24 10:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091659', 'tblTempUsageDetail_20' ) start [2024-12-24 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091659', 'tblTempUsageDetail_20' ) end [2024-12-24 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091659', 'tblTempVendorCDR_20' ) start [2024-12-24 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091659', 'tblTempVendorCDR_20' ) end [2024-12-24 10:46:22] Production.INFO: ProcessCDR(1,14091659,1,1,2) [2024-12-24 10:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091659', 'tblTempUsageDetail_20' ) start [2024-12-24 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091659', 'tblTempUsageDetail_20' ) end [2024-12-24 10:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:46:27] Production.INFO: ==8909== Releasing lock... [2024-12-24 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:46:27] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:47:05 [end_date_ymd] => 2024-12-24 10:47:05 [RateCDR] => 1 ) [2024-12-24 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:47:05' and `end` < '2024-12-24 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:47:18] Production.INFO: count ==2668 [2024-12-24 10:47:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:47:05 - End Time 2024-12-24 10:47:05 [2024-12-24 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091664', 'tblTempUsageDetail_20' ) start [2024-12-24 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091664', 'tblTempUsageDetail_20' ) end [2024-12-24 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091664', 'tblTempVendorCDR_20' ) start [2024-12-24 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091664', 'tblTempVendorCDR_20' ) end [2024-12-24 10:47:20] Production.INFO: ProcessCDR(1,14091664,1,1,2) [2024-12-24 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091664', 'tblTempUsageDetail_20' ) start [2024-12-24 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091664', 'tblTempUsageDetail_20' ) end [2024-12-24 10:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:47:24] Production.INFO: ==8981== Releasing lock... [2024-12-24 10:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:47:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:48:06 [end_date_ymd] => 2024-12-24 10:48:06 [RateCDR] => 1 ) [2024-12-24 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:48:06' and `end` < '2024-12-24 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:48:20] Production.INFO: count ==2677 [2024-12-24 10:48:21] Production.ERROR: pbx CDR StartTime 2024-12-24 07:48:06 - End Time 2024-12-24 10:48:06 [2024-12-24 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091669', 'tblTempUsageDetail_20' ) start [2024-12-24 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091669', 'tblTempUsageDetail_20' ) end [2024-12-24 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091669', 'tblTempVendorCDR_20' ) start [2024-12-24 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091669', 'tblTempVendorCDR_20' ) end [2024-12-24 10:48:21] Production.INFO: ProcessCDR(1,14091669,1,1,2) [2024-12-24 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091669', 'tblTempUsageDetail_20' ) start [2024-12-24 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091669', 'tblTempUsageDetail_20' ) end [2024-12-24 10:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:48:26] Production.INFO: ==9053== Releasing lock... [2024-12-24 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:48:26] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:49:05 [end_date_ymd] => 2024-12-24 10:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:49:23] Production.INFO: count ==2690 [2024-12-24 10:49:25] Production.ERROR: pbx CDR StartTime 2024-12-24 07:49:05 - End Time 2024-12-24 10:49:05 [2024-12-24 10:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091674', 'tblTempUsageDetail_20' ) start [2024-12-24 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091674', 'tblTempUsageDetail_20' ) end [2024-12-24 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091674', 'tblTempVendorCDR_20' ) start [2024-12-24 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091674', 'tblTempVendorCDR_20' ) end [2024-12-24 10:49:25] Production.INFO: ProcessCDR(1,14091674,1,1,2) [2024-12-24 10:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091674', 'tblTempUsageDetail_20' ) start [2024-12-24 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091674', 'tblTempUsageDetail_20' ) end [2024-12-24 10:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:49:29] Production.INFO: ==9125== Releasing lock... [2024-12-24 10:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:49:29] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:50:06 [end_date_ymd] => 2024-12-24 10:50:06 [RateCDR] => 1 ) [2024-12-24 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:50:06' and `end` < '2024-12-24 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:50:21] Production.INFO: count ==2711 [2024-12-24 10:50:22] Production.ERROR: pbx CDR StartTime 2024-12-24 07:50:06 - End Time 2024-12-24 10:50:06 [2024-12-24 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091680', 'tblTempUsageDetail_20' ) start [2024-12-24 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091680', 'tblTempUsageDetail_20' ) end [2024-12-24 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091680', 'tblTempVendorCDR_20' ) start [2024-12-24 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091680', 'tblTempVendorCDR_20' ) end [2024-12-24 10:50:22] Production.INFO: ProcessCDR(1,14091680,1,1,2) [2024-12-24 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091680', 'tblTempUsageDetail_20' ) start [2024-12-24 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091680', 'tblTempUsageDetail_20' ) end [2024-12-24 10:50:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:50:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:50:27] Production.INFO: ==9198== Releasing lock... [2024-12-24 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:50:27] Production.INFO: 50 MB #Memory Used# [2024-12-24 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:51:05 [end_date_ymd] => 2024-12-24 10:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:51:22] Production.INFO: count ==2809 [2024-12-24 10:51:23] Production.ERROR: pbx CDR StartTime 2024-12-24 07:51:05 - End Time 2024-12-24 10:51:05 [2024-12-24 10:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091685', 'tblTempUsageDetail_20' ) start [2024-12-24 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091685', 'tblTempUsageDetail_20' ) end [2024-12-24 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091685', 'tblTempVendorCDR_20' ) start [2024-12-24 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091685', 'tblTempVendorCDR_20' ) end [2024-12-24 10:51:23] Production.INFO: ProcessCDR(1,14091685,1,1,2) [2024-12-24 10:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091685', 'tblTempUsageDetail_20' ) start [2024-12-24 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091685', 'tblTempUsageDetail_20' ) end [2024-12-24 10:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:51:28] Production.INFO: ==9275== Releasing lock... [2024-12-24 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:51:28] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:52:05 [end_date_ymd] => 2024-12-24 10:52:05 [RateCDR] => 1 ) [2024-12-24 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 07:52:05' and `end` < '2024-12-24 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 10:52:20] Production.INFO: count ==2863 [2024-12-24 10:52:21] Production.ERROR: pbx CDR StartTime 2024-12-24 07:52:05 - End Time 2024-12-24 10:52:05 [2024-12-24 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091690', 'tblTempUsageDetail_20' ) start [2024-12-24 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091690', 'tblTempUsageDetail_20' ) end [2024-12-24 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091690', 'tblTempVendorCDR_20' ) start [2024-12-24 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091690', 'tblTempVendorCDR_20' ) end [2024-12-24 10:52:21] Production.INFO: ProcessCDR(1,14091690,1,1,2) [2024-12-24 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091690', 'tblTempUsageDetail_20' ) start [2024-12-24 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091690', 'tblTempUsageDetail_20' ) end [2024-12-24 10:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:52:26] Production.INFO: ==9347== Releasing lock... [2024-12-24 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:52:26] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:53:04 [end_date_ymd] => 2024-12-24 10:53:04 [RateCDR] => 1 ) [2024-12-24 10: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` >= '2024-12-24 07:53:04' and `end` < '2024-12-24 10: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 ,'') [2024-12-24 10:53:30] Production.INFO: count ==2898 [2024-12-24 10:53:31] Production.ERROR: pbx CDR StartTime 2024-12-24 07:53:04 - End Time 2024-12-24 10:53:04 [2024-12-24 10:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091695', 'tblTempUsageDetail_20' ) start [2024-12-24 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091695', 'tblTempUsageDetail_20' ) end [2024-12-24 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091695', 'tblTempVendorCDR_20' ) start [2024-12-24 10:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091695', 'tblTempVendorCDR_20' ) end [2024-12-24 10:53:31] Production.INFO: ProcessCDR(1,14091695,1,1,2) [2024-12-24 10:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091695', 'tblTempUsageDetail_20' ) start [2024-12-24 10:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091695', 'tblTempUsageDetail_20' ) end [2024-12-24 10:53:36] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:53:36] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:53:36] Production.INFO: ==9418== Releasing lock... [2024-12-24 10:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:53:36] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:54:05 [end_date_ymd] => 2024-12-24 10:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:54:24] Production.INFO: count ==2932 [2024-12-24 10:54:25] Production.ERROR: pbx CDR StartTime 2024-12-24 07:54:05 - End Time 2024-12-24 10:54:05 [2024-12-24 10:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091700', 'tblTempUsageDetail_20' ) start [2024-12-24 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091700', 'tblTempUsageDetail_20' ) end [2024-12-24 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091700', 'tblTempVendorCDR_20' ) start [2024-12-24 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091700', 'tblTempVendorCDR_20' ) end [2024-12-24 10:54:25] Production.INFO: ProcessCDR(1,14091700,1,1,2) [2024-12-24 10:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091700', 'tblTempUsageDetail_20' ) start [2024-12-24 10:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091700', 'tblTempUsageDetail_20' ) end [2024-12-24 10:54:30] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:54:30] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:54:30] Production.INFO: ==9491== Releasing lock... [2024-12-24 10:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:54:30] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:55:05 [end_date_ymd] => 2024-12-24 10:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:55:22] Production.INFO: count ==2960 [2024-12-24 10:55:23] Production.ERROR: pbx CDR StartTime 2024-12-24 07:55:05 - End Time 2024-12-24 10:55:05 [2024-12-24 10:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091705', 'tblTempUsageDetail_20' ) start [2024-12-24 10:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091705', 'tblTempUsageDetail_20' ) end [2024-12-24 10:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091705', 'tblTempVendorCDR_20' ) start [2024-12-24 10:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091705', 'tblTempVendorCDR_20' ) end [2024-12-24 10:55:23] Production.INFO: ProcessCDR(1,14091705,1,1,2) [2024-12-24 10:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091705', 'tblTempUsageDetail_20' ) start [2024-12-24 10:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091705', 'tblTempUsageDetail_20' ) end [2024-12-24 10:55:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:55:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:55:28] Production.INFO: ==9563== Releasing lock... [2024-12-24 10:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:55:28] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:56:05 [end_date_ymd] => 2024-12-24 10:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:56:18] Production.INFO: count ==2993 [2024-12-24 10:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:56:05 - End Time 2024-12-24 10:56:05 [2024-12-24 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091710', 'tblTempUsageDetail_20' ) start [2024-12-24 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091710', 'tblTempUsageDetail_20' ) end [2024-12-24 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091710', 'tblTempVendorCDR_20' ) start [2024-12-24 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091710', 'tblTempVendorCDR_20' ) end [2024-12-24 10:56:19] Production.INFO: ProcessCDR(1,14091710,1,1,2) [2024-12-24 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091710', 'tblTempUsageDetail_20' ) start [2024-12-24 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091710', 'tblTempUsageDetail_20' ) end [2024-12-24 10:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:56:24] Production.INFO: ==9637== Releasing lock... [2024-12-24 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:56:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:57:05 [end_date_ymd] => 2024-12-24 10:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:57:25] Production.INFO: count ==3042 [2024-12-24 10:57:26] Production.ERROR: pbx CDR StartTime 2024-12-24 07:57:05 - End Time 2024-12-24 10:57:05 [2024-12-24 10:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091715', 'tblTempUsageDetail_20' ) start [2024-12-24 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091715', 'tblTempUsageDetail_20' ) end [2024-12-24 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091715', 'tblTempVendorCDR_20' ) start [2024-12-24 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091715', 'tblTempVendorCDR_20' ) end [2024-12-24 10:57:26] Production.INFO: ProcessCDR(1,14091715,1,1,2) [2024-12-24 10:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091715', 'tblTempUsageDetail_20' ) start [2024-12-24 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091715', 'tblTempUsageDetail_20' ) end [2024-12-24 10:57:31] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:57:31] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:57:31] Production.INFO: ==9713== Releasing lock... [2024-12-24 10:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:57:31] Production.INFO: 51 MB #Memory Used# [2024-12-24 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:58:05 [end_date_ymd] => 2024-12-24 10:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:58:20] Production.INFO: count ==3061 [2024-12-24 10:58:21] Production.ERROR: pbx CDR StartTime 2024-12-24 07:58:05 - End Time 2024-12-24 10:58:05 [2024-12-24 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091720', 'tblTempUsageDetail_20' ) start [2024-12-24 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091720', 'tblTempUsageDetail_20' ) end [2024-12-24 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091720', 'tblTempVendorCDR_20' ) start [2024-12-24 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091720', 'tblTempVendorCDR_20' ) end [2024-12-24 10:58:21] Production.INFO: ProcessCDR(1,14091720,1,1,2) [2024-12-24 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091720', 'tblTempUsageDetail_20' ) start [2024-12-24 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091720', 'tblTempUsageDetail_20' ) end [2024-12-24 10:58:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:58:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:58:26] Production.INFO: ==9784== Releasing lock... [2024-12-24 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:58:26] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 07:59:05 [end_date_ymd] => 2024-12-24 10:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 07:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 10:59:18] Production.INFO: count ==3093 [2024-12-24 10:59:19] Production.ERROR: pbx CDR StartTime 2024-12-24 07:59:05 - End Time 2024-12-24 10:59:05 [2024-12-24 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091725', 'tblTempUsageDetail_20' ) start [2024-12-24 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091725', 'tblTempUsageDetail_20' ) end [2024-12-24 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091725', 'tblTempVendorCDR_20' ) start [2024-12-24 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091725', 'tblTempVendorCDR_20' ) end [2024-12-24 10:59:20] Production.INFO: ProcessCDR(1,14091725,1,1,2) [2024-12-24 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091725', 'tblTempUsageDetail_20' ) start [2024-12-24 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091725', 'tblTempUsageDetail_20' ) end [2024-12-24 10:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 10:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 10:59:24] Production.INFO: ==9898== Releasing lock... [2024-12-24 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 10:59:24] Production.INFO: 51 MB #Memory Used# [2024-12-24 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:00:06 [end_date_ymd] => 2024-12-24 11:00:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:00:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:00:20] Production.INFO: count ==3103 [2024-12-24 11:00:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:00:06 - End Time 2024-12-24 11:00:06 [2024-12-24 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091731', 'tblTempUsageDetail_20' ) start [2024-12-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091731', 'tblTempUsageDetail_20' ) end [2024-12-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091731', 'tblTempVendorCDR_20' ) start [2024-12-24 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091731', 'tblTempVendorCDR_20' ) end [2024-12-24 11:00:21] Production.INFO: ProcessCDR(1,14091731,1,1,2) [2024-12-24 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091731', 'tblTempUsageDetail_20' ) start [2024-12-24 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091731', 'tblTempUsageDetail_20' ) end [2024-12-24 11:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:00:26] Production.INFO: ==9972== Releasing lock... [2024-12-24 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:00:26] Production.INFO: 51.25 MB #Memory Used# [2024-12-24 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:01:05 [end_date_ymd] => 2024-12-24 11:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:01:27] Production.INFO: count ==3197 [2024-12-24 11:01:28] Production.ERROR: pbx CDR StartTime 2024-12-24 08:01:05 - End Time 2024-12-24 11:01:05 [2024-12-24 11:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091736', 'tblTempUsageDetail_20' ) start [2024-12-24 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091736', 'tblTempUsageDetail_20' ) end [2024-12-24 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091736', 'tblTempVendorCDR_20' ) start [2024-12-24 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091736', 'tblTempVendorCDR_20' ) end [2024-12-24 11:01:28] Production.INFO: ProcessCDR(1,14091736,1,1,2) [2024-12-24 11:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091736', 'tblTempUsageDetail_20' ) start [2024-12-24 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091736', 'tblTempUsageDetail_20' ) end [2024-12-24 11:01:33] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:01:33] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:01:33] Production.INFO: ==10056== Releasing lock... [2024-12-24 11:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:01:33] Production.INFO: 51.75 MB #Memory Used# [2024-12-24 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:02:05 [end_date_ymd] => 2024-12-24 11:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:02:19] Production.INFO: count ==3224 [2024-12-24 11:02:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:02:05 - End Time 2024-12-24 11:02:05 [2024-12-24 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091741', 'tblTempUsageDetail_20' ) start [2024-12-24 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091741', 'tblTempUsageDetail_20' ) end [2024-12-24 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091741', 'tblTempVendorCDR_20' ) start [2024-12-24 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091741', 'tblTempVendorCDR_20' ) end [2024-12-24 11:02:21] Production.INFO: ProcessCDR(1,14091741,1,1,2) [2024-12-24 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091741', 'tblTempUsageDetail_20' ) start [2024-12-24 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091741', 'tblTempUsageDetail_20' ) end [2024-12-24 11:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:02:25] Production.INFO: ==10207== Releasing lock... [2024-12-24 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:02:25] Production.INFO: 52 MB #Memory Used# [2024-12-24 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:03:04 [end_date_ymd] => 2024-12-24 11:03:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:03:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:03:21] Production.INFO: count ==3215 [2024-12-24 11:03:22] Production.ERROR: pbx CDR StartTime 2024-12-24 08:03:04 - End Time 2024-12-24 11:03:04 [2024-12-24 11:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091746', 'tblTempUsageDetail_20' ) start [2024-12-24 11:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091746', 'tblTempUsageDetail_20' ) end [2024-12-24 11:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091746', 'tblTempVendorCDR_20' ) start [2024-12-24 11:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091746', 'tblTempVendorCDR_20' ) end [2024-12-24 11:03:23] Production.INFO: ProcessCDR(1,14091746,1,1,2) [2024-12-24 11:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091746', 'tblTempUsageDetail_20' ) start [2024-12-24 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091746', 'tblTempUsageDetail_20' ) end [2024-12-24 11:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:03:27] Production.INFO: ==10279== Releasing lock... [2024-12-24 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:03:27] Production.INFO: 52 MB #Memory Used# [2024-12-24 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:04:05 [end_date_ymd] => 2024-12-24 11:04:05 [RateCDR] => 1 ) [2024-12-24 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:04:05' and `end` < '2024-12-24 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:04:19] Production.INFO: count ==3221 [2024-12-24 11:04:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:04:05 - End Time 2024-12-24 11:04:05 [2024-12-24 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091751', 'tblTempUsageDetail_20' ) start [2024-12-24 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091751', 'tblTempUsageDetail_20' ) end [2024-12-24 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091751', 'tblTempVendorCDR_20' ) start [2024-12-24 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091751', 'tblTempVendorCDR_20' ) end [2024-12-24 11:04:21] Production.INFO: ProcessCDR(1,14091751,1,1,2) [2024-12-24 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091751', 'tblTempUsageDetail_20' ) start [2024-12-24 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091751', 'tblTempUsageDetail_20' ) end [2024-12-24 11:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:04:25] Production.INFO: ==10352== Releasing lock... [2024-12-24 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:04:25] Production.INFO: 53.5 MB #Memory Used# [2024-12-24 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:05:04 [end_date_ymd] => 2024-12-24 11:05:04 [RateCDR] => 1 ) [2024-12-24 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:05:04' and `end` < '2024-12-24 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:05:17] Production.INFO: count ==3217 [2024-12-24 11:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 08:05:04 - End Time 2024-12-24 11:05:04 [2024-12-24 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091756', 'tblTempUsageDetail_20' ) start [2024-12-24 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091756', 'tblTempUsageDetail_20' ) end [2024-12-24 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091756', 'tblTempVendorCDR_20' ) start [2024-12-24 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091756', 'tblTempVendorCDR_20' ) end [2024-12-24 11:05:18] Production.INFO: ProcessCDR(1,14091756,1,1,2) [2024-12-24 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091756', 'tblTempUsageDetail_20' ) start [2024-12-24 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091756', 'tblTempUsageDetail_20' ) end [2024-12-24 11:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:05:23] Production.INFO: ==10498== Releasing lock... [2024-12-24 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:05:23] Production.INFO: 52 MB #Memory Used# [2024-12-24 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:06:05 [end_date_ymd] => 2024-12-24 11:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:06:22] Production.INFO: count ==3218 [2024-12-24 11:06:24] Production.ERROR: pbx CDR StartTime 2024-12-24 08:06:05 - End Time 2024-12-24 11:06:05 [2024-12-24 11:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091761', 'tblTempUsageDetail_20' ) start [2024-12-24 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091761', 'tblTempUsageDetail_20' ) end [2024-12-24 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091761', 'tblTempVendorCDR_20' ) start [2024-12-24 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091761', 'tblTempVendorCDR_20' ) end [2024-12-24 11:06:24] Production.INFO: ProcessCDR(1,14091761,1,1,2) [2024-12-24 11:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091761', 'tblTempUsageDetail_20' ) start [2024-12-24 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091761', 'tblTempUsageDetail_20' ) end [2024-12-24 11:06:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:06:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:06:28] Production.INFO: ==10572== Releasing lock... [2024-12-24 11:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:06:28] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:07:05 [end_date_ymd] => 2024-12-24 11:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:07:28] Production.INFO: count ==3252 [2024-12-24 11:07:30] Production.ERROR: pbx CDR StartTime 2024-12-24 08:07:05 - End Time 2024-12-24 11:07:05 [2024-12-24 11:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091766', 'tblTempUsageDetail_20' ) start [2024-12-24 11:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091766', 'tblTempUsageDetail_20' ) end [2024-12-24 11:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091766', 'tblTempVendorCDR_20' ) start [2024-12-24 11:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091766', 'tblTempVendorCDR_20' ) end [2024-12-24 11:07:30] Production.INFO: ProcessCDR(1,14091766,1,1,2) [2024-12-24 11:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091766', 'tblTempUsageDetail_20' ) start [2024-12-24 11:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091766', 'tblTempUsageDetail_20' ) end [2024-12-24 11:07:35] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:07:35] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:07:35] Production.INFO: ==10645== Releasing lock... [2024-12-24 11:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:07:35] Production.INFO: 52.75 MB #Memory Used# [2024-12-24 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:08:05 [end_date_ymd] => 2024-12-24 11:08:05 [RateCDR] => 1 ) [2024-12-24 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:08:05' and `end` < '2024-12-24 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:08:19] Production.INFO: count ==3265 [2024-12-24 11:08:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:08:05 - End Time 2024-12-24 11:08:05 [2024-12-24 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091771', 'tblTempUsageDetail_20' ) start [2024-12-24 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091771', 'tblTempUsageDetail_20' ) end [2024-12-24 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091771', 'tblTempVendorCDR_20' ) start [2024-12-24 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091771', 'tblTempVendorCDR_20' ) end [2024-12-24 11:08:21] Production.INFO: ProcessCDR(1,14091771,1,1,2) [2024-12-24 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091771', 'tblTempUsageDetail_20' ) start [2024-12-24 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091771', 'tblTempUsageDetail_20' ) end [2024-12-24 11:08:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:08:25] Production.INFO: ==10794== Releasing lock... [2024-12-24 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:08:25] Production.INFO: 53 MB #Memory Used# [2024-12-24 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:09:05 [end_date_ymd] => 2024-12-24 11:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:09:21] Production.INFO: count ==3275 [2024-12-24 11:09:23] Production.ERROR: pbx CDR StartTime 2024-12-24 08:09:05 - End Time 2024-12-24 11:09:05 [2024-12-24 11:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091776', 'tblTempUsageDetail_20' ) start [2024-12-24 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091776', 'tblTempUsageDetail_20' ) end [2024-12-24 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091776', 'tblTempVendorCDR_20' ) start [2024-12-24 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091776', 'tblTempVendorCDR_20' ) end [2024-12-24 11:09:23] Production.INFO: ProcessCDR(1,14091776,1,1,2) [2024-12-24 11:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091776', 'tblTempUsageDetail_20' ) start [2024-12-24 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091776', 'tblTempUsageDetail_20' ) end [2024-12-24 11:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:09:27] Production.INFO: ==10874== Releasing lock... [2024-12-24 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:09:27] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:10:05 [end_date_ymd] => 2024-12-24 11:10:05 [RateCDR] => 1 ) [2024-12-24 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:10:05' and `end` < '2024-12-24 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:10:18] Production.INFO: count ==3268 [2024-12-24 11:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:10:05 - End Time 2024-12-24 11:10:05 [2024-12-24 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091782', 'tblTempUsageDetail_20' ) start [2024-12-24 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091782', 'tblTempUsageDetail_20' ) end [2024-12-24 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091782', 'tblTempVendorCDR_20' ) start [2024-12-24 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091782', 'tblTempVendorCDR_20' ) end [2024-12-24 11:10:19] Production.INFO: ProcessCDR(1,14091782,1,1,2) [2024-12-24 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091782', 'tblTempUsageDetail_20' ) start [2024-12-24 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091782', 'tblTempUsageDetail_20' ) end [2024-12-24 11:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:10:23] Production.INFO: ==10951== Releasing lock... [2024-12-24 11:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:10:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:11:05 [end_date_ymd] => 2024-12-24 11:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:11:18] Production.INFO: count ==3326 [2024-12-24 11:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:11:05 - End Time 2024-12-24 11:11:05 [2024-12-24 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091787', 'tblTempUsageDetail_20' ) start [2024-12-24 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091787', 'tblTempUsageDetail_20' ) end [2024-12-24 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091787', 'tblTempVendorCDR_20' ) start [2024-12-24 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091787', 'tblTempVendorCDR_20' ) end [2024-12-24 11:11:19] Production.INFO: ProcessCDR(1,14091787,1,1,2) [2024-12-24 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091787', 'tblTempUsageDetail_20' ) start [2024-12-24 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091787', 'tblTempUsageDetail_20' ) end [2024-12-24 11:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:11:24] Production.INFO: ==11031== Releasing lock... [2024-12-24 11:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:11:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-24 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:12:04 [end_date_ymd] => 2024-12-24 11:12:04 [RateCDR] => 1 ) [2024-12-24 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:12:04' and `end` < '2024-12-24 11:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:12:17] Production.INFO: count ==3321 [2024-12-24 11:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:12:04 - End Time 2024-12-24 11:12:04 [2024-12-24 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091792', 'tblTempUsageDetail_20' ) start [2024-12-24 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091792', 'tblTempUsageDetail_20' ) end [2024-12-24 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091792', 'tblTempVendorCDR_20' ) start [2024-12-24 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091792', 'tblTempVendorCDR_20' ) end [2024-12-24 11:12:19] Production.INFO: ProcessCDR(1,14091792,1,1,2) [2024-12-24 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091792', 'tblTempUsageDetail_20' ) start [2024-12-24 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091792', 'tblTempUsageDetail_20' ) end [2024-12-24 11:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:12:23] Production.INFO: ==11181== Releasing lock... [2024-12-24 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:12:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-24 11:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:13:04 [end_date_ymd] => 2024-12-24 11:13:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:13:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:13:18] Production.INFO: count ==3342 [2024-12-24 11:13:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:13:04 - End Time 2024-12-24 11:13:04 [2024-12-24 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091797', 'tblTempUsageDetail_20' ) start [2024-12-24 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091797', 'tblTempUsageDetail_20' ) end [2024-12-24 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091797', 'tblTempVendorCDR_20' ) start [2024-12-24 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091797', 'tblTempVendorCDR_20' ) end [2024-12-24 11:13:20] Production.INFO: ProcessCDR(1,14091797,1,1,2) [2024-12-24 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091797', 'tblTempUsageDetail_20' ) start [2024-12-24 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091797', 'tblTempUsageDetail_20' ) end [2024-12-24 11:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:13:24] Production.INFO: ==11262== Releasing lock... [2024-12-24 11:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:13:24] Production.INFO: 53 MB #Memory Used# [2024-12-24 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:14:05 [end_date_ymd] => 2024-12-24 11:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:14:20] Production.INFO: count ==3349 [2024-12-24 11:14:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:14:05 - End Time 2024-12-24 11:14:05 [2024-12-24 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091802', 'tblTempUsageDetail_20' ) start [2024-12-24 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091802', 'tblTempUsageDetail_20' ) end [2024-12-24 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091802', 'tblTempVendorCDR_20' ) start [2024-12-24 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091802', 'tblTempVendorCDR_20' ) end [2024-12-24 11:14:21] Production.INFO: ProcessCDR(1,14091802,1,1,2) [2024-12-24 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091802', 'tblTempUsageDetail_20' ) start [2024-12-24 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091802', 'tblTempUsageDetail_20' ) end [2024-12-24 11:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:14:26] Production.INFO: ==11390== Releasing lock... [2024-12-24 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:14:26] Production.INFO: 54.75 MB #Memory Used# [2024-12-24 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:15:04 [end_date_ymd] => 2024-12-24 11:15:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:15:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:15:27] Production.INFO: count ==3376 [2024-12-24 11:15:28] Production.ERROR: pbx CDR StartTime 2024-12-24 08:15:04 - End Time 2024-12-24 11:15:04 [2024-12-24 11:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091807', 'tblTempUsageDetail_20' ) start [2024-12-24 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091807', 'tblTempUsageDetail_20' ) end [2024-12-24 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091807', 'tblTempVendorCDR_20' ) start [2024-12-24 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091807', 'tblTempVendorCDR_20' ) end [2024-12-24 11:15:29] Production.INFO: ProcessCDR(1,14091807,1,1,2) [2024-12-24 11:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091807', 'tblTempUsageDetail_20' ) start [2024-12-24 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091807', 'tblTempUsageDetail_20' ) end [2024-12-24 11:15:33] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:15:33] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:15:33] Production.INFO: ==11561== Releasing lock... [2024-12-24 11:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:15:33] Production.INFO: 53.25 MB #Memory Used# [2024-12-24 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:16:05 [end_date_ymd] => 2024-12-24 11:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:16:20] Production.INFO: count ==3383 [2024-12-24 11:16:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:16:05 - End Time 2024-12-24 11:16:05 [2024-12-24 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091812', 'tblTempUsageDetail_20' ) start [2024-12-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091812', 'tblTempUsageDetail_20' ) end [2024-12-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091812', 'tblTempVendorCDR_20' ) start [2024-12-24 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091812', 'tblTempVendorCDR_20' ) end [2024-12-24 11:16:21] Production.INFO: ProcessCDR(1,14091812,1,1,2) [2024-12-24 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091812', 'tblTempUsageDetail_20' ) start [2024-12-24 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091812', 'tblTempUsageDetail_20' ) end [2024-12-24 11:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:16:26] Production.INFO: ==11655== Releasing lock... [2024-12-24 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:16:26] Production.INFO: 53.25 MB #Memory Used# [2024-12-24 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:17:04 [end_date_ymd] => 2024-12-24 11:17:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:17:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:17:17] Production.INFO: count ==3401 [2024-12-24 11:17:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:17:04 - End Time 2024-12-24 11:17:04 [2024-12-24 11:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091817', 'tblTempUsageDetail_20' ) start [2024-12-24 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091817', 'tblTempUsageDetail_20' ) end [2024-12-24 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091817', 'tblTempVendorCDR_20' ) start [2024-12-24 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091817', 'tblTempVendorCDR_20' ) end [2024-12-24 11:17:19] Production.INFO: ProcessCDR(1,14091817,1,1,2) [2024-12-24 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091817', 'tblTempUsageDetail_20' ) start [2024-12-24 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091817', 'tblTempUsageDetail_20' ) end [2024-12-24 11:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:17:23] Production.INFO: ==11741== Releasing lock... [2024-12-24 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:17:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-24 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:18:05 [end_date_ymd] => 2024-12-24 11:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:18:19] Production.INFO: count ==3375 [2024-12-24 11:18:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:18:05 - End Time 2024-12-24 11:18:05 [2024-12-24 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091822', 'tblTempUsageDetail_20' ) start [2024-12-24 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091822', 'tblTempUsageDetail_20' ) end [2024-12-24 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091822', 'tblTempVendorCDR_20' ) start [2024-12-24 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091822', 'tblTempVendorCDR_20' ) end [2024-12-24 11:18:21] Production.INFO: ProcessCDR(1,14091822,1,1,2) [2024-12-24 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091822', 'tblTempUsageDetail_20' ) start [2024-12-24 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091822', 'tblTempUsageDetail_20' ) end [2024-12-24 11:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:18:25] Production.INFO: ==11838== Releasing lock... [2024-12-24 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:18:25] Production.INFO: 53.5 MB #Memory Used# [2024-12-24 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:19:04 [end_date_ymd] => 2024-12-24 11:19:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:19:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:19:19] Production.INFO: count ==3377 [2024-12-24 11:19:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:19:04 - End Time 2024-12-24 11:19:04 [2024-12-24 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091827', 'tblTempUsageDetail_20' ) start [2024-12-24 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091827', 'tblTempUsageDetail_20' ) end [2024-12-24 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091827', 'tblTempVendorCDR_20' ) start [2024-12-24 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091827', 'tblTempVendorCDR_20' ) end [2024-12-24 11:19:20] Production.INFO: ProcessCDR(1,14091827,1,1,2) [2024-12-24 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091827', 'tblTempUsageDetail_20' ) start [2024-12-24 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091827', 'tblTempUsageDetail_20' ) end [2024-12-24 11:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:19:25] Production.INFO: ==11931== Releasing lock... [2024-12-24 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:19:25] Production.INFO: 53.75 MB #Memory Used# [2024-12-24 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:20:06 [end_date_ymd] => 2024-12-24 11:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:20:18] Production.INFO: count ==3380 [2024-12-24 11:20:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:20:06 - End Time 2024-12-24 11:20:06 [2024-12-24 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091832', 'tblTempUsageDetail_20' ) start [2024-12-24 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091832', 'tblTempUsageDetail_20' ) end [2024-12-24 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091832', 'tblTempVendorCDR_20' ) start [2024-12-24 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091832', 'tblTempVendorCDR_20' ) end [2024-12-24 11:20:20] Production.INFO: ProcessCDR(1,14091832,1,1,2) [2024-12-24 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091832', 'tblTempUsageDetail_20' ) start [2024-12-24 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091832', 'tblTempUsageDetail_20' ) end [2024-12-24 11:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:20:25] Production.INFO: ==12009== Releasing lock... [2024-12-24 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:20:25] Production.INFO: 54.25 MB #Memory Used# [2024-12-24 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:21:04 [end_date_ymd] => 2024-12-24 11:21:04 [RateCDR] => 1 ) [2024-12-24 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:21:04' and `end` < '2024-12-24 11:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:21:21] Production.INFO: count ==3444 [2024-12-24 11:21:22] Production.ERROR: pbx CDR StartTime 2024-12-24 08:21:04 - End Time 2024-12-24 11:21:04 [2024-12-24 11:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091838', 'tblTempUsageDetail_20' ) start [2024-12-24 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091838', 'tblTempUsageDetail_20' ) end [2024-12-24 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091838', 'tblTempVendorCDR_20' ) start [2024-12-24 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091838', 'tblTempVendorCDR_20' ) end [2024-12-24 11:21:22] Production.INFO: ProcessCDR(1,14091838,1,1,2) [2024-12-24 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091838', 'tblTempUsageDetail_20' ) start [2024-12-24 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091838', 'tblTempUsageDetail_20' ) end [2024-12-24 11:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:21:27] Production.INFO: ==12089== Releasing lock... [2024-12-24 11:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:21:27] Production.INFO: 54.25 MB #Memory Used# [2024-12-24 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:22:05 [end_date_ymd] => 2024-12-24 11:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:22:18] Production.INFO: count ==3434 [2024-12-24 11:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:22:05 - End Time 2024-12-24 11:22:05 [2024-12-24 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091843', 'tblTempUsageDetail_20' ) start [2024-12-24 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091843', 'tblTempUsageDetail_20' ) end [2024-12-24 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091843', 'tblTempVendorCDR_20' ) start [2024-12-24 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091843', 'tblTempVendorCDR_20' ) end [2024-12-24 11:22:19] Production.INFO: ProcessCDR(1,14091843,1,1,2) [2024-12-24 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091843', 'tblTempUsageDetail_20' ) start [2024-12-24 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091843', 'tblTempUsageDetail_20' ) end [2024-12-24 11:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:22:24] Production.INFO: ==12170== Releasing lock... [2024-12-24 11:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:22:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-24 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:23:05 [end_date_ymd] => 2024-12-24 11:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:23:21] Production.INFO: count ==3428 [2024-12-24 11:23:22] Production.ERROR: pbx CDR StartTime 2024-12-24 08:23:05 - End Time 2024-12-24 11:23:05 [2024-12-24 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091848', 'tblTempUsageDetail_20' ) start [2024-12-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091848', 'tblTempUsageDetail_20' ) end [2024-12-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091848', 'tblTempVendorCDR_20' ) start [2024-12-24 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091848', 'tblTempVendorCDR_20' ) end [2024-12-24 11:23:22] Production.INFO: ProcessCDR(1,14091848,1,1,2) [2024-12-24 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091848', 'tblTempUsageDetail_20' ) start [2024-12-24 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091848', 'tblTempUsageDetail_20' ) end [2024-12-24 11:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:23:27] Production.INFO: ==12245== Releasing lock... [2024-12-24 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:23:27] Production.INFO: 53.5 MB #Memory Used# [2024-12-24 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:24:05 [end_date_ymd] => 2024-12-24 11:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:24:23] Production.INFO: count ==3451 [2024-12-24 11:24:24] Production.ERROR: pbx CDR StartTime 2024-12-24 08:24:05 - End Time 2024-12-24 11:24:05 [2024-12-24 11:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091853', 'tblTempUsageDetail_20' ) start [2024-12-24 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091853', 'tblTempUsageDetail_20' ) end [2024-12-24 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091853', 'tblTempVendorCDR_20' ) start [2024-12-24 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091853', 'tblTempVendorCDR_20' ) end [2024-12-24 11:24:24] Production.INFO: ProcessCDR(1,14091853,1,1,2) [2024-12-24 11:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091853', 'tblTempUsageDetail_20' ) start [2024-12-24 11:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091853', 'tblTempUsageDetail_20' ) end [2024-12-24 11:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:24:29] Production.INFO: ==12326== Releasing lock... [2024-12-24 11:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:24:29] Production.INFO: 54 MB #Memory Used# [2024-12-24 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:25:05 [end_date_ymd] => 2024-12-24 11:25:05 [RateCDR] => 1 ) [2024-12-24 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:25:05' and `end` < '2024-12-24 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:25:23] Production.INFO: count ==3472 [2024-12-24 11:25:24] Production.ERROR: pbx CDR StartTime 2024-12-24 08:25:05 - End Time 2024-12-24 11:25:05 [2024-12-24 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091858', 'tblTempUsageDetail_20' ) start [2024-12-24 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091858', 'tblTempUsageDetail_20' ) end [2024-12-24 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091858', 'tblTempVendorCDR_20' ) start [2024-12-24 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091858', 'tblTempVendorCDR_20' ) end [2024-12-24 11:25:24] Production.INFO: ProcessCDR(1,14091858,1,1,2) [2024-12-24 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091858', 'tblTempUsageDetail_20' ) start [2024-12-24 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091858', 'tblTempUsageDetail_20' ) end [2024-12-24 11:25:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:25:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:25:29] Production.INFO: ==12407== Releasing lock... [2024-12-24 11:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:25:29] Production.INFO: 54.5 MB #Memory Used# [2024-12-24 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:26:04 [end_date_ymd] => 2024-12-24 11:26:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:26:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:26:19] Production.INFO: count ==3486 [2024-12-24 11:26:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:26:04 - End Time 2024-12-24 11:26:04 [2024-12-24 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091863', 'tblTempUsageDetail_20' ) start [2024-12-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091863', 'tblTempUsageDetail_20' ) end [2024-12-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091863', 'tblTempVendorCDR_20' ) start [2024-12-24 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091863', 'tblTempVendorCDR_20' ) end [2024-12-24 11:26:21] Production.INFO: ProcessCDR(1,14091863,1,1,2) [2024-12-24 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091863', 'tblTempUsageDetail_20' ) start [2024-12-24 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091863', 'tblTempUsageDetail_20' ) end [2024-12-24 11:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:26:26] Production.INFO: ==12483== Releasing lock... [2024-12-24 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:26:26] Production.INFO: 54 MB #Memory Used# [2024-12-24 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:27:05 [end_date_ymd] => 2024-12-24 11:27:05 [RateCDR] => 1 ) [2024-12-24 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:27:05' and `end` < '2024-12-24 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:27:25] Production.INFO: count ==3487 [2024-12-24 11:27:26] Production.ERROR: pbx CDR StartTime 2024-12-24 08:27:05 - End Time 2024-12-24 11:27:05 [2024-12-24 11:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091868', 'tblTempUsageDetail_20' ) start [2024-12-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091868', 'tblTempUsageDetail_20' ) end [2024-12-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091868', 'tblTempVendorCDR_20' ) start [2024-12-24 11:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091868', 'tblTempVendorCDR_20' ) end [2024-12-24 11:27:26] Production.INFO: ProcessCDR(1,14091868,1,1,2) [2024-12-24 11:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091868', 'tblTempUsageDetail_20' ) start [2024-12-24 11:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091868', 'tblTempUsageDetail_20' ) end [2024-12-24 11:27:31] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:27:31] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:27:31] Production.INFO: ==12558== Releasing lock... [2024-12-24 11:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:27:31] Production.INFO: 54.5 MB #Memory Used# [2024-12-24 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:28:04 [end_date_ymd] => 2024-12-24 11:28:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:28:04' and `end` < '2024-12-24 11:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:28:17] Production.INFO: count ==3492 [2024-12-24 11:28:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:28:04 - End Time 2024-12-24 11:28:04 [2024-12-24 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091873', 'tblTempUsageDetail_20' ) start [2024-12-24 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091873', 'tblTempUsageDetail_20' ) end [2024-12-24 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091873', 'tblTempVendorCDR_20' ) start [2024-12-24 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091873', 'tblTempVendorCDR_20' ) end [2024-12-24 11:28:19] Production.INFO: ProcessCDR(1,14091873,1,1,2) [2024-12-24 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091873', 'tblTempUsageDetail_20' ) start [2024-12-24 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091873', 'tblTempUsageDetail_20' ) end [2024-12-24 11:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:28:23] Production.INFO: ==12637== Releasing lock... [2024-12-24 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:28:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:29:06 [end_date_ymd] => 2024-12-24 11:29:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:29:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:29:18] Production.INFO: count ==3521 [2024-12-24 11:29:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:29:06 - End Time 2024-12-24 11:29:06 [2024-12-24 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091878', 'tblTempUsageDetail_20' ) start [2024-12-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091878', 'tblTempUsageDetail_20' ) end [2024-12-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091878', 'tblTempVendorCDR_20' ) start [2024-12-24 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091878', 'tblTempVendorCDR_20' ) end [2024-12-24 11:29:20] Production.INFO: ProcessCDR(1,14091878,1,1,2) [2024-12-24 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091878', 'tblTempUsageDetail_20' ) start [2024-12-24 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091878', 'tblTempUsageDetail_20' ) end [2024-12-24 11:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:29:25] Production.INFO: ==12714== Releasing lock... [2024-12-24 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:29:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:30:06 [end_date_ymd] => 2024-12-24 11:30:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:30:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:30:21] Production.INFO: count ==3511 [2024-12-24 11:30:23] Production.ERROR: pbx CDR StartTime 2024-12-24 08:30:06 - End Time 2024-12-24 11:30:06 [2024-12-24 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091884', 'tblTempUsageDetail_20' ) start [2024-12-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091884', 'tblTempUsageDetail_20' ) end [2024-12-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091884', 'tblTempVendorCDR_20' ) start [2024-12-24 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091884', 'tblTempVendorCDR_20' ) end [2024-12-24 11:30:23] Production.INFO: ProcessCDR(1,14091884,1,1,2) [2024-12-24 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091884', 'tblTempUsageDetail_20' ) start [2024-12-24 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091884', 'tblTempUsageDetail_20' ) end [2024-12-24 11:30:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:30:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:30:28] Production.INFO: ==12833== Releasing lock... [2024-12-24 11:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:30:28] Production.INFO: 54.25 MB #Memory Used# [2024-12-24 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:31:04 [end_date_ymd] => 2024-12-24 11:31:04 [RateCDR] => 1 ) [2024-12-24 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:31:04' and `end` < '2024-12-24 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:31:20] Production.INFO: count ==3586 [2024-12-24 11:31:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:31:04 - End Time 2024-12-24 11:31:04 [2024-12-24 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091889', 'tblTempUsageDetail_20' ) start [2024-12-24 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091889', 'tblTempUsageDetail_20' ) end [2024-12-24 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091889', 'tblTempVendorCDR_20' ) start [2024-12-24 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091889', 'tblTempVendorCDR_20' ) end [2024-12-24 11:31:21] Production.INFO: ProcessCDR(1,14091889,1,1,2) [2024-12-24 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091889', 'tblTempUsageDetail_20' ) start [2024-12-24 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091889', 'tblTempUsageDetail_20' ) end [2024-12-24 11:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:31:26] Production.INFO: ==12940== Releasing lock... [2024-12-24 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:31:26] Production.INFO: 55 MB #Memory Used# [2024-12-24 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:32:05 [end_date_ymd] => 2024-12-24 11:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:32:20] Production.INFO: count ==3570 [2024-12-24 11:32:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:32:05 - End Time 2024-12-24 11:32:05 [2024-12-24 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091894', 'tblTempUsageDetail_20' ) start [2024-12-24 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091894', 'tblTempUsageDetail_20' ) end [2024-12-24 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091894', 'tblTempVendorCDR_20' ) start [2024-12-24 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091894', 'tblTempVendorCDR_20' ) end [2024-12-24 11:32:22] Production.INFO: ProcessCDR(1,14091894,1,1,2) [2024-12-24 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091894', 'tblTempUsageDetail_20' ) start [2024-12-24 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091894', 'tblTempUsageDetail_20' ) end [2024-12-24 11:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:32:26] Production.INFO: ==13038== Releasing lock... [2024-12-24 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:32:26] Production.INFO: 56 MB #Memory Used# [2024-12-24 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:33:04 [end_date_ymd] => 2024-12-24 11:33:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:33:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:33:18] Production.INFO: count ==3580 [2024-12-24 11:33:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:33:04 - End Time 2024-12-24 11:33:04 [2024-12-24 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091899', 'tblTempUsageDetail_20' ) start [2024-12-24 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091899', 'tblTempUsageDetail_20' ) end [2024-12-24 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091899', 'tblTempVendorCDR_20' ) start [2024-12-24 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091899', 'tblTempVendorCDR_20' ) end [2024-12-24 11:33:19] Production.INFO: ProcessCDR(1,14091899,1,1,2) [2024-12-24 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091899', 'tblTempUsageDetail_20' ) start [2024-12-24 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091899', 'tblTempUsageDetail_20' ) end [2024-12-24 11:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:33:24] Production.INFO: ==13114== Releasing lock... [2024-12-24 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:33:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:34:05 [end_date_ymd] => 2024-12-24 11:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:34:19] Production.INFO: count ==3583 [2024-12-24 11:34:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:34:05 - End Time 2024-12-24 11:34:05 [2024-12-24 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091903', 'tblTempUsageDetail_20' ) start [2024-12-24 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091903', 'tblTempUsageDetail_20' ) end [2024-12-24 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091903', 'tblTempVendorCDR_20' ) start [2024-12-24 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091903', 'tblTempVendorCDR_20' ) end [2024-12-24 11:34:20] Production.INFO: ProcessCDR(1,14091903,1,1,2) [2024-12-24 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091903', 'tblTempUsageDetail_20' ) start [2024-12-24 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091903', 'tblTempUsageDetail_20' ) end [2024-12-24 11:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:34:25] Production.INFO: ==13191== Releasing lock... [2024-12-24 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:34:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:35:05 [end_date_ymd] => 2024-12-24 11:35:05 [RateCDR] => 1 ) [2024-12-24 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:35:05' and `end` < '2024-12-24 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:35:18] Production.INFO: count ==3580 [2024-12-24 11:35:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:35:05 - End Time 2024-12-24 11:35:05 [2024-12-24 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091909', 'tblTempUsageDetail_20' ) start [2024-12-24 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091909', 'tblTempUsageDetail_20' ) end [2024-12-24 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091909', 'tblTempVendorCDR_20' ) start [2024-12-24 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091909', 'tblTempVendorCDR_20' ) end [2024-12-24 11:35:20] Production.INFO: ProcessCDR(1,14091909,1,1,2) [2024-12-24 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091909', 'tblTempUsageDetail_20' ) start [2024-12-24 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091909', 'tblTempUsageDetail_20' ) end [2024-12-24 11:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:35:24] Production.INFO: ==13273== Releasing lock... [2024-12-24 11:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:35:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:36:04 [end_date_ymd] => 2024-12-24 11:36:04 [RateCDR] => 1 ) [2024-12-24 11:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:36:04' and `end` < '2024-12-24 11:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:36:17] Production.INFO: count ==3578 [2024-12-24 11:36:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:36:04 - End Time 2024-12-24 11:36:04 [2024-12-24 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091914', 'tblTempUsageDetail_20' ) start [2024-12-24 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091914', 'tblTempUsageDetail_20' ) end [2024-12-24 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091914', 'tblTempVendorCDR_20' ) start [2024-12-24 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091914', 'tblTempVendorCDR_20' ) end [2024-12-24 11:36:19] Production.INFO: ProcessCDR(1,14091914,1,1,2) [2024-12-24 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091914', 'tblTempUsageDetail_20' ) start [2024-12-24 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091914', 'tblTempUsageDetail_20' ) end [2024-12-24 11:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:36:22] Production.INFO: ==13348== Releasing lock... [2024-12-24 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:36:22] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:37:05 [end_date_ymd] => 2024-12-24 11:37:05 [RateCDR] => 1 ) [2024-12-24 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:37:19] Production.INFO: count ==3592 [2024-12-24 11:37:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:37:05 - End Time 2024-12-24 11:37:05 [2024-12-24 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091919', 'tblTempUsageDetail_20' ) start [2024-12-24 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091919', 'tblTempUsageDetail_20' ) end [2024-12-24 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091919', 'tblTempVendorCDR_20' ) start [2024-12-24 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091919', 'tblTempVendorCDR_20' ) end [2024-12-24 11:37:21] Production.INFO: ProcessCDR(1,14091919,1,1,2) [2024-12-24 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091919', 'tblTempUsageDetail_20' ) start [2024-12-24 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091919', 'tblTempUsageDetail_20' ) end [2024-12-24 11:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:37:25] Production.INFO: ==13428== Releasing lock... [2024-12-24 11:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:37:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:38:05 [end_date_ymd] => 2024-12-24 11:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:38:19] Production.INFO: count ==3587 [2024-12-24 11:38:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:38:05 - End Time 2024-12-24 11:38:05 [2024-12-24 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091924', 'tblTempUsageDetail_20' ) start [2024-12-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091924', 'tblTempUsageDetail_20' ) end [2024-12-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091924', 'tblTempVendorCDR_20' ) start [2024-12-24 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091924', 'tblTempVendorCDR_20' ) end [2024-12-24 11:38:21] Production.INFO: ProcessCDR(1,14091924,1,1,2) [2024-12-24 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091924', 'tblTempUsageDetail_20' ) start [2024-12-24 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091924', 'tblTempUsageDetail_20' ) end [2024-12-24 11:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:38:26] Production.INFO: ==13507== Releasing lock... [2024-12-24 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:38:26] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:39:04 [end_date_ymd] => 2024-12-24 11:39:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:39:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:39:20] Production.INFO: count ==3605 [2024-12-24 11:39:22] Production.ERROR: pbx CDR StartTime 2024-12-24 08:39:04 - End Time 2024-12-24 11:39:04 [2024-12-24 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091929', 'tblTempUsageDetail_20' ) start [2024-12-24 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091929', 'tblTempUsageDetail_20' ) end [2024-12-24 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091929', 'tblTempVendorCDR_20' ) start [2024-12-24 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091929', 'tblTempVendorCDR_20' ) end [2024-12-24 11:39:22] Production.INFO: ProcessCDR(1,14091929,1,1,2) [2024-12-24 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091929', 'tblTempUsageDetail_20' ) start [2024-12-24 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091929', 'tblTempUsageDetail_20' ) end [2024-12-24 11:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:39:25] Production.INFO: ==13588== Releasing lock... [2024-12-24 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:39:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:40:05 [end_date_ymd] => 2024-12-24 11:40:05 [RateCDR] => 1 ) [2024-12-24 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:40:05' and `end` < '2024-12-24 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:40:20] Production.INFO: count ==3611 [2024-12-24 11:40:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:40:05 - End Time 2024-12-24 11:40:05 [2024-12-24 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091934', 'tblTempUsageDetail_20' ) start [2024-12-24 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091934', 'tblTempUsageDetail_20' ) end [2024-12-24 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091934', 'tblTempVendorCDR_20' ) start [2024-12-24 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091934', 'tblTempVendorCDR_20' ) end [2024-12-24 11:40:21] Production.INFO: ProcessCDR(1,14091934,1,1,2) [2024-12-24 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091934', 'tblTempUsageDetail_20' ) start [2024-12-24 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091934', 'tblTempUsageDetail_20' ) end [2024-12-24 11:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:40:26] Production.INFO: ==13672== Releasing lock... [2024-12-24 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:40:26] Production.INFO: 56 MB #Memory Used# [2024-12-24 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:41:04 [end_date_ymd] => 2024-12-24 11:41:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:41:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:41:20] Production.INFO: count ==3658 [2024-12-24 11:41:22] Production.ERROR: pbx CDR StartTime 2024-12-24 08:41:04 - End Time 2024-12-24 11:41:04 [2024-12-24 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091940', 'tblTempUsageDetail_20' ) start [2024-12-24 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091940', 'tblTempUsageDetail_20' ) end [2024-12-24 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091940', 'tblTempVendorCDR_20' ) start [2024-12-24 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091940', 'tblTempVendorCDR_20' ) end [2024-12-24 11:41:22] Production.INFO: ProcessCDR(1,14091940,1,1,2) [2024-12-24 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091940', 'tblTempUsageDetail_20' ) start [2024-12-24 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091940', 'tblTempUsageDetail_20' ) end [2024-12-24 11:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:41:27] Production.INFO: ==13750== Releasing lock... [2024-12-24 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:41:27] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:42:05 [end_date_ymd] => 2024-12-24 11:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:42:18] Production.INFO: count ==3668 [2024-12-24 11:42:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:42:05 - End Time 2024-12-24 11:42:05 [2024-12-24 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091945', 'tblTempUsageDetail_20' ) start [2024-12-24 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091945', 'tblTempUsageDetail_20' ) end [2024-12-24 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091945', 'tblTempVendorCDR_20' ) start [2024-12-24 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091945', 'tblTempVendorCDR_20' ) end [2024-12-24 11:42:20] Production.INFO: ProcessCDR(1,14091945,1,1,2) [2024-12-24 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091945', 'tblTempUsageDetail_20' ) start [2024-12-24 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091945', 'tblTempUsageDetail_20' ) end [2024-12-24 11:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:42:25] Production.INFO: ==13829== Releasing lock... [2024-12-24 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:42:25] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:43:05 [end_date_ymd] => 2024-12-24 11:43:05 [RateCDR] => 1 ) [2024-12-24 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:43:05' and `end` < '2024-12-24 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:43:21] Production.INFO: count ==3702 [2024-12-24 11:43:22] Production.ERROR: pbx CDR StartTime 2024-12-24 08:43:05 - End Time 2024-12-24 11:43:05 [2024-12-24 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091950', 'tblTempUsageDetail_20' ) start [2024-12-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091950', 'tblTempUsageDetail_20' ) end [2024-12-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091950', 'tblTempVendorCDR_20' ) start [2024-12-24 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091950', 'tblTempVendorCDR_20' ) end [2024-12-24 11:43:22] Production.INFO: ProcessCDR(1,14091950,1,1,2) [2024-12-24 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091950', 'tblTempUsageDetail_20' ) start [2024-12-24 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091950', 'tblTempUsageDetail_20' ) end [2024-12-24 11:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:43:27] Production.INFO: ==13913== Releasing lock... [2024-12-24 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:43:27] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:44:05 [end_date_ymd] => 2024-12-24 11:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:44:20] Production.INFO: count ==3702 [2024-12-24 11:44:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:44:05 - End Time 2024-12-24 11:44:05 [2024-12-24 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091955', 'tblTempUsageDetail_20' ) start [2024-12-24 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091955', 'tblTempUsageDetail_20' ) end [2024-12-24 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091955', 'tblTempVendorCDR_20' ) start [2024-12-24 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091955', 'tblTempVendorCDR_20' ) end [2024-12-24 11:44:21] Production.INFO: ProcessCDR(1,14091955,1,1,2) [2024-12-24 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091955', 'tblTempUsageDetail_20' ) start [2024-12-24 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091955', 'tblTempUsageDetail_20' ) end [2024-12-24 11:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:44:26] Production.INFO: ==13992== Releasing lock... [2024-12-24 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:44:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:45:05 [end_date_ymd] => 2024-12-24 11:45:05 [RateCDR] => 1 ) [2024-12-24 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:45:05' and `end` < '2024-12-24 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:45:20] Production.INFO: count ==3715 [2024-12-24 11:45:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:45:05 - End Time 2024-12-24 11:45:05 [2024-12-24 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091960', 'tblTempUsageDetail_20' ) start [2024-12-24 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091960', 'tblTempUsageDetail_20' ) end [2024-12-24 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091960', 'tblTempVendorCDR_20' ) start [2024-12-24 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091960', 'tblTempVendorCDR_20' ) end [2024-12-24 11:45:21] Production.INFO: ProcessCDR(1,14091960,1,1,2) [2024-12-24 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091960', 'tblTempUsageDetail_20' ) start [2024-12-24 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091960', 'tblTempUsageDetail_20' ) end [2024-12-24 11:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:45:26] Production.INFO: ==14066== Releasing lock... [2024-12-24 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:45:26] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:46:05 [end_date_ymd] => 2024-12-24 11:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:46:19] Production.INFO: count ==3715 [2024-12-24 11:46:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:46:05 - End Time 2024-12-24 11:46:05 [2024-12-24 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091965', 'tblTempUsageDetail_20' ) start [2024-12-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091965', 'tblTempUsageDetail_20' ) end [2024-12-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091965', 'tblTempVendorCDR_20' ) start [2024-12-24 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091965', 'tblTempVendorCDR_20' ) end [2024-12-24 11:46:21] Production.INFO: ProcessCDR(1,14091965,1,1,2) [2024-12-24 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091965', 'tblTempUsageDetail_20' ) start [2024-12-24 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091965', 'tblTempUsageDetail_20' ) end [2024-12-24 11:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:46:25] Production.INFO: ==14190== Releasing lock... [2024-12-24 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:46:25] Production.INFO: 56 MB #Memory Used# [2024-12-24 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:47:06 [end_date_ymd] => 2024-12-24 11:47:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:47:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:47:23] Production.INFO: count ==3717 [2024-12-24 11:47:24] Production.ERROR: pbx CDR StartTime 2024-12-24 08:47:06 - End Time 2024-12-24 11:47:06 [2024-12-24 11:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091970', 'tblTempUsageDetail_20' ) start [2024-12-24 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091970', 'tblTempUsageDetail_20' ) end [2024-12-24 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091970', 'tblTempVendorCDR_20' ) start [2024-12-24 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091970', 'tblTempVendorCDR_20' ) end [2024-12-24 11:47:25] Production.INFO: ProcessCDR(1,14091970,1,1,2) [2024-12-24 11:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091970', 'tblTempUsageDetail_20' ) start [2024-12-24 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091970', 'tblTempUsageDetail_20' ) end [2024-12-24 11:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:47:29] Production.INFO: ==14273== Releasing lock... [2024-12-24 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:47:29] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:48:05 [end_date_ymd] => 2024-12-24 11:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:48:18] Production.INFO: count ==3739 [2024-12-24 11:48:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:48:05 - End Time 2024-12-24 11:48:05 [2024-12-24 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091975', 'tblTempUsageDetail_20' ) start [2024-12-24 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091975', 'tblTempUsageDetail_20' ) end [2024-12-24 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091975', 'tblTempVendorCDR_20' ) start [2024-12-24 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091975', 'tblTempVendorCDR_20' ) end [2024-12-24 11:48:19] Production.INFO: ProcessCDR(1,14091975,1,1,2) [2024-12-24 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091975', 'tblTempUsageDetail_20' ) start [2024-12-24 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091975', 'tblTempUsageDetail_20' ) end [2024-12-24 11:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:48:24] Production.INFO: ==14353== Releasing lock... [2024-12-24 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:48:24] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:49:05 [end_date_ymd] => 2024-12-24 11:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 08:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 11:49:23] Production.INFO: count ==3745 [2024-12-24 11:49:24] Production.ERROR: pbx CDR StartTime 2024-12-24 08:49:05 - End Time 2024-12-24 11:49:05 [2024-12-24 11:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091980', 'tblTempUsageDetail_20' ) start [2024-12-24 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091980', 'tblTempUsageDetail_20' ) end [2024-12-24 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091980', 'tblTempVendorCDR_20' ) start [2024-12-24 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091980', 'tblTempVendorCDR_20' ) end [2024-12-24 11:49:24] Production.INFO: ProcessCDR(1,14091980,1,1,2) [2024-12-24 11:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091980', 'tblTempUsageDetail_20' ) start [2024-12-24 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091980', 'tblTempUsageDetail_20' ) end [2024-12-24 11:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:49:29] Production.INFO: ==14428== Releasing lock... [2024-12-24 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:49:29] Production.INFO: 56 MB #Memory Used# [2024-12-24 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:50:05 [end_date_ymd] => 2024-12-24 11:50:05 [RateCDR] => 1 ) [2024-12-24 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:50:05' and `end` < '2024-12-24 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:50:19] Production.INFO: count ==3765 [2024-12-24 11:50:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:50:05 - End Time 2024-12-24 11:50:05 [2024-12-24 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091986', 'tblTempUsageDetail_20' ) start [2024-12-24 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091986', 'tblTempUsageDetail_20' ) end [2024-12-24 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091986', 'tblTempVendorCDR_20' ) start [2024-12-24 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091986', 'tblTempVendorCDR_20' ) end [2024-12-24 11:50:20] Production.INFO: ProcessCDR(1,14091986,1,1,2) [2024-12-24 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091986', 'tblTempUsageDetail_20' ) start [2024-12-24 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091986', 'tblTempUsageDetail_20' ) end [2024-12-24 11:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:50:25] Production.INFO: ==14513== Releasing lock... [2024-12-24 11:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:50:25] Production.INFO: 56 MB #Memory Used# [2024-12-24 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:51:05 [end_date_ymd] => 2024-12-24 11:51:05 [RateCDR] => 1 ) [2024-12-24 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:51:05' and `end` < '2024-12-24 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:51:19] Production.INFO: count ==3811 [2024-12-24 11:51:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:51:05 - End Time 2024-12-24 11:51:05 [2024-12-24 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091991', 'tblTempUsageDetail_20' ) start [2024-12-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091991', 'tblTempUsageDetail_20' ) end [2024-12-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091991', 'tblTempVendorCDR_20' ) start [2024-12-24 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091991', 'tblTempVendorCDR_20' ) end [2024-12-24 11:51:21] Production.INFO: ProcessCDR(1,14091991,1,1,2) [2024-12-24 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091991', 'tblTempUsageDetail_20' ) start [2024-12-24 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091991', 'tblTempUsageDetail_20' ) end [2024-12-24 11:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:51:26] Production.INFO: ==14594== Releasing lock... [2024-12-24 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:51:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:52:04 [end_date_ymd] => 2024-12-24 11:52:04 [RateCDR] => 1 ) [2024-12-24 11: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` >= '2024-12-24 08:52:04' and `end` < '2024-12-24 11: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 ,'') [2024-12-24 11:52:19] Production.INFO: count ==3806 [2024-12-24 11:52:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:52:04 - End Time 2024-12-24 11:52:04 [2024-12-24 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091996', 'tblTempUsageDetail_20' ) start [2024-12-24 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14091996', 'tblTempUsageDetail_20' ) end [2024-12-24 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091996', 'tblTempVendorCDR_20' ) start [2024-12-24 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14091996', 'tblTempVendorCDR_20' ) end [2024-12-24 11:52:21] Production.INFO: ProcessCDR(1,14091996,1,1,2) [2024-12-24 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14091996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14091996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14091996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14091996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091996', 'tblTempUsageDetail_20' ) start [2024-12-24 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14091996', 'tblTempUsageDetail_20' ) end [2024-12-24 11:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:52:26] Production.INFO: ==14676== Releasing lock... [2024-12-24 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:52:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:53:05 [end_date_ymd] => 2024-12-24 11:53:05 [RateCDR] => 1 ) [2024-12-24 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:53:05' and `end` < '2024-12-24 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:53:19] Production.INFO: count ==3813 [2024-12-24 11:53:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:53:05 - End Time 2024-12-24 11:53:05 [2024-12-24 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092001', 'tblTempUsageDetail_20' ) start [2024-12-24 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092001', 'tblTempUsageDetail_20' ) end [2024-12-24 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092001', 'tblTempVendorCDR_20' ) start [2024-12-24 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092001', 'tblTempVendorCDR_20' ) end [2024-12-24 11:53:21] Production.INFO: ProcessCDR(1,14092001,1,1,2) [2024-12-24 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092001', 'tblTempUsageDetail_20' ) start [2024-12-24 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092001', 'tblTempUsageDetail_20' ) end [2024-12-24 11:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:53:25] Production.INFO: ==14761== Releasing lock... [2024-12-24 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:53:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:54:05 [end_date_ymd] => 2024-12-24 11:54:05 [RateCDR] => 1 ) [2024-12-24 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:54:05' and `end` < '2024-12-24 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:54:18] Production.INFO: count ==3834 [2024-12-24 11:54:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:54:05 - End Time 2024-12-24 11:54:05 [2024-12-24 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092006', 'tblTempUsageDetail_20' ) start [2024-12-24 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092006', 'tblTempUsageDetail_20' ) end [2024-12-24 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092006', 'tblTempVendorCDR_20' ) start [2024-12-24 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092006', 'tblTempVendorCDR_20' ) end [2024-12-24 11:54:19] Production.INFO: ProcessCDR(1,14092006,1,1,2) [2024-12-24 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092006', 'tblTempUsageDetail_20' ) start [2024-12-24 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092006', 'tblTempUsageDetail_20' ) end [2024-12-24 11:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:54:24] Production.INFO: ==14840== Releasing lock... [2024-12-24 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:54:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:55:05 [end_date_ymd] => 2024-12-24 11:55:05 [RateCDR] => 1 ) [2024-12-24 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:55:05' and `end` < '2024-12-24 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:55:18] Production.INFO: count ==3836 [2024-12-24 11:55:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:55:05 - End Time 2024-12-24 11:55:05 [2024-12-24 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092011', 'tblTempUsageDetail_20' ) start [2024-12-24 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092011', 'tblTempUsageDetail_20' ) end [2024-12-24 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092011', 'tblTempVendorCDR_20' ) start [2024-12-24 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092011', 'tblTempVendorCDR_20' ) end [2024-12-24 11:55:20] Production.INFO: ProcessCDR(1,14092011,1,1,2) [2024-12-24 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092011', 'tblTempUsageDetail_20' ) start [2024-12-24 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092011', 'tblTempUsageDetail_20' ) end [2024-12-24 11:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:55:24] Production.INFO: ==14919== Releasing lock... [2024-12-24 11:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:55:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:56:04 [end_date_ymd] => 2024-12-24 11:56:04 [RateCDR] => 1 ) [2024-12-24 11:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:56:04' and `end` < '2024-12-24 11:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:56:17] Production.INFO: count ==3836 [2024-12-24 11:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 08:56:04 - End Time 2024-12-24 11:56:04 [2024-12-24 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092016', 'tblTempUsageDetail_20' ) start [2024-12-24 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092016', 'tblTempUsageDetail_20' ) end [2024-12-24 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092016', 'tblTempVendorCDR_20' ) start [2024-12-24 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092016', 'tblTempVendorCDR_20' ) end [2024-12-24 11:56:19] Production.INFO: ProcessCDR(1,14092016,1,1,2) [2024-12-24 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092016', 'tblTempUsageDetail_20' ) start [2024-12-24 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092016', 'tblTempUsageDetail_20' ) end [2024-12-24 11:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:56:23] Production.INFO: ==14998== Releasing lock... [2024-12-24 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:56:23] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:57:05 [end_date_ymd] => 2024-12-24 11:57:05 [RateCDR] => 1 ) [2024-12-24 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:57:05' and `end` < '2024-12-24 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:57:18] Production.INFO: count ==3830 [2024-12-24 11:57:20] Production.ERROR: pbx CDR StartTime 2024-12-24 08:57:05 - End Time 2024-12-24 11:57:05 [2024-12-24 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092021', 'tblTempUsageDetail_20' ) start [2024-12-24 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092021', 'tblTempUsageDetail_20' ) end [2024-12-24 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092021', 'tblTempVendorCDR_20' ) start [2024-12-24 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092021', 'tblTempVendorCDR_20' ) end [2024-12-24 11:57:20] Production.INFO: ProcessCDR(1,14092021,1,1,2) [2024-12-24 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092021', 'tblTempUsageDetail_20' ) start [2024-12-24 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092021', 'tblTempUsageDetail_20' ) end [2024-12-24 11:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:57:23] Production.INFO: ==15079== Releasing lock... [2024-12-24 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:57:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:58:05 [end_date_ymd] => 2024-12-24 11:58:05 [RateCDR] => 1 ) [2024-12-24 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:58:05' and `end` < '2024-12-24 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:58:22] Production.INFO: count ==3833 [2024-12-24 11:58:23] Production.ERROR: pbx CDR StartTime 2024-12-24 08:58:05 - End Time 2024-12-24 11:58:05 [2024-12-24 11:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092026', 'tblTempUsageDetail_20' ) start [2024-12-24 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092026', 'tblTempUsageDetail_20' ) end [2024-12-24 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092026', 'tblTempVendorCDR_20' ) start [2024-12-24 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092026', 'tblTempVendorCDR_20' ) end [2024-12-24 11:58:24] Production.INFO: ProcessCDR(1,14092026,1,1,2) [2024-12-24 11:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092026', 'tblTempUsageDetail_20' ) start [2024-12-24 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092026', 'tblTempUsageDetail_20' ) end [2024-12-24 11:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:58:28] Production.INFO: ==15158== Releasing lock... [2024-12-24 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:58:28] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 08:59:05 [end_date_ymd] => 2024-12-24 11:59:05 [RateCDR] => 1 ) [2024-12-24 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 08:59:05' and `end` < '2024-12-24 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 11:59:19] Production.INFO: count ==3842 [2024-12-24 11:59:21] Production.ERROR: pbx CDR StartTime 2024-12-24 08:59:05 - End Time 2024-12-24 11:59:05 [2024-12-24 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092031', 'tblTempUsageDetail_20' ) start [2024-12-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092031', 'tblTempUsageDetail_20' ) end [2024-12-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092031', 'tblTempVendorCDR_20' ) start [2024-12-24 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092031', 'tblTempVendorCDR_20' ) end [2024-12-24 11:59:21] Production.INFO: ProcessCDR(1,14092031,1,1,2) [2024-12-24 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092031', 'tblTempUsageDetail_20' ) start [2024-12-24 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092031', 'tblTempUsageDetail_20' ) end [2024-12-24 11:59:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 11:59:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 11:59:26] Production.INFO: ==15237== Releasing lock... [2024-12-24 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 11:59:26] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:00:05 [end_date_ymd] => 2024-12-24 12:00:05 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:00:05' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:00:18] Production.INFO: count ==3845 [2024-12-24 12:00:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:00:05 - End Time 2024-12-24 12:00:05 [2024-12-24 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092036', 'tblTempUsageDetail_20' ) start [2024-12-24 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092036', 'tblTempUsageDetail_20' ) end [2024-12-24 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092036', 'tblTempVendorCDR_20' ) start [2024-12-24 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092036', 'tblTempVendorCDR_20' ) end [2024-12-24 12:00:20] Production.INFO: ProcessCDR(1,14092036,1,1,2) [2024-12-24 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092036', 'tblTempUsageDetail_20' ) start [2024-12-24 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092036', 'tblTempUsageDetail_20' ) end [2024-12-24 12:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:00:24] Production.INFO: ==15327== Releasing lock... [2024-12-24 12:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:00:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:01:05 [end_date_ymd] => 2024-12-24 12:01:05 [RateCDR] => 1 ) [2024-12-24 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:01:05' and `end` < '2024-12-24 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:01:19] Production.INFO: count ==3868 [2024-12-24 12:01:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:01:05 - End Time 2024-12-24 12:01:05 [2024-12-24 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092042', 'tblTempUsageDetail_20' ) start [2024-12-24 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092042', 'tblTempUsageDetail_20' ) end [2024-12-24 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092042', 'tblTempVendorCDR_20' ) start [2024-12-24 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092042', 'tblTempVendorCDR_20' ) end [2024-12-24 12:01:20] Production.INFO: ProcessCDR(1,14092042,1,1,2) [2024-12-24 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092042', 'tblTempUsageDetail_20' ) start [2024-12-24 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092042', 'tblTempUsageDetail_20' ) end [2024-12-24 12:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:01:25] Production.INFO: ==15456== Releasing lock... [2024-12-24 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:01:25] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:02:04 [end_date_ymd] => 2024-12-24 12:02:04 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:02:04' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:02:19] Production.INFO: count ==3878 [2024-12-24 12:02:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:02:04 - End Time 2024-12-24 12:02:04 [2024-12-24 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092047', 'tblTempUsageDetail_20' ) start [2024-12-24 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092047', 'tblTempUsageDetail_20' ) end [2024-12-24 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092047', 'tblTempVendorCDR_20' ) start [2024-12-24 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092047', 'tblTempVendorCDR_20' ) end [2024-12-24 12:02:21] Production.INFO: ProcessCDR(1,14092047,1,1,2) [2024-12-24 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092047', 'tblTempUsageDetail_20' ) start [2024-12-24 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092047', 'tblTempUsageDetail_20' ) end [2024-12-24 12:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:02:26] Production.INFO: ==15540== Releasing lock... [2024-12-24 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:02:26] Production.INFO: 57.25 MB #Memory Used# [2024-12-24 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:03:05 [end_date_ymd] => 2024-12-24 12:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:03:18] Production.INFO: count ==3863 [2024-12-24 12:03:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:03:05 - End Time 2024-12-24 12:03:05 [2024-12-24 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092052', 'tblTempUsageDetail_20' ) start [2024-12-24 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092052', 'tblTempUsageDetail_20' ) end [2024-12-24 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092052', 'tblTempVendorCDR_20' ) start [2024-12-24 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092052', 'tblTempVendorCDR_20' ) end [2024-12-24 12:03:19] Production.INFO: ProcessCDR(1,14092052,1,1,2) [2024-12-24 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092052', 'tblTempUsageDetail_20' ) start [2024-12-24 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092052', 'tblTempUsageDetail_20' ) end [2024-12-24 12:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:03:24] Production.INFO: ==15621== Releasing lock... [2024-12-24 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:03:24] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:04:05 [end_date_ymd] => 2024-12-24 12:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:04:20] Production.INFO: count ==3864 [2024-12-24 12:04:22] Production.ERROR: pbx CDR StartTime 2024-12-24 09:04:05 - End Time 2024-12-24 12:04:05 [2024-12-24 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092057', 'tblTempUsageDetail_20' ) start [2024-12-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092057', 'tblTempUsageDetail_20' ) end [2024-12-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092057', 'tblTempVendorCDR_20' ) start [2024-12-24 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092057', 'tblTempVendorCDR_20' ) end [2024-12-24 12:04:22] Production.INFO: ProcessCDR(1,14092057,1,1,2) [2024-12-24 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092057', 'tblTempUsageDetail_20' ) start [2024-12-24 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092057', 'tblTempUsageDetail_20' ) end [2024-12-24 12:04:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:04:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:04:26] Production.INFO: ==15697== Releasing lock... [2024-12-24 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:04:26] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:05:05 [end_date_ymd] => 2024-12-24 12:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:05:18] Production.INFO: count ==3874 [2024-12-24 12:05:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:05:05 - End Time 2024-12-24 12:05:05 [2024-12-24 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092062', 'tblTempUsageDetail_20' ) start [2024-12-24 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092062', 'tblTempUsageDetail_20' ) end [2024-12-24 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092062', 'tblTempVendorCDR_20' ) start [2024-12-24 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092062', 'tblTempVendorCDR_20' ) end [2024-12-24 12:05:20] Production.INFO: ProcessCDR(1,14092062,1,1,2) [2024-12-24 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092062', 'tblTempUsageDetail_20' ) start [2024-12-24 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092062', 'tblTempUsageDetail_20' ) end [2024-12-24 12:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:05:25] Production.INFO: ==15780== Releasing lock... [2024-12-24 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:05:25] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:06:05 [end_date_ymd] => 2024-12-24 12:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:06:18] Production.INFO: count ==3867 [2024-12-24 12:06:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:06:05 - End Time 2024-12-24 12:06:05 [2024-12-24 12:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092067', 'tblTempUsageDetail_20' ) start [2024-12-24 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092067', 'tblTempUsageDetail_20' ) end [2024-12-24 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092067', 'tblTempVendorCDR_20' ) start [2024-12-24 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092067', 'tblTempVendorCDR_20' ) end [2024-12-24 12:06:20] Production.INFO: ProcessCDR(1,14092067,1,1,2) [2024-12-24 12:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092067', 'tblTempUsageDetail_20' ) start [2024-12-24 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092067', 'tblTempUsageDetail_20' ) end [2024-12-24 12:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:06:25] Production.INFO: ==15866== Releasing lock... [2024-12-24 12:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:06:25] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:07:04 [end_date_ymd] => 2024-12-24 12:07:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:07:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:07:17] Production.INFO: count ==3867 [2024-12-24 12:07:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:07:04 - End Time 2024-12-24 12:07:04 [2024-12-24 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092072', 'tblTempUsageDetail_20' ) start [2024-12-24 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092072', 'tblTempUsageDetail_20' ) end [2024-12-24 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092072', 'tblTempVendorCDR_20' ) start [2024-12-24 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092072', 'tblTempVendorCDR_20' ) end [2024-12-24 12:07:19] Production.INFO: ProcessCDR(1,14092072,1,1,2) [2024-12-24 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092072', 'tblTempUsageDetail_20' ) start [2024-12-24 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092072', 'tblTempUsageDetail_20' ) end [2024-12-24 12:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:07:24] Production.INFO: ==15941== Releasing lock... [2024-12-24 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:07:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-24 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:08:05 [end_date_ymd] => 2024-12-24 12:08:05 [RateCDR] => 1 ) [2024-12-24 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:08:05' and `end` < '2024-12-24 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:08:20] Production.INFO: count ==3867 [2024-12-24 12:08:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:08:05 - End Time 2024-12-24 12:08:05 [2024-12-24 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092077', 'tblTempUsageDetail_20' ) start [2024-12-24 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092077', 'tblTempUsageDetail_20' ) end [2024-12-24 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092077', 'tblTempVendorCDR_20' ) start [2024-12-24 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092077', 'tblTempVendorCDR_20' ) end [2024-12-24 12:08:21] Production.INFO: ProcessCDR(1,14092077,1,1,2) [2024-12-24 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092077', 'tblTempUsageDetail_20' ) start [2024-12-24 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092077', 'tblTempUsageDetail_20' ) end [2024-12-24 12:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:08:26] Production.INFO: ==16025== Releasing lock... [2024-12-24 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:08:26] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:09:05 [end_date_ymd] => 2024-12-24 12:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:09:20] Production.INFO: count ==3850 [2024-12-24 12:09:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:09:05 - End Time 2024-12-24 12:09:05 [2024-12-24 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092082', 'tblTempUsageDetail_20' ) start [2024-12-24 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092082', 'tblTempUsageDetail_20' ) end [2024-12-24 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092082', 'tblTempVendorCDR_20' ) start [2024-12-24 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092082', 'tblTempVendorCDR_20' ) end [2024-12-24 12:09:21] Production.INFO: ProcessCDR(1,14092082,1,1,2) [2024-12-24 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092082', 'tblTempUsageDetail_20' ) start [2024-12-24 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092082', 'tblTempUsageDetail_20' ) end [2024-12-24 12:09:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:09:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:09:26] Production.INFO: ==16099== Releasing lock... [2024-12-24 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:09:26] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:10:05 [end_date_ymd] => 2024-12-24 12:10:05 [RateCDR] => 1 ) [2024-12-24 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:10:05' and `end` < '2024-12-24 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:10:18] Production.INFO: count ==3840 [2024-12-24 12:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:10:05 - End Time 2024-12-24 12:10:05 [2024-12-24 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092088', 'tblTempUsageDetail_20' ) start [2024-12-24 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092088', 'tblTempUsageDetail_20' ) end [2024-12-24 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092088', 'tblTempVendorCDR_20' ) start [2024-12-24 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092088', 'tblTempVendorCDR_20' ) end [2024-12-24 12:10:19] Production.INFO: ProcessCDR(1,14092088,1,1,2) [2024-12-24 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092088', 'tblTempUsageDetail_20' ) start [2024-12-24 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092088', 'tblTempUsageDetail_20' ) end [2024-12-24 12:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:10:24] Production.INFO: ==16187== Releasing lock... [2024-12-24 12:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:10:24] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:11:05 [end_date_ymd] => 2024-12-24 12:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:11:18] Production.INFO: count ==3835 [2024-12-24 12:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:11:05 - End Time 2024-12-24 12:11:05 [2024-12-24 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092092', 'tblTempUsageDetail_20' ) start [2024-12-24 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092092', 'tblTempUsageDetail_20' ) end [2024-12-24 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092092', 'tblTempVendorCDR_20' ) start [2024-12-24 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092092', 'tblTempVendorCDR_20' ) end [2024-12-24 12:11:19] Production.INFO: ProcessCDR(1,14092092,1,1,2) [2024-12-24 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092092', 'tblTempUsageDetail_20' ) start [2024-12-24 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092092', 'tblTempUsageDetail_20' ) end [2024-12-24 12:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:11:24] Production.INFO: ==16269== Releasing lock... [2024-12-24 12:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:11:24] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:12:05 [end_date_ymd] => 2024-12-24 12:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:12:19] Production.INFO: count ==3825 [2024-12-24 12:12:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:12:05 - End Time 2024-12-24 12:12:05 [2024-12-24 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092098', 'tblTempUsageDetail_20' ) start [2024-12-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092098', 'tblTempUsageDetail_20' ) end [2024-12-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092098', 'tblTempVendorCDR_20' ) start [2024-12-24 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092098', 'tblTempVendorCDR_20' ) end [2024-12-24 12:12:21] Production.INFO: ProcessCDR(1,14092098,1,1,2) [2024-12-24 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092098', 'tblTempUsageDetail_20' ) start [2024-12-24 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092098', 'tblTempUsageDetail_20' ) end [2024-12-24 12:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:12:25] Production.INFO: ==16345== Releasing lock... [2024-12-24 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:12:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:13:05 [end_date_ymd] => 2024-12-24 12:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:13:20] Production.INFO: count ==3814 [2024-12-24 12:13:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:13:05 - End Time 2024-12-24 12:13:05 [2024-12-24 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092103', 'tblTempUsageDetail_20' ) start [2024-12-24 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092103', 'tblTempUsageDetail_20' ) end [2024-12-24 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092103', 'tblTempVendorCDR_20' ) start [2024-12-24 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092103', 'tblTempVendorCDR_20' ) end [2024-12-24 12:13:21] Production.INFO: ProcessCDR(1,14092103,1,1,2) [2024-12-24 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092103', 'tblTempUsageDetail_20' ) start [2024-12-24 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092103', 'tblTempUsageDetail_20' ) end [2024-12-24 12:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:13:26] Production.INFO: ==16430== Releasing lock... [2024-12-24 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:13:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:14:04 [end_date_ymd] => 2024-12-24 12:14:04 [RateCDR] => 1 ) [2024-12-24 12:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:14:04' and `end` < '2024-12-24 12:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:14:17] Production.INFO: count ==3795 [2024-12-24 12:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:14:04 - End Time 2024-12-24 12:14:04 [2024-12-24 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092108', 'tblTempUsageDetail_20' ) start [2024-12-24 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092108', 'tblTempUsageDetail_20' ) end [2024-12-24 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092108', 'tblTempVendorCDR_20' ) start [2024-12-24 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092108', 'tblTempVendorCDR_20' ) end [2024-12-24 12:14:19] Production.INFO: ProcessCDR(1,14092108,1,1,2) [2024-12-24 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092108', 'tblTempUsageDetail_20' ) start [2024-12-24 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092108', 'tblTempUsageDetail_20' ) end [2024-12-24 12:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:14:23] Production.INFO: ==16512== Releasing lock... [2024-12-24 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:14:23] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:15:05 [end_date_ymd] => 2024-12-24 12:15:05 [RateCDR] => 1 ) [2024-12-24 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:15:05' and `end` < '2024-12-24 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:15:19] Production.INFO: count ==3798 [2024-12-24 12:15:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:15:05 - End Time 2024-12-24 12:15:05 [2024-12-24 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092113', 'tblTempUsageDetail_20' ) start [2024-12-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092113', 'tblTempUsageDetail_20' ) end [2024-12-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092113', 'tblTempVendorCDR_20' ) start [2024-12-24 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092113', 'tblTempVendorCDR_20' ) end [2024-12-24 12:15:21] Production.INFO: ProcessCDR(1,14092113,1,1,2) [2024-12-24 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092113', 'tblTempUsageDetail_20' ) start [2024-12-24 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092113', 'tblTempUsageDetail_20' ) end [2024-12-24 12:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:15:25] Production.INFO: ==16595== Releasing lock... [2024-12-24 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:15:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:16:05 [end_date_ymd] => 2024-12-24 12:16:05 [RateCDR] => 1 ) [2024-12-24 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:16:05' and `end` < '2024-12-24 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:16:19] Production.INFO: count ==3786 [2024-12-24 12:16:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:16:05 - End Time 2024-12-24 12:16:05 [2024-12-24 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092118', 'tblTempUsageDetail_20' ) start [2024-12-24 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092118', 'tblTempUsageDetail_20' ) end [2024-12-24 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092118', 'tblTempVendorCDR_20' ) start [2024-12-24 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092118', 'tblTempVendorCDR_20' ) end [2024-12-24 12:16:20] Production.INFO: ProcessCDR(1,14092118,1,1,2) [2024-12-24 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092118', 'tblTempUsageDetail_20' ) start [2024-12-24 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092118', 'tblTempUsageDetail_20' ) end [2024-12-24 12:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:16:25] Production.INFO: ==16677== Releasing lock... [2024-12-24 12:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:16:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:17:05 [end_date_ymd] => 2024-12-24 12:17:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:17:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:17:19] Production.INFO: count ==3800 [2024-12-24 12:17:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:17:05 - End Time 2024-12-24 12:17:05 [2024-12-24 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092123', 'tblTempUsageDetail_20' ) start [2024-12-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092123', 'tblTempUsageDetail_20' ) end [2024-12-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092123', 'tblTempVendorCDR_20' ) start [2024-12-24 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092123', 'tblTempVendorCDR_20' ) end [2024-12-24 12:17:21] Production.INFO: ProcessCDR(1,14092123,1,1,2) [2024-12-24 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092123', 'tblTempUsageDetail_20' ) start [2024-12-24 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092123', 'tblTempUsageDetail_20' ) end [2024-12-24 12:17:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:17:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:17:26] Production.INFO: ==16805== Releasing lock... [2024-12-24 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:17:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:18:04 [end_date_ymd] => 2024-12-24 12:18:04 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:18:04' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:18:17] Production.INFO: count ==3805 [2024-12-24 12:18:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:18:04 - End Time 2024-12-24 12:18:04 [2024-12-24 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092128', 'tblTempUsageDetail_20' ) start [2024-12-24 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092128', 'tblTempUsageDetail_20' ) end [2024-12-24 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092128', 'tblTempVendorCDR_20' ) start [2024-12-24 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092128', 'tblTempVendorCDR_20' ) end [2024-12-24 12:18:19] Production.INFO: ProcessCDR(1,14092128,1,1,2) [2024-12-24 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092128', 'tblTempUsageDetail_20' ) start [2024-12-24 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092128', 'tblTempUsageDetail_20' ) end [2024-12-24 12:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:18:23] Production.INFO: ==16887== Releasing lock... [2024-12-24 12:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:18:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:19:05 [end_date_ymd] => 2024-12-24 12:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:19:18] Production.INFO: count ==3808 [2024-12-24 12:19:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:19:05 - End Time 2024-12-24 12:19:05 [2024-12-24 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092133', 'tblTempUsageDetail_20' ) start [2024-12-24 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092133', 'tblTempUsageDetail_20' ) end [2024-12-24 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092133', 'tblTempVendorCDR_20' ) start [2024-12-24 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092133', 'tblTempVendorCDR_20' ) end [2024-12-24 12:19:20] Production.INFO: ProcessCDR(1,14092133,1,1,2) [2024-12-24 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092133', 'tblTempUsageDetail_20' ) start [2024-12-24 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092133', 'tblTempUsageDetail_20' ) end [2024-12-24 12:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:19:25] Production.INFO: ==16967== Releasing lock... [2024-12-24 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:19:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:20:06 [end_date_ymd] => 2024-12-24 12:20:06 [RateCDR] => 1 ) [2024-12-24 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:20:19] Production.INFO: count ==3809 [2024-12-24 12:20:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:20:06 - End Time 2024-12-24 12:20:06 [2024-12-24 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092139', 'tblTempUsageDetail_20' ) start [2024-12-24 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092139', 'tblTempUsageDetail_20' ) end [2024-12-24 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092139', 'tblTempVendorCDR_20' ) start [2024-12-24 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092139', 'tblTempVendorCDR_20' ) end [2024-12-24 12:20:21] Production.INFO: ProcessCDR(1,14092139,1,1,2) [2024-12-24 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092139', 'tblTempUsageDetail_20' ) start [2024-12-24 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092139', 'tblTempUsageDetail_20' ) end [2024-12-24 12:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:20:25] Production.INFO: ==17046== Releasing lock... [2024-12-24 12:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:20:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:21:05 [end_date_ymd] => 2024-12-24 12:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:21:19] Production.INFO: count ==3843 [2024-12-24 12:21:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:21:05 - End Time 2024-12-24 12:21:05 [2024-12-24 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092144', 'tblTempUsageDetail_20' ) start [2024-12-24 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092144', 'tblTempUsageDetail_20' ) end [2024-12-24 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092144', 'tblTempVendorCDR_20' ) start [2024-12-24 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092144', 'tblTempVendorCDR_20' ) end [2024-12-24 12:21:20] Production.INFO: ProcessCDR(1,14092144,1,1,2) [2024-12-24 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092144', 'tblTempUsageDetail_20' ) start [2024-12-24 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092144', 'tblTempUsageDetail_20' ) end [2024-12-24 12:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:21:25] Production.INFO: ==17131== Releasing lock... [2024-12-24 12:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:21:25] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:22:05 [end_date_ymd] => 2024-12-24 12:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:22:20] Production.INFO: count ==3813 [2024-12-24 12:22:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:22:05 - End Time 2024-12-24 12:22:05 [2024-12-24 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092149', 'tblTempUsageDetail_20' ) start [2024-12-24 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092149', 'tblTempUsageDetail_20' ) end [2024-12-24 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092149', 'tblTempVendorCDR_20' ) start [2024-12-24 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092149', 'tblTempVendorCDR_20' ) end [2024-12-24 12:22:22] Production.INFO: ProcessCDR(1,14092149,1,1,2) [2024-12-24 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092149', 'tblTempUsageDetail_20' ) start [2024-12-24 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092149', 'tblTempUsageDetail_20' ) end [2024-12-24 12:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:22:26] Production.INFO: ==17213== Releasing lock... [2024-12-24 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:22:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:23:05 [end_date_ymd] => 2024-12-24 12:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:23:18] Production.INFO: count ==3808 [2024-12-24 12:23:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:23:05 - End Time 2024-12-24 12:23:05 [2024-12-24 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092154', 'tblTempUsageDetail_20' ) start [2024-12-24 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092154', 'tblTempUsageDetail_20' ) end [2024-12-24 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092154', 'tblTempVendorCDR_20' ) start [2024-12-24 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092154', 'tblTempVendorCDR_20' ) end [2024-12-24 12:23:19] Production.INFO: ProcessCDR(1,14092154,1,1,2) [2024-12-24 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092154', 'tblTempUsageDetail_20' ) start [2024-12-24 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092154', 'tblTempUsageDetail_20' ) end [2024-12-24 12:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:23:22] Production.INFO: ==17286== Releasing lock... [2024-12-24 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:23:22] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:24:05 [end_date_ymd] => 2024-12-24 12:24:05 [RateCDR] => 1 ) [2024-12-24 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:24:05' and `end` < '2024-12-24 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:24:17] Production.INFO: count ==3796 [2024-12-24 12:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:24:05 - End Time 2024-12-24 12:24:05 [2024-12-24 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092159', 'tblTempUsageDetail_20' ) start [2024-12-24 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092159', 'tblTempUsageDetail_20' ) end [2024-12-24 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092159', 'tblTempVendorCDR_20' ) start [2024-12-24 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092159', 'tblTempVendorCDR_20' ) end [2024-12-24 12:24:19] Production.INFO: ProcessCDR(1,14092159,1,1,2) [2024-12-24 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092159', 'tblTempUsageDetail_20' ) start [2024-12-24 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092159', 'tblTempUsageDetail_20' ) end [2024-12-24 12:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:24:23] Production.INFO: ==17363== Releasing lock... [2024-12-24 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:24:23] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:25:04 [end_date_ymd] => 2024-12-24 12:25:04 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:25:04' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:25:17] Production.INFO: count ==3818 [2024-12-24 12:25:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:25:04 - End Time 2024-12-24 12:25:04 [2024-12-24 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092164', 'tblTempUsageDetail_20' ) start [2024-12-24 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092164', 'tblTempUsageDetail_20' ) end [2024-12-24 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092164', 'tblTempVendorCDR_20' ) start [2024-12-24 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092164', 'tblTempVendorCDR_20' ) end [2024-12-24 12:25:19] Production.INFO: ProcessCDR(1,14092164,1,1,2) [2024-12-24 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092164', 'tblTempUsageDetail_20' ) start [2024-12-24 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092164', 'tblTempUsageDetail_20' ) end [2024-12-24 12:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:25:23] Production.INFO: ==17436== Releasing lock... [2024-12-24 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:25:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:26:05 [end_date_ymd] => 2024-12-24 12:26:05 [RateCDR] => 1 ) [2024-12-24 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:26:05' and `end` < '2024-12-24 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:26:18] Production.INFO: count ==3823 [2024-12-24 12:26:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:26:05 - End Time 2024-12-24 12:26:05 [2024-12-24 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092169', 'tblTempUsageDetail_20' ) start [2024-12-24 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092169', 'tblTempUsageDetail_20' ) end [2024-12-24 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092169', 'tblTempVendorCDR_20' ) start [2024-12-24 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092169', 'tblTempVendorCDR_20' ) end [2024-12-24 12:26:20] Production.INFO: ProcessCDR(1,14092169,1,1,2) [2024-12-24 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092169', 'tblTempUsageDetail_20' ) start [2024-12-24 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092169', 'tblTempUsageDetail_20' ) end [2024-12-24 12:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:26:24] Production.INFO: ==17515== Releasing lock... [2024-12-24 12:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:26:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:27:05 [end_date_ymd] => 2024-12-24 12:27:05 [RateCDR] => 1 ) [2024-12-24 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:27:05' and `end` < '2024-12-24 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:27:19] Production.INFO: count ==3833 [2024-12-24 12:27:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:27:05 - End Time 2024-12-24 12:27:05 [2024-12-24 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092174', 'tblTempUsageDetail_20' ) start [2024-12-24 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092174', 'tblTempUsageDetail_20' ) end [2024-12-24 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092174', 'tblTempVendorCDR_20' ) start [2024-12-24 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092174', 'tblTempVendorCDR_20' ) end [2024-12-24 12:27:20] Production.INFO: ProcessCDR(1,14092174,1,1,2) [2024-12-24 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092174', 'tblTempUsageDetail_20' ) start [2024-12-24 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092174', 'tblTempUsageDetail_20' ) end [2024-12-24 12:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:27:25] Production.INFO: ==17590== Releasing lock... [2024-12-24 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:27:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:28:04 [end_date_ymd] => 2024-12-24 12:28:04 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:28:04' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:28:17] Production.INFO: count ==3823 [2024-12-24 12:28:18] Production.ERROR: pbx CDR StartTime 2024-12-24 09:28:04 - End Time 2024-12-24 12:28:04 [2024-12-24 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092179', 'tblTempUsageDetail_20' ) start [2024-12-24 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092179', 'tblTempUsageDetail_20' ) end [2024-12-24 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092179', 'tblTempVendorCDR_20' ) start [2024-12-24 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092179', 'tblTempVendorCDR_20' ) end [2024-12-24 12:28:19] Production.INFO: ProcessCDR(1,14092179,1,1,2) [2024-12-24 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092179', 'tblTempUsageDetail_20' ) start [2024-12-24 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092179', 'tblTempUsageDetail_20' ) end [2024-12-24 12:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:28:23] Production.INFO: ==17673== Releasing lock... [2024-12-24 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:28:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:29:05 [end_date_ymd] => 2024-12-24 12:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:29:18] Production.INFO: count ==3831 [2024-12-24 12:29:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:29:05 - End Time 2024-12-24 12:29:05 [2024-12-24 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092184', 'tblTempUsageDetail_20' ) start [2024-12-24 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092184', 'tblTempUsageDetail_20' ) end [2024-12-24 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092184', 'tblTempVendorCDR_20' ) start [2024-12-24 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092184', 'tblTempVendorCDR_20' ) end [2024-12-24 12:29:19] Production.INFO: ProcessCDR(1,14092184,1,1,2) [2024-12-24 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092184', 'tblTempUsageDetail_20' ) start [2024-12-24 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092184', 'tblTempUsageDetail_20' ) end [2024-12-24 12:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:29:24] Production.INFO: ==17747== Releasing lock... [2024-12-24 12:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:29:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:30:05 [end_date_ymd] => 2024-12-24 12:30:05 [RateCDR] => 1 ) [2024-12-24 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:30:05' and `end` < '2024-12-24 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:30:20] Production.INFO: count ==3847 [2024-12-24 12:30:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:30:05 - End Time 2024-12-24 12:30:05 [2024-12-24 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092189', 'tblTempUsageDetail_20' ) start [2024-12-24 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092189', 'tblTempUsageDetail_20' ) end [2024-12-24 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092189', 'tblTempVendorCDR_20' ) start [2024-12-24 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092189', 'tblTempVendorCDR_20' ) end [2024-12-24 12:30:21] Production.INFO: ProcessCDR(1,14092189,1,1,2) [2024-12-24 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092189', 'tblTempUsageDetail_20' ) start [2024-12-24 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092189', 'tblTempUsageDetail_20' ) end [2024-12-24 12:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:30:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:30:26] Production.INFO: ==17824== Releasing lock... [2024-12-24 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:30:26] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:31:05 [end_date_ymd] => 2024-12-24 12:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:31:18] Production.INFO: count ==3842 [2024-12-24 12:31:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:31:05 - End Time 2024-12-24 12:31:05 [2024-12-24 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092195', 'tblTempUsageDetail_20' ) start [2024-12-24 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092195', 'tblTempUsageDetail_20' ) end [2024-12-24 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092195', 'tblTempVendorCDR_20' ) start [2024-12-24 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092195', 'tblTempVendorCDR_20' ) end [2024-12-24 12:31:20] Production.INFO: ProcessCDR(1,14092195,1,1,2) [2024-12-24 12:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092195', 'tblTempUsageDetail_20' ) start [2024-12-24 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092195', 'tblTempUsageDetail_20' ) end [2024-12-24 12:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:31:23] Production.INFO: ==17901== Releasing lock... [2024-12-24 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:31:23] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:32:05 [end_date_ymd] => 2024-12-24 12:32:05 [RateCDR] => 1 ) [2024-12-24 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:32:05' and `end` < '2024-12-24 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:32:19] Production.INFO: count ==3829 [2024-12-24 12:32:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:32:05 - End Time 2024-12-24 12:32:05 [2024-12-24 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092200', 'tblTempUsageDetail_20' ) start [2024-12-24 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092200', 'tblTempUsageDetail_20' ) end [2024-12-24 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092200', 'tblTempVendorCDR_20' ) start [2024-12-24 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092200', 'tblTempVendorCDR_20' ) end [2024-12-24 12:32:20] Production.INFO: ProcessCDR(1,14092200,1,1,2) [2024-12-24 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092200', 'tblTempUsageDetail_20' ) start [2024-12-24 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092200', 'tblTempUsageDetail_20' ) end [2024-12-24 12:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:32:25] Production.INFO: ==17980== Releasing lock... [2024-12-24 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:32:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:33:04 [end_date_ymd] => 2024-12-24 12:33:04 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:33:04' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:33:17] Production.INFO: count ==3841 [2024-12-24 12:33:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:33:04 - End Time 2024-12-24 12:33:04 [2024-12-24 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092205', 'tblTempUsageDetail_20' ) start [2024-12-24 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092205', 'tblTempUsageDetail_20' ) end [2024-12-24 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092205', 'tblTempVendorCDR_20' ) start [2024-12-24 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092205', 'tblTempVendorCDR_20' ) end [2024-12-24 12:33:19] Production.INFO: ProcessCDR(1,14092205,1,1,2) [2024-12-24 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092205', 'tblTempUsageDetail_20' ) start [2024-12-24 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092205', 'tblTempUsageDetail_20' ) end [2024-12-24 12:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:33:22] Production.INFO: ==18094== Releasing lock... [2024-12-24 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:33:22] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:34:05 [end_date_ymd] => 2024-12-24 12:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:34:18] Production.INFO: count ==3804 [2024-12-24 12:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:34:05 - End Time 2024-12-24 12:34:05 [2024-12-24 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092210', 'tblTempUsageDetail_20' ) start [2024-12-24 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092210', 'tblTempUsageDetail_20' ) end [2024-12-24 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092210', 'tblTempVendorCDR_20' ) start [2024-12-24 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092210', 'tblTempVendorCDR_20' ) end [2024-12-24 12:34:19] Production.INFO: ProcessCDR(1,14092210,1,1,2) [2024-12-24 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092210', 'tblTempUsageDetail_20' ) start [2024-12-24 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092210', 'tblTempUsageDetail_20' ) end [2024-12-24 12:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:34:22] Production.INFO: ==18169== Releasing lock... [2024-12-24 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:34:22] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:35:04 [end_date_ymd] => 2024-12-24 12:35:04 [RateCDR] => 1 ) [2024-12-24 12:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:35:04' and `end` < '2024-12-24 12:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:35:22] Production.INFO: count ==3800 [2024-12-24 12:35:23] Production.ERROR: pbx CDR StartTime 2024-12-24 09:35:04 - End Time 2024-12-24 12:35:04 [2024-12-24 12:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092215', 'tblTempUsageDetail_20' ) start [2024-12-24 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092215', 'tblTempUsageDetail_20' ) end [2024-12-24 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092215', 'tblTempVendorCDR_20' ) start [2024-12-24 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092215', 'tblTempVendorCDR_20' ) end [2024-12-24 12:35:24] Production.INFO: ProcessCDR(1,14092215,1,1,2) [2024-12-24 12:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092215', 'tblTempUsageDetail_20' ) start [2024-12-24 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092215', 'tblTempUsageDetail_20' ) end [2024-12-24 12:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:35:28] Production.INFO: ==18243== Releasing lock... [2024-12-24 12:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:35:28] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:36:05 [end_date_ymd] => 2024-12-24 12:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:36:21] Production.INFO: count ==3804 [2024-12-24 12:36:23] Production.ERROR: pbx CDR StartTime 2024-12-24 09:36:05 - End Time 2024-12-24 12:36:05 [2024-12-24 12:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092220', 'tblTempUsageDetail_20' ) start [2024-12-24 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092220', 'tblTempUsageDetail_20' ) end [2024-12-24 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092220', 'tblTempVendorCDR_20' ) start [2024-12-24 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092220', 'tblTempVendorCDR_20' ) end [2024-12-24 12:36:23] Production.INFO: ProcessCDR(1,14092220,1,1,2) [2024-12-24 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092220', 'tblTempUsageDetail_20' ) start [2024-12-24 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092220', 'tblTempUsageDetail_20' ) end [2024-12-24 12:36:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:36:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:36:27] Production.INFO: ==18322== Releasing lock... [2024-12-24 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:36:27] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:37:04 [end_date_ymd] => 2024-12-24 12:37:04 [RateCDR] => 1 ) [2024-12-24 12:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:37:04' and `end` < '2024-12-24 12:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:37:18] Production.INFO: count ==3808 [2024-12-24 12:37:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:37:04 - End Time 2024-12-24 12:37:04 [2024-12-24 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092225', 'tblTempUsageDetail_20' ) start [2024-12-24 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092225', 'tblTempUsageDetail_20' ) end [2024-12-24 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092225', 'tblTempVendorCDR_20' ) start [2024-12-24 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092225', 'tblTempVendorCDR_20' ) end [2024-12-24 12:37:19] Production.INFO: ProcessCDR(1,14092225,1,1,2) [2024-12-24 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092225', 'tblTempUsageDetail_20' ) start [2024-12-24 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092225', 'tblTempUsageDetail_20' ) end [2024-12-24 12:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:37:22] Production.INFO: ==18394== Releasing lock... [2024-12-24 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:37:22] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:38:05 [end_date_ymd] => 2024-12-24 12:38:05 [RateCDR] => 1 ) [2024-12-24 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:38:05' and `end` < '2024-12-24 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:38:19] Production.INFO: count ==3810 [2024-12-24 12:38:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:38:05 - End Time 2024-12-24 12:38:05 [2024-12-24 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092230', 'tblTempUsageDetail_20' ) start [2024-12-24 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092230', 'tblTempUsageDetail_20' ) end [2024-12-24 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092230', 'tblTempVendorCDR_20' ) start [2024-12-24 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092230', 'tblTempVendorCDR_20' ) end [2024-12-24 12:38:21] Production.INFO: ProcessCDR(1,14092230,1,1,2) [2024-12-24 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092230', 'tblTempUsageDetail_20' ) start [2024-12-24 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092230', 'tblTempUsageDetail_20' ) end [2024-12-24 12:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:38:26] Production.INFO: ==18472== Releasing lock... [2024-12-24 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:38:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:39:05 [end_date_ymd] => 2024-12-24 12:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:39:18] Production.INFO: count ==3796 [2024-12-24 12:39:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:39:05 - End Time 2024-12-24 12:39:05 [2024-12-24 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092235', 'tblTempUsageDetail_20' ) start [2024-12-24 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092235', 'tblTempUsageDetail_20' ) end [2024-12-24 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092235', 'tblTempVendorCDR_20' ) start [2024-12-24 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092235', 'tblTempVendorCDR_20' ) end [2024-12-24 12:39:20] Production.INFO: ProcessCDR(1,14092235,1,1,2) [2024-12-24 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092235', 'tblTempUsageDetail_20' ) start [2024-12-24 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092235', 'tblTempUsageDetail_20' ) end [2024-12-24 12:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:39:24] Production.INFO: ==18549== Releasing lock... [2024-12-24 12:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:39:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:40:05 [end_date_ymd] => 2024-12-24 12:40:05 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:40:05' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:40:25] Production.INFO: count ==3787 [2024-12-24 12:40:27] Production.ERROR: pbx CDR StartTime 2024-12-24 09:40:05 - End Time 2024-12-24 12:40:05 [2024-12-24 12:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092241', 'tblTempUsageDetail_20' ) start [2024-12-24 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092241', 'tblTempUsageDetail_20' ) end [2024-12-24 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092241', 'tblTempVendorCDR_20' ) start [2024-12-24 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092241', 'tblTempVendorCDR_20' ) end [2024-12-24 12:40:27] Production.INFO: ProcessCDR(1,14092241,1,1,2) [2024-12-24 12:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092241', 'tblTempUsageDetail_20' ) start [2024-12-24 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092241', 'tblTempUsageDetail_20' ) end [2024-12-24 12:40:31] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:40:31] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:40:31] Production.INFO: ==18630== Releasing lock... [2024-12-24 12:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:40:31] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:41:05 [end_date_ymd] => 2024-12-24 12:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:41:24] Production.INFO: count ==3792 [2024-12-24 12:41:25] Production.ERROR: pbx CDR StartTime 2024-12-24 09:41:05 - End Time 2024-12-24 12:41:05 [2024-12-24 12:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092246', 'tblTempUsageDetail_20' ) start [2024-12-24 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092246', 'tblTempUsageDetail_20' ) end [2024-12-24 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092246', 'tblTempVendorCDR_20' ) start [2024-12-24 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092246', 'tblTempVendorCDR_20' ) end [2024-12-24 12:41:25] Production.INFO: ProcessCDR(1,14092246,1,1,2) [2024-12-24 12:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092246', 'tblTempUsageDetail_20' ) start [2024-12-24 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092246', 'tblTempUsageDetail_20' ) end [2024-12-24 12:41:30] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:41:30] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:41:30] Production.INFO: ==18712== Releasing lock... [2024-12-24 12:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:41:30] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:42:04 [end_date_ymd] => 2024-12-24 12:42:04 [RateCDR] => 1 ) [2024-12-24 12: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` >= '2024-12-24 09:42:04' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:42:18] Production.INFO: count ==3788 [2024-12-24 12:42:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:42:04 - End Time 2024-12-24 12:42:04 [2024-12-24 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092251', 'tblTempUsageDetail_20' ) start [2024-12-24 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092251', 'tblTempUsageDetail_20' ) end [2024-12-24 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092251', 'tblTempVendorCDR_20' ) start [2024-12-24 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092251', 'tblTempVendorCDR_20' ) end [2024-12-24 12:42:20] Production.INFO: ProcessCDR(1,14092251,1,1,2) [2024-12-24 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092251', 'tblTempUsageDetail_20' ) start [2024-12-24 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092251', 'tblTempUsageDetail_20' ) end [2024-12-24 12:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:42:24] Production.INFO: ==18789== Releasing lock... [2024-12-24 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:42:24] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:43:05 [end_date_ymd] => 2024-12-24 12:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:43:22] Production.INFO: count ==3806 [2024-12-24 12:43:24] Production.ERROR: pbx CDR StartTime 2024-12-24 09:43:05 - End Time 2024-12-24 12:43:05 [2024-12-24 12:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092256', 'tblTempUsageDetail_20' ) start [2024-12-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092256', 'tblTempUsageDetail_20' ) end [2024-12-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092256', 'tblTempVendorCDR_20' ) start [2024-12-24 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092256', 'tblTempVendorCDR_20' ) end [2024-12-24 12:43:24] Production.INFO: ProcessCDR(1,14092256,1,1,2) [2024-12-24 12:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092256', 'tblTempUsageDetail_20' ) start [2024-12-24 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092256', 'tblTempUsageDetail_20' ) end [2024-12-24 12:43:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:43:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:43:29] Production.INFO: ==18866== Releasing lock... [2024-12-24 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:43:29] Production.INFO: 57.5 MB #Memory Used# [2024-12-24 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:44:05 [end_date_ymd] => 2024-12-24 12:44:05 [RateCDR] => 1 ) [2024-12-24 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:44:05' and `end` < '2024-12-24 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:44:18] Production.INFO: count ==3803 [2024-12-24 12:44:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:44:05 - End Time 2024-12-24 12:44:05 [2024-12-24 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092261', 'tblTempUsageDetail_20' ) start [2024-12-24 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092261', 'tblTempUsageDetail_20' ) end [2024-12-24 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092261', 'tblTempVendorCDR_20' ) start [2024-12-24 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092261', 'tblTempVendorCDR_20' ) end [2024-12-24 12:44:20] Production.INFO: ProcessCDR(1,14092261,1,1,2) [2024-12-24 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092261', 'tblTempUsageDetail_20' ) start [2024-12-24 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092261', 'tblTempUsageDetail_20' ) end [2024-12-24 12:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:44:24] Production.INFO: ==18943== Releasing lock... [2024-12-24 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:44:24] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:45:05 [end_date_ymd] => 2024-12-24 12:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:45:18] Production.INFO: count ==3800 [2024-12-24 12:45:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:45:05 - End Time 2024-12-24 12:45:05 [2024-12-24 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092266', 'tblTempUsageDetail_20' ) start [2024-12-24 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092266', 'tblTempUsageDetail_20' ) end [2024-12-24 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092266', 'tblTempVendorCDR_20' ) start [2024-12-24 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092266', 'tblTempVendorCDR_20' ) end [2024-12-24 12:45:20] Production.INFO: ProcessCDR(1,14092266,1,1,2) [2024-12-24 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092266', 'tblTempUsageDetail_20' ) start [2024-12-24 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092266', 'tblTempUsageDetail_20' ) end [2024-12-24 12:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:45:24] Production.INFO: ==19023== Releasing lock... [2024-12-24 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:45:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:46:05 [end_date_ymd] => 2024-12-24 12:46:05 [RateCDR] => 1 ) [2024-12-24 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:46:05' and `end` < '2024-12-24 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:46:22] Production.INFO: count ==3767 [2024-12-24 12:46:23] Production.ERROR: pbx CDR StartTime 2024-12-24 09:46:05 - End Time 2024-12-24 12:46:05 [2024-12-24 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092271', 'tblTempUsageDetail_20' ) start [2024-12-24 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092271', 'tblTempUsageDetail_20' ) end [2024-12-24 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092271', 'tblTempVendorCDR_20' ) start [2024-12-24 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092271', 'tblTempVendorCDR_20' ) end [2024-12-24 12:46:23] Production.INFO: ProcessCDR(1,14092271,1,1,2) [2024-12-24 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092271', 'tblTempUsageDetail_20' ) start [2024-12-24 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092271', 'tblTempUsageDetail_20' ) end [2024-12-24 12:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:46:28] Production.INFO: ==19101== Releasing lock... [2024-12-24 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:46:28] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:47:05 [end_date_ymd] => 2024-12-24 12:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:47:20] Production.INFO: count ==3753 [2024-12-24 12:47:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:47:05 - End Time 2024-12-24 12:47:05 [2024-12-24 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092276', 'tblTempUsageDetail_20' ) start [2024-12-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092276', 'tblTempUsageDetail_20' ) end [2024-12-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092276', 'tblTempVendorCDR_20' ) start [2024-12-24 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092276', 'tblTempVendorCDR_20' ) end [2024-12-24 12:47:21] Production.INFO: ProcessCDR(1,14092276,1,1,2) [2024-12-24 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092276', 'tblTempUsageDetail_20' ) start [2024-12-24 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092276', 'tblTempUsageDetail_20' ) end [2024-12-24 12:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:47:26] Production.INFO: ==19175== Releasing lock... [2024-12-24 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:47:26] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:48:04 [end_date_ymd] => 2024-12-24 12:48:04 [RateCDR] => 1 ) [2024-12-24 12:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:48:04' and `end` < '2024-12-24 12: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 ,'') [2024-12-24 12:48:21] Production.INFO: count ==3748 [2024-12-24 12:48:22] Production.ERROR: pbx CDR StartTime 2024-12-24 09:48:04 - End Time 2024-12-24 12:48:04 [2024-12-24 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092281', 'tblTempUsageDetail_20' ) start [2024-12-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092281', 'tblTempUsageDetail_20' ) end [2024-12-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092281', 'tblTempVendorCDR_20' ) start [2024-12-24 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092281', 'tblTempVendorCDR_20' ) end [2024-12-24 12:48:22] Production.INFO: ProcessCDR(1,14092281,1,1,2) [2024-12-24 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092281', 'tblTempUsageDetail_20' ) start [2024-12-24 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092281', 'tblTempUsageDetail_20' ) end [2024-12-24 12:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:48:27] Production.INFO: ==19295== Releasing lock... [2024-12-24 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:48:27] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:49:04 [end_date_ymd] => 2024-12-24 12:49:04 [RateCDR] => 1 ) [2024-12-24 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:49:04' and `end` < '2024-12-24 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:49:20] Production.INFO: count ==3754 [2024-12-24 12:49:22] Production.ERROR: pbx CDR StartTime 2024-12-24 09:49:04 - End Time 2024-12-24 12:49:04 [2024-12-24 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092286', 'tblTempUsageDetail_20' ) start [2024-12-24 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092286', 'tblTempUsageDetail_20' ) end [2024-12-24 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092286', 'tblTempVendorCDR_20' ) start [2024-12-24 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092286', 'tblTempVendorCDR_20' ) end [2024-12-24 12:49:22] Production.INFO: ProcessCDR(1,14092286,1,1,2) [2024-12-24 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092286', 'tblTempUsageDetail_20' ) start [2024-12-24 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092286', 'tblTempUsageDetail_20' ) end [2024-12-24 12:49:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:49:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:49:25] Production.INFO: ==19370== Releasing lock... [2024-12-24 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:49:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:50:06 [end_date_ymd] => 2024-12-24 12:50:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:50:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:50:20] Production.INFO: count ==3739 [2024-12-24 12:50:21] Production.ERROR: pbx CDR StartTime 2024-12-24 09:50:06 - End Time 2024-12-24 12:50:06 [2024-12-24 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092292', 'tblTempUsageDetail_20' ) start [2024-12-24 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092292', 'tblTempUsageDetail_20' ) end [2024-12-24 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092292', 'tblTempVendorCDR_20' ) start [2024-12-24 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092292', 'tblTempVendorCDR_20' ) end [2024-12-24 12:50:21] Production.INFO: ProcessCDR(1,14092292,1,1,2) [2024-12-24 12:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092292', 'tblTempUsageDetail_20' ) start [2024-12-24 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092292', 'tblTempUsageDetail_20' ) end [2024-12-24 12:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:50:25] Production.INFO: ==19456== Releasing lock... [2024-12-24 12:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:50:25] Production.INFO: 57 MB #Memory Used# [2024-12-24 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:51:05 [end_date_ymd] => 2024-12-24 12:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:51:21] Production.INFO: count ==3759 [2024-12-24 12:51:22] Production.ERROR: pbx CDR StartTime 2024-12-24 09:51:05 - End Time 2024-12-24 12:51:05 [2024-12-24 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092297', 'tblTempUsageDetail_20' ) start [2024-12-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092297', 'tblTempUsageDetail_20' ) end [2024-12-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092297', 'tblTempVendorCDR_20' ) start [2024-12-24 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092297', 'tblTempVendorCDR_20' ) end [2024-12-24 12:51:22] Production.INFO: ProcessCDR(1,14092297,1,1,2) [2024-12-24 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092297', 'tblTempUsageDetail_20' ) start [2024-12-24 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092297', 'tblTempUsageDetail_20' ) end [2024-12-24 12:51:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:51:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:51:27] Production.INFO: ==19531== Releasing lock... [2024-12-24 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:51:27] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:52:05 [end_date_ymd] => 2024-12-24 12:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:52:18] Production.INFO: count ==3731 [2024-12-24 12:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:52:05 - End Time 2024-12-24 12:52:05 [2024-12-24 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092302', 'tblTempUsageDetail_20' ) start [2024-12-24 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092302', 'tblTempUsageDetail_20' ) end [2024-12-24 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092302', 'tblTempVendorCDR_20' ) start [2024-12-24 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092302', 'tblTempVendorCDR_20' ) end [2024-12-24 12:52:19] Production.INFO: ProcessCDR(1,14092302,1,1,2) [2024-12-24 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092302', 'tblTempUsageDetail_20' ) start [2024-12-24 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092302', 'tblTempUsageDetail_20' ) end [2024-12-24 12:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:52:24] Production.INFO: ==19611== Releasing lock... [2024-12-24 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:52:24] Production.INFO: 56 MB #Memory Used# [2024-12-24 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:53:05 [end_date_ymd] => 2024-12-24 12:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:53:18] Production.INFO: count ==3728 [2024-12-24 12:53:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:53:05 - End Time 2024-12-24 12:53:05 [2024-12-24 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092307', 'tblTempUsageDetail_20' ) start [2024-12-24 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092307', 'tblTempUsageDetail_20' ) end [2024-12-24 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092307', 'tblTempVendorCDR_20' ) start [2024-12-24 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092307', 'tblTempVendorCDR_20' ) end [2024-12-24 12:53:20] Production.INFO: ProcessCDR(1,14092307,1,1,2) [2024-12-24 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092307', 'tblTempUsageDetail_20' ) start [2024-12-24 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092307', 'tblTempUsageDetail_20' ) end [2024-12-24 12:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:53:25] Production.INFO: ==19692== Releasing lock... [2024-12-24 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:53:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:54:05 [end_date_ymd] => 2024-12-24 12:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 09:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 12:54:18] Production.INFO: count ==3740 [2024-12-24 12:54:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:54:05 - End Time 2024-12-24 12:54:05 [2024-12-24 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092312', 'tblTempUsageDetail_20' ) start [2024-12-24 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092312', 'tblTempUsageDetail_20' ) end [2024-12-24 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092312', 'tblTempVendorCDR_20' ) start [2024-12-24 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092312', 'tblTempVendorCDR_20' ) end [2024-12-24 12:54:19] Production.INFO: ProcessCDR(1,14092312,1,1,2) [2024-12-24 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092312', 'tblTempUsageDetail_20' ) start [2024-12-24 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092312', 'tblTempUsageDetail_20' ) end [2024-12-24 12:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:54:23] Production.INFO: ==19769== Releasing lock... [2024-12-24 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:54:23] Production.INFO: 56 MB #Memory Used# [2024-12-24 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:55:05 [end_date_ymd] => 2024-12-24 12:55:05 [RateCDR] => 1 ) [2024-12-24 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:55:05' and `end` < '2024-12-24 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:55:18] Production.INFO: count ==3733 [2024-12-24 12:55:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:55:05 - End Time 2024-12-24 12:55:05 [2024-12-24 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092317', 'tblTempUsageDetail_20' ) start [2024-12-24 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092317', 'tblTempUsageDetail_20' ) end [2024-12-24 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092317', 'tblTempVendorCDR_20' ) start [2024-12-24 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092317', 'tblTempVendorCDR_20' ) end [2024-12-24 12:55:20] Production.INFO: ProcessCDR(1,14092317,1,1,2) [2024-12-24 12:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092317', 'tblTempUsageDetail_20' ) start [2024-12-24 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092317', 'tblTempUsageDetail_20' ) end [2024-12-24 12:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:55:24] Production.INFO: ==19848== Releasing lock... [2024-12-24 12:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:55:24] Production.INFO: 56 MB #Memory Used# [2024-12-24 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:56:04 [end_date_ymd] => 2024-12-24 12:56:04 [RateCDR] => 1 ) [2024-12-24 12:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:56:04' and `end` < '2024-12-24 12:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:56:18] Production.INFO: count ==3728 [2024-12-24 12:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:56:04 - End Time 2024-12-24 12:56:04 [2024-12-24 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092322', 'tblTempUsageDetail_20' ) start [2024-12-24 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092322', 'tblTempUsageDetail_20' ) end [2024-12-24 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092322', 'tblTempVendorCDR_20' ) start [2024-12-24 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092322', 'tblTempVendorCDR_20' ) end [2024-12-24 12:56:19] Production.INFO: ProcessCDR(1,14092322,1,1,2) [2024-12-24 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092322', 'tblTempUsageDetail_20' ) start [2024-12-24 12:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092322', 'tblTempUsageDetail_20' ) end [2024-12-24 12:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:56:24] Production.INFO: ==19923== Releasing lock... [2024-12-24 12:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:56:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:57:04 [end_date_ymd] => 2024-12-24 12:57:04 [RateCDR] => 1 ) [2024-12-24 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:57:04' and `end` < '2024-12-24 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:57:18] Production.INFO: count ==3725 [2024-12-24 12:57:20] Production.ERROR: pbx CDR StartTime 2024-12-24 09:57:04 - End Time 2024-12-24 12:57:04 [2024-12-24 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092327', 'tblTempUsageDetail_20' ) start [2024-12-24 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092327', 'tblTempUsageDetail_20' ) end [2024-12-24 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092327', 'tblTempVendorCDR_20' ) start [2024-12-24 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092327', 'tblTempVendorCDR_20' ) end [2024-12-24 12:57:20] Production.INFO: ProcessCDR(1,14092327,1,1,2) [2024-12-24 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092327', 'tblTempUsageDetail_20' ) start [2024-12-24 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092327', 'tblTempUsageDetail_20' ) end [2024-12-24 12:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:57:24] Production.INFO: ==19998== Releasing lock... [2024-12-24 12:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:57:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:58:05 [end_date_ymd] => 2024-12-24 12:58:05 [RateCDR] => 1 ) [2024-12-24 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:58:05' and `end` < '2024-12-24 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:58:18] Production.INFO: count ==3726 [2024-12-24 12:58:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:58:05 - End Time 2024-12-24 12:58:05 [2024-12-24 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092332', 'tblTempUsageDetail_20' ) start [2024-12-24 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092332', 'tblTempUsageDetail_20' ) end [2024-12-24 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092332', 'tblTempVendorCDR_20' ) start [2024-12-24 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092332', 'tblTempVendorCDR_20' ) end [2024-12-24 12:58:19] Production.INFO: ProcessCDR(1,14092332,1,1,2) [2024-12-24 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092332', 'tblTempUsageDetail_20' ) start [2024-12-24 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092332', 'tblTempUsageDetail_20' ) end [2024-12-24 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:58:24] Production.INFO: ==20080== Releasing lock... [2024-12-24 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:58:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 09:59:04 [end_date_ymd] => 2024-12-24 12:59:04 [RateCDR] => 1 ) [2024-12-24 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 09:59:04' and `end` < '2024-12-24 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 12:59:17] Production.INFO: count ==3715 [2024-12-24 12:59:19] Production.ERROR: pbx CDR StartTime 2024-12-24 09:59:04 - End Time 2024-12-24 12:59:04 [2024-12-24 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092337', 'tblTempUsageDetail_20' ) start [2024-12-24 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092337', 'tblTempUsageDetail_20' ) end [2024-12-24 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092337', 'tblTempVendorCDR_20' ) start [2024-12-24 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092337', 'tblTempVendorCDR_20' ) end [2024-12-24 12:59:19] Production.INFO: ProcessCDR(1,14092337,1,1,2) [2024-12-24 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092337', 'tblTempUsageDetail_20' ) start [2024-12-24 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092337', 'tblTempUsageDetail_20' ) end [2024-12-24 12:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 12:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 12:59:24] Production.INFO: ==20154== Releasing lock... [2024-12-24 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 12:59:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:00:05 [end_date_ymd] => 2024-12-24 13:00:05 [RateCDR] => 1 ) [2024-12-24 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:00:05' and `end` < '2024-12-24 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:00:19] Production.INFO: count ==3703 [2024-12-24 13:00:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:00:05 - End Time 2024-12-24 13:00:05 [2024-12-24 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092342', 'tblTempUsageDetail_20' ) start [2024-12-24 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092342', 'tblTempUsageDetail_20' ) end [2024-12-24 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092342', 'tblTempVendorCDR_20' ) start [2024-12-24 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092342', 'tblTempVendorCDR_20' ) end [2024-12-24 13:00:21] Production.INFO: ProcessCDR(1,14092342,1,1,2) [2024-12-24 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092342', 'tblTempUsageDetail_20' ) start [2024-12-24 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092342', 'tblTempUsageDetail_20' ) end [2024-12-24 13:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:00:25] Production.INFO: ==20239== Releasing lock... [2024-12-24 13:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:00:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-24 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:01:05 [end_date_ymd] => 2024-12-24 13:01:05 [RateCDR] => 1 ) [2024-12-24 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:01:05' and `end` < '2024-12-24 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:01:18] Production.INFO: count ==3673 [2024-12-24 13:01:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:01:05 - End Time 2024-12-24 13:01:05 [2024-12-24 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092348', 'tblTempUsageDetail_20' ) start [2024-12-24 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092348', 'tblTempUsageDetail_20' ) end [2024-12-24 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092348', 'tblTempVendorCDR_20' ) start [2024-12-24 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092348', 'tblTempVendorCDR_20' ) end [2024-12-24 13:01:20] Production.INFO: ProcessCDR(1,14092348,1,1,2) [2024-12-24 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092348', 'tblTempUsageDetail_20' ) start [2024-12-24 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092348', 'tblTempUsageDetail_20' ) end [2024-12-24 13:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:01:23] Production.INFO: ==20345== Releasing lock... [2024-12-24 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:01:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-24 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:02:04 [end_date_ymd] => 2024-12-24 13:02:04 [RateCDR] => 1 ) [2024-12-24 13: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` >= '2024-12-24 10:02:04' and `end` < '2024-12-24 13: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 ,'') [2024-12-24 13:02:18] Production.INFO: count ==3672 [2024-12-24 13:02:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:02:04 - End Time 2024-12-24 13:02:04 [2024-12-24 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092353', 'tblTempUsageDetail_20' ) start [2024-12-24 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092353', 'tblTempUsageDetail_20' ) end [2024-12-24 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092353', 'tblTempVendorCDR_20' ) start [2024-12-24 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092353', 'tblTempVendorCDR_20' ) end [2024-12-24 13:02:19] Production.INFO: ProcessCDR(1,14092353,1,1,2) [2024-12-24 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092353', 'tblTempUsageDetail_20' ) start [2024-12-24 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092353', 'tblTempUsageDetail_20' ) end [2024-12-24 13:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:02:24] Production.INFO: ==20438== Releasing lock... [2024-12-24 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:02:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:03:05 [end_date_ymd] => 2024-12-24 13:03:05 [RateCDR] => 1 ) [2024-12-24 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:03:18] Production.INFO: count ==3664 [2024-12-24 13:03:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:03:05 - End Time 2024-12-24 13:03:05 [2024-12-24 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092358', 'tblTempUsageDetail_20' ) start [2024-12-24 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092358', 'tblTempUsageDetail_20' ) end [2024-12-24 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092358', 'tblTempVendorCDR_20' ) start [2024-12-24 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092358', 'tblTempVendorCDR_20' ) end [2024-12-24 13:03:19] Production.INFO: ProcessCDR(1,14092358,1,1,2) [2024-12-24 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092358', 'tblTempUsageDetail_20' ) start [2024-12-24 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092358', 'tblTempUsageDetail_20' ) end [2024-12-24 13:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:03:24] Production.INFO: ==20516== Releasing lock... [2024-12-24 13:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:03:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:04:04 [end_date_ymd] => 2024-12-24 13:04:04 [RateCDR] => 1 ) [2024-12-24 13: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` >= '2024-12-24 10:04:04' and `end` < '2024-12-24 13: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 ,'') [2024-12-24 13:04:17] Production.INFO: count ==3657 [2024-12-24 13:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 10:04:04 - End Time 2024-12-24 13:04:04 [2024-12-24 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092362', 'tblTempUsageDetail_20' ) start [2024-12-24 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092362', 'tblTempUsageDetail_20' ) end [2024-12-24 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092362', 'tblTempVendorCDR_20' ) start [2024-12-24 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092362', 'tblTempVendorCDR_20' ) end [2024-12-24 13:04:18] Production.INFO: ProcessCDR(1,14092362,1,1,2) [2024-12-24 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092362', 'tblTempUsageDetail_20' ) start [2024-12-24 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092362', 'tblTempUsageDetail_20' ) end [2024-12-24 13:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:04:23] Production.INFO: ==20631== Releasing lock... [2024-12-24 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:04:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:05:05 [end_date_ymd] => 2024-12-24 13:05:05 [RateCDR] => 1 ) [2024-12-24 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:05:05' and `end` < '2024-12-24 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:05:25] Production.INFO: count ==3662 [2024-12-24 13:05:26] Production.ERROR: pbx CDR StartTime 2024-12-24 10:05:05 - End Time 2024-12-24 13:05:05 [2024-12-24 13:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092368', 'tblTempUsageDetail_20' ) start [2024-12-24 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092368', 'tblTempUsageDetail_20' ) end [2024-12-24 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092368', 'tblTempVendorCDR_20' ) start [2024-12-24 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092368', 'tblTempVendorCDR_20' ) end [2024-12-24 13:05:26] Production.INFO: ProcessCDR(1,14092368,1,1,2) [2024-12-24 13:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092368', 'tblTempUsageDetail_20' ) start [2024-12-24 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092368', 'tblTempUsageDetail_20' ) end [2024-12-24 13:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:05:30] Production.INFO: ==20708== Releasing lock... [2024-12-24 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:05:30] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:06:05 [end_date_ymd] => 2024-12-24 13:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:06:19] Production.INFO: count ==3646 [2024-12-24 13:06:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:06:05 - End Time 2024-12-24 13:06:05 [2024-12-24 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092373', 'tblTempUsageDetail_20' ) start [2024-12-24 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092373', 'tblTempUsageDetail_20' ) end [2024-12-24 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092373', 'tblTempVendorCDR_20' ) start [2024-12-24 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092373', 'tblTempVendorCDR_20' ) end [2024-12-24 13:06:20] Production.INFO: ProcessCDR(1,14092373,1,1,2) [2024-12-24 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092373', 'tblTempUsageDetail_20' ) start [2024-12-24 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092373', 'tblTempUsageDetail_20' ) end [2024-12-24 13:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:06:25] Production.INFO: ==20790== Releasing lock... [2024-12-24 13:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:06:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:07:04 [end_date_ymd] => 2024-12-24 13:07:04 [RateCDR] => 1 ) [2024-12-24 13: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` >= '2024-12-24 10:07:04' and `end` < '2024-12-24 13: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 ,'') [2024-12-24 13:07:17] Production.INFO: count ==3635 [2024-12-24 13:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 10:07:04 - End Time 2024-12-24 13:07:04 [2024-12-24 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092378', 'tblTempUsageDetail_20' ) start [2024-12-24 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092378', 'tblTempUsageDetail_20' ) end [2024-12-24 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092378', 'tblTempVendorCDR_20' ) start [2024-12-24 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092378', 'tblTempVendorCDR_20' ) end [2024-12-24 13:07:18] Production.INFO: ProcessCDR(1,14092378,1,1,2) [2024-12-24 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092378', 'tblTempUsageDetail_20' ) start [2024-12-24 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092378', 'tblTempUsageDetail_20' ) end [2024-12-24 13:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:07:23] Production.INFO: ==20866== Releasing lock... [2024-12-24 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:07:23] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:08:05 [end_date_ymd] => 2024-12-24 13:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:08:18] Production.INFO: count ==3617 [2024-12-24 13:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:08:05 - End Time 2024-12-24 13:08:05 [2024-12-24 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092383', 'tblTempUsageDetail_20' ) start [2024-12-24 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092383', 'tblTempUsageDetail_20' ) end [2024-12-24 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092383', 'tblTempVendorCDR_20' ) start [2024-12-24 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092383', 'tblTempVendorCDR_20' ) end [2024-12-24 13:08:20] Production.INFO: ProcessCDR(1,14092383,1,1,2) [2024-12-24 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092383', 'tblTempUsageDetail_20' ) start [2024-12-24 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092383', 'tblTempUsageDetail_20' ) end [2024-12-24 13:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:08:23] Production.INFO: ==20947== Releasing lock... [2024-12-24 13:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:08:23] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:09:04 [end_date_ymd] => 2024-12-24 13:09:04 [RateCDR] => 1 ) [2024-12-24 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:09:04' and `end` < '2024-12-24 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:09:23] Production.INFO: count ==3622 [2024-12-24 13:09:25] Production.ERROR: pbx CDR StartTime 2024-12-24 10:09:04 - End Time 2024-12-24 13:09:04 [2024-12-24 13:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092388', 'tblTempUsageDetail_20' ) start [2024-12-24 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092388', 'tblTempUsageDetail_20' ) end [2024-12-24 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092388', 'tblTempVendorCDR_20' ) start [2024-12-24 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092388', 'tblTempVendorCDR_20' ) end [2024-12-24 13:09:25] Production.INFO: ProcessCDR(1,14092388,1,1,2) [2024-12-24 13:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092388', 'tblTempUsageDetail_20' ) start [2024-12-24 13:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092388', 'tblTempUsageDetail_20' ) end [2024-12-24 13:09:29] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:09:29] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:09:29] Production.INFO: ==21025== Releasing lock... [2024-12-24 13:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:09:29] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:10:05 [end_date_ymd] => 2024-12-24 13:10:05 [RateCDR] => 1 ) [2024-12-24 13: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` >= '2024-12-24 10:10:05' and `end` < '2024-12-24 13: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 ,'') [2024-12-24 13:10:21] Production.INFO: count ==3619 [2024-12-24 13:10:22] Production.ERROR: pbx CDR StartTime 2024-12-24 10:10:05 - End Time 2024-12-24 13:10:05 [2024-12-24 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092393', 'tblTempUsageDetail_20' ) start [2024-12-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092393', 'tblTempUsageDetail_20' ) end [2024-12-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092393', 'tblTempVendorCDR_20' ) start [2024-12-24 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092393', 'tblTempVendorCDR_20' ) end [2024-12-24 13:10:22] Production.INFO: ProcessCDR(1,14092393,1,1,2) [2024-12-24 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092393', 'tblTempUsageDetail_20' ) start [2024-12-24 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092393', 'tblTempUsageDetail_20' ) end [2024-12-24 13:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:10:27] Production.INFO: ==21106== Releasing lock... [2024-12-24 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:10:27] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:11:05 [end_date_ymd] => 2024-12-24 13:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:11:17] Production.INFO: count ==3612 [2024-12-24 13:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:11:05 - End Time 2024-12-24 13:11:05 [2024-12-24 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092399', 'tblTempUsageDetail_20' ) start [2024-12-24 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092399', 'tblTempUsageDetail_20' ) end [2024-12-24 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092399', 'tblTempVendorCDR_20' ) start [2024-12-24 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092399', 'tblTempVendorCDR_20' ) end [2024-12-24 13:11:19] Production.INFO: ProcessCDR(1,14092399,1,1,2) [2024-12-24 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092399', 'tblTempUsageDetail_20' ) start [2024-12-24 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092399', 'tblTempUsageDetail_20' ) end [2024-12-24 13:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:11:24] Production.INFO: ==21190== Releasing lock... [2024-12-24 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:11:24] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:12:04 [end_date_ymd] => 2024-12-24 13:12:04 [RateCDR] => 1 ) [2024-12-24 13:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:12:04' and `end` < '2024-12-24 13:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:12:17] Production.INFO: count ==3608 [2024-12-24 13:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:12:04 - End Time 2024-12-24 13:12:04 [2024-12-24 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092404', 'tblTempUsageDetail_20' ) start [2024-12-24 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092404', 'tblTempUsageDetail_20' ) end [2024-12-24 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092404', 'tblTempVendorCDR_20' ) start [2024-12-24 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092404', 'tblTempVendorCDR_20' ) end [2024-12-24 13:12:19] Production.INFO: ProcessCDR(1,14092404,1,1,2) [2024-12-24 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092404', 'tblTempUsageDetail_20' ) start [2024-12-24 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092404', 'tblTempUsageDetail_20' ) end [2024-12-24 13:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:12:23] Production.INFO: ==21269== Releasing lock... [2024-12-24 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:12:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:13:05 [end_date_ymd] => 2024-12-24 13:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:13:18] Production.INFO: count ==3604 [2024-12-24 13:13:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:13:05 - End Time 2024-12-24 13:13:05 [2024-12-24 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092409', 'tblTempUsageDetail_20' ) start [2024-12-24 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092409', 'tblTempUsageDetail_20' ) end [2024-12-24 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092409', 'tblTempVendorCDR_20' ) start [2024-12-24 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092409', 'tblTempVendorCDR_20' ) end [2024-12-24 13:13:19] Production.INFO: ProcessCDR(1,14092409,1,1,2) [2024-12-24 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092409', 'tblTempUsageDetail_20' ) start [2024-12-24 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092409', 'tblTempUsageDetail_20' ) end [2024-12-24 13:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:13:23] Production.INFO: ==21347== Releasing lock... [2024-12-24 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:13:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:14:04 [end_date_ymd] => 2024-12-24 13:14:04 [RateCDR] => 1 ) [2024-12-24 13:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:14:04' and `end` < '2024-12-24 13:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:14:17] Production.INFO: count ==3591 [2024-12-24 13:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 10:14:04 - End Time 2024-12-24 13:14:04 [2024-12-24 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092414', 'tblTempUsageDetail_20' ) start [2024-12-24 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092414', 'tblTempUsageDetail_20' ) end [2024-12-24 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092414', 'tblTempVendorCDR_20' ) start [2024-12-24 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092414', 'tblTempVendorCDR_20' ) end [2024-12-24 13:14:18] Production.INFO: ProcessCDR(1,14092414,1,1,2) [2024-12-24 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092414', 'tblTempUsageDetail_20' ) start [2024-12-24 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092414', 'tblTempUsageDetail_20' ) end [2024-12-24 13:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:14:23] Production.INFO: ==21426== Releasing lock... [2024-12-24 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:14:23] Production.INFO: 55 MB #Memory Used# [2024-12-24 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:15:05 [end_date_ymd] => 2024-12-24 13:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:15:18] Production.INFO: count ==3575 [2024-12-24 13:15:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:15:05 - End Time 2024-12-24 13:15:05 [2024-12-24 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092419', 'tblTempUsageDetail_20' ) start [2024-12-24 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092419', 'tblTempUsageDetail_20' ) end [2024-12-24 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092419', 'tblTempVendorCDR_20' ) start [2024-12-24 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092419', 'tblTempVendorCDR_20' ) end [2024-12-24 13:15:19] Production.INFO: ProcessCDR(1,14092419,1,1,2) [2024-12-24 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092419', 'tblTempUsageDetail_20' ) start [2024-12-24 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092419', 'tblTempUsageDetail_20' ) end [2024-12-24 13:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:15:24] Production.INFO: ==21508== Releasing lock... [2024-12-24 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:15:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:16:05 [end_date_ymd] => 2024-12-24 13:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:16:18] Production.INFO: count ==3570 [2024-12-24 13:16:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:16:05 - End Time 2024-12-24 13:16:05 [2024-12-24 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092424', 'tblTempUsageDetail_20' ) start [2024-12-24 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092424', 'tblTempUsageDetail_20' ) end [2024-12-24 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092424', 'tblTempVendorCDR_20' ) start [2024-12-24 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092424', 'tblTempVendorCDR_20' ) end [2024-12-24 13:16:20] Production.INFO: ProcessCDR(1,14092424,1,1,2) [2024-12-24 13:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092424', 'tblTempUsageDetail_20' ) start [2024-12-24 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092424', 'tblTempUsageDetail_20' ) end [2024-12-24 13:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:16:25] Production.INFO: ==21584== Releasing lock... [2024-12-24 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:16:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:17:05 [end_date_ymd] => 2024-12-24 13:17:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:17:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:17:30] Production.INFO: count ==3562 [2024-12-24 13:17:31] Production.ERROR: pbx CDR StartTime 2024-12-24 10:17:05 - End Time 2024-12-24 13:17:05 [2024-12-24 13:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092429', 'tblTempUsageDetail_20' ) start [2024-12-24 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092429', 'tblTempUsageDetail_20' ) end [2024-12-24 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092429', 'tblTempVendorCDR_20' ) start [2024-12-24 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092429', 'tblTempVendorCDR_20' ) end [2024-12-24 13:17:31] Production.INFO: ProcessCDR(1,14092429,1,1,2) [2024-12-24 13:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092429', 'tblTempUsageDetail_20' ) start [2024-12-24 13:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092429', 'tblTempUsageDetail_20' ) end [2024-12-24 13:17:35] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:17:35] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:17:35] Production.INFO: ==21667== Releasing lock... [2024-12-24 13:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:17:35] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:18:05 [end_date_ymd] => 2024-12-24 13:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:18:20] Production.INFO: count ==3562 [2024-12-24 13:18:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:18:05 - End Time 2024-12-24 13:18:05 [2024-12-24 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092434', 'tblTempUsageDetail_20' ) start [2024-12-24 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092434', 'tblTempUsageDetail_20' ) end [2024-12-24 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092434', 'tblTempVendorCDR_20' ) start [2024-12-24 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092434', 'tblTempVendorCDR_20' ) end [2024-12-24 13:18:21] Production.INFO: ProcessCDR(1,14092434,1,1,2) [2024-12-24 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092434', 'tblTempUsageDetail_20' ) start [2024-12-24 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092434', 'tblTempUsageDetail_20' ) end [2024-12-24 13:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:18:26] Production.INFO: ==21745== Releasing lock... [2024-12-24 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:18:26] Production.INFO: 54.75 MB #Memory Used# [2024-12-24 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:19:05 [end_date_ymd] => 2024-12-24 13:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:19:21] Production.INFO: count ==3551 [2024-12-24 13:19:22] Production.ERROR: pbx CDR StartTime 2024-12-24 10:19:05 - End Time 2024-12-24 13:19:05 [2024-12-24 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092439', 'tblTempUsageDetail_20' ) start [2024-12-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092439', 'tblTempUsageDetail_20' ) end [2024-12-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092439', 'tblTempVendorCDR_20' ) start [2024-12-24 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092439', 'tblTempVendorCDR_20' ) end [2024-12-24 13:19:22] Production.INFO: ProcessCDR(1,14092439,1,1,2) [2024-12-24 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092439', 'tblTempUsageDetail_20' ) start [2024-12-24 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092439', 'tblTempUsageDetail_20' ) end [2024-12-24 13:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:19:25] Production.INFO: ==21819== Releasing lock... [2024-12-24 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:19:25] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:20:06 [end_date_ymd] => 2024-12-24 13:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:20:18] Production.INFO: count ==3557 [2024-12-24 13:20:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:20:06 - End Time 2024-12-24 13:20:06 [2024-12-24 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092445', 'tblTempUsageDetail_20' ) start [2024-12-24 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092445', 'tblTempUsageDetail_20' ) end [2024-12-24 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092445', 'tblTempVendorCDR_20' ) start [2024-12-24 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092445', 'tblTempVendorCDR_20' ) end [2024-12-24 13:20:20] Production.INFO: ProcessCDR(1,14092445,1,1,2) [2024-12-24 13:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092445', 'tblTempUsageDetail_20' ) start [2024-12-24 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092445', 'tblTempUsageDetail_20' ) end [2024-12-24 13:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:20:24] Production.INFO: ==21943== Releasing lock... [2024-12-24 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:20:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-24 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:21:05 [end_date_ymd] => 2024-12-24 13:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:21:19] Production.INFO: count ==3588 [2024-12-24 13:21:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:21:05 - End Time 2024-12-24 13:21:05 [2024-12-24 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092450', 'tblTempUsageDetail_20' ) start [2024-12-24 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092450', 'tblTempUsageDetail_20' ) end [2024-12-24 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092450', 'tblTempVendorCDR_20' ) start [2024-12-24 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092450', 'tblTempVendorCDR_20' ) end [2024-12-24 13:21:21] Production.INFO: ProcessCDR(1,14092450,1,1,2) [2024-12-24 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092450', 'tblTempUsageDetail_20' ) start [2024-12-24 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092450', 'tblTempUsageDetail_20' ) end [2024-12-24 13:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:21:24] Production.INFO: ==22019== Releasing lock... [2024-12-24 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:21:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:22:05 [end_date_ymd] => 2024-12-24 13:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:22:20] Production.INFO: count ==3601 [2024-12-24 13:22:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:22:05 - End Time 2024-12-24 13:22:05 [2024-12-24 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092455', 'tblTempUsageDetail_20' ) start [2024-12-24 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092455', 'tblTempUsageDetail_20' ) end [2024-12-24 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092455', 'tblTempVendorCDR_20' ) start [2024-12-24 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092455', 'tblTempVendorCDR_20' ) end [2024-12-24 13:22:21] Production.INFO: ProcessCDR(1,14092455,1,1,2) [2024-12-24 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092455', 'tblTempUsageDetail_20' ) start [2024-12-24 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092455', 'tblTempUsageDetail_20' ) end [2024-12-24 13:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:22:26] Production.INFO: ==22096== Releasing lock... [2024-12-24 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:22:26] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:23:04 [end_date_ymd] => 2024-12-24 13:23:04 [RateCDR] => 1 ) [2024-12-24 13:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:23:04' and `end` < '2024-12-24 13:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:23:21] Production.INFO: count ==3602 [2024-12-24 13:23:22] Production.ERROR: pbx CDR StartTime 2024-12-24 10:23:04 - End Time 2024-12-24 13:23:04 [2024-12-24 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092460', 'tblTempUsageDetail_20' ) start [2024-12-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092460', 'tblTempUsageDetail_20' ) end [2024-12-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092460', 'tblTempVendorCDR_20' ) start [2024-12-24 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092460', 'tblTempVendorCDR_20' ) end [2024-12-24 13:23:22] Production.INFO: ProcessCDR(1,14092460,1,1,2) [2024-12-24 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092460', 'tblTempUsageDetail_20' ) start [2024-12-24 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092460', 'tblTempUsageDetail_20' ) end [2024-12-24 13:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:23:26] Production.INFO: ==22172== Releasing lock... [2024-12-24 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:23:26] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:24:04 [end_date_ymd] => 2024-12-24 13:24:04 [RateCDR] => 1 ) [2024-12-24 13:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:24:04' and `end` < '2024-12-24 13:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:24:19] Production.INFO: count ==3593 [2024-12-24 13:24:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:24:04 - End Time 2024-12-24 13:24:04 [2024-12-24 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092465', 'tblTempUsageDetail_20' ) start [2024-12-24 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092465', 'tblTempUsageDetail_20' ) end [2024-12-24 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092465', 'tblTempVendorCDR_20' ) start [2024-12-24 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092465', 'tblTempVendorCDR_20' ) end [2024-12-24 13:24:21] Production.INFO: ProcessCDR(1,14092465,1,1,2) [2024-12-24 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092465', 'tblTempUsageDetail_20' ) start [2024-12-24 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092465', 'tblTempUsageDetail_20' ) end [2024-12-24 13:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:24:25] Production.INFO: ==22249== Releasing lock... [2024-12-24 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:24:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:25:05 [end_date_ymd] => 2024-12-24 13:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:25:18] Production.INFO: count ==3602 [2024-12-24 13:25:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:25:05 - End Time 2024-12-24 13:25:05 [2024-12-24 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092470', 'tblTempUsageDetail_20' ) start [2024-12-24 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092470', 'tblTempUsageDetail_20' ) end [2024-12-24 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092470', 'tblTempVendorCDR_20' ) start [2024-12-24 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092470', 'tblTempVendorCDR_20' ) end [2024-12-24 13:25:19] Production.INFO: ProcessCDR(1,14092470,1,1,2) [2024-12-24 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092470', 'tblTempUsageDetail_20' ) start [2024-12-24 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092470', 'tblTempUsageDetail_20' ) end [2024-12-24 13:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:25:24] Production.INFO: ==22321== Releasing lock... [2024-12-24 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:25:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:26:05 [end_date_ymd] => 2024-12-24 13:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:26:18] Production.INFO: count ==3618 [2024-12-24 13:26:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:26:05 - End Time 2024-12-24 13:26:05 [2024-12-24 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092475', 'tblTempUsageDetail_20' ) start [2024-12-24 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092475', 'tblTempUsageDetail_20' ) end [2024-12-24 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092475', 'tblTempVendorCDR_20' ) start [2024-12-24 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092475', 'tblTempVendorCDR_20' ) end [2024-12-24 13:26:20] Production.INFO: ProcessCDR(1,14092475,1,1,2) [2024-12-24 13:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092475', 'tblTempUsageDetail_20' ) start [2024-12-24 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092475', 'tblTempUsageDetail_20' ) end [2024-12-24 13:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:26:25] Production.INFO: ==22394== Releasing lock... [2024-12-24 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:26:25] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:27:05 [end_date_ymd] => 2024-12-24 13:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:27:20] Production.INFO: count ==3616 [2024-12-24 13:27:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:27:05 - End Time 2024-12-24 13:27:05 [2024-12-24 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092480', 'tblTempUsageDetail_20' ) start [2024-12-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092480', 'tblTempUsageDetail_20' ) end [2024-12-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092480', 'tblTempVendorCDR_20' ) start [2024-12-24 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092480', 'tblTempVendorCDR_20' ) end [2024-12-24 13:27:22] Production.INFO: ProcessCDR(1,14092480,1,1,2) [2024-12-24 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092480', 'tblTempUsageDetail_20' ) start [2024-12-24 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092480', 'tblTempUsageDetail_20' ) end [2024-12-24 13:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:27:26] Production.INFO: ==22467== Releasing lock... [2024-12-24 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:27:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:28:04 [end_date_ymd] => 2024-12-24 13:28:04 [RateCDR] => 1 ) [2024-12-24 13:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:28:04' and `end` < '2024-12-24 13:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:28:19] Production.INFO: count ==3640 [2024-12-24 13:28:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:28:04 - End Time 2024-12-24 13:28:04 [2024-12-24 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092485', 'tblTempUsageDetail_20' ) start [2024-12-24 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092485', 'tblTempUsageDetail_20' ) end [2024-12-24 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092485', 'tblTempVendorCDR_20' ) start [2024-12-24 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092485', 'tblTempVendorCDR_20' ) end [2024-12-24 13:28:21] Production.INFO: ProcessCDR(1,14092485,1,1,2) [2024-12-24 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092485', 'tblTempUsageDetail_20' ) start [2024-12-24 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092485', 'tblTempUsageDetail_20' ) end [2024-12-24 13:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:28:25] Production.INFO: ==22541== Releasing lock... [2024-12-24 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:28:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:29:04 [end_date_ymd] => 2024-12-24 13:29:04 [RateCDR] => 1 ) [2024-12-24 13:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:29:04' and `end` < '2024-12-24 13:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:29:20] Production.INFO: count ==3644 [2024-12-24 13:29:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:29:04 - End Time 2024-12-24 13:29:04 [2024-12-24 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092490', 'tblTempUsageDetail_20' ) start [2024-12-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092490', 'tblTempUsageDetail_20' ) end [2024-12-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092490', 'tblTempVendorCDR_20' ) start [2024-12-24 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092490', 'tblTempVendorCDR_20' ) end [2024-12-24 13:29:21] Production.INFO: ProcessCDR(1,14092490,1,1,2) [2024-12-24 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092490', 'tblTempUsageDetail_20' ) start [2024-12-24 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092490', 'tblTempUsageDetail_20' ) end [2024-12-24 13:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:29:26] Production.INFO: ==22614== Releasing lock... [2024-12-24 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:29:26] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:30:05 [end_date_ymd] => 2024-12-24 13:30:05 [RateCDR] => 1 ) [2024-12-24 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:30:05' and `end` < '2024-12-24 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:30:19] Production.INFO: count ==3640 [2024-12-24 13:30:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:30:05 - End Time 2024-12-24 13:30:05 [2024-12-24 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092496', 'tblTempUsageDetail_20' ) start [2024-12-24 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092496', 'tblTempUsageDetail_20' ) end [2024-12-24 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092496', 'tblTempVendorCDR_20' ) start [2024-12-24 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092496', 'tblTempVendorCDR_20' ) end [2024-12-24 13:30:20] Production.INFO: ProcessCDR(1,14092496,1,1,2) [2024-12-24 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092496', 'tblTempUsageDetail_20' ) start [2024-12-24 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092496', 'tblTempUsageDetail_20' ) end [2024-12-24 13:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:30:23] Production.INFO: ==22693== Releasing lock... [2024-12-24 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:30:23] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:31:04 [end_date_ymd] => 2024-12-24 13:31:04 [RateCDR] => 1 ) [2024-12-24 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:31:04' and `end` < '2024-12-24 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:31:17] Production.INFO: count ==3652 [2024-12-24 13:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 10:31:04 - End Time 2024-12-24 13:31:04 [2024-12-24 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092501', 'tblTempUsageDetail_20' ) start [2024-12-24 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092501', 'tblTempUsageDetail_20' ) end [2024-12-24 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092501', 'tblTempVendorCDR_20' ) start [2024-12-24 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092501', 'tblTempVendorCDR_20' ) end [2024-12-24 13:31:18] Production.INFO: ProcessCDR(1,14092501,1,1,2) [2024-12-24 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092501', 'tblTempUsageDetail_20' ) start [2024-12-24 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092501', 'tblTempUsageDetail_20' ) end [2024-12-24 13:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:31:23] Production.INFO: ==22772== Releasing lock... [2024-12-24 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:31:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:32:05 [end_date_ymd] => 2024-12-24 13:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:32:20] Production.INFO: count ==3642 [2024-12-24 13:32:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:32:05 - End Time 2024-12-24 13:32:05 [2024-12-24 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092506', 'tblTempUsageDetail_20' ) start [2024-12-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092506', 'tblTempUsageDetail_20' ) end [2024-12-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092506', 'tblTempVendorCDR_20' ) start [2024-12-24 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092506', 'tblTempVendorCDR_20' ) end [2024-12-24 13:32:21] Production.INFO: ProcessCDR(1,14092506,1,1,2) [2024-12-24 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092506', 'tblTempUsageDetail_20' ) start [2024-12-24 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092506', 'tblTempUsageDetail_20' ) end [2024-12-24 13:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:32:26] Production.INFO: ==22848== Releasing lock... [2024-12-24 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:32:26] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:33:05 [end_date_ymd] => 2024-12-24 13:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:33:18] Production.INFO: count ==3636 [2024-12-24 13:33:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:33:05 - End Time 2024-12-24 13:33:05 [2024-12-24 13:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092511', 'tblTempUsageDetail_20' ) start [2024-12-24 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092511', 'tblTempUsageDetail_20' ) end [2024-12-24 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092511', 'tblTempVendorCDR_20' ) start [2024-12-24 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092511', 'tblTempVendorCDR_20' ) end [2024-12-24 13:33:19] Production.INFO: ProcessCDR(1,14092511,1,1,2) [2024-12-24 13:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092511', 'tblTempUsageDetail_20' ) start [2024-12-24 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092511', 'tblTempUsageDetail_20' ) end [2024-12-24 13:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:33:24] Production.INFO: ==22921== Releasing lock... [2024-12-24 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:33:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:34:05 [end_date_ymd] => 2024-12-24 13:34:05 [RateCDR] => 1 ) [2024-12-24 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:34:05' and `end` < '2024-12-24 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:34:19] Production.INFO: count ==3638 [2024-12-24 13:34:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:34:05 - End Time 2024-12-24 13:34:05 [2024-12-24 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092516', 'tblTempUsageDetail_20' ) start [2024-12-24 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092516', 'tblTempUsageDetail_20' ) end [2024-12-24 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092516', 'tblTempVendorCDR_20' ) start [2024-12-24 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092516', 'tblTempVendorCDR_20' ) end [2024-12-24 13:34:20] Production.INFO: ProcessCDR(1,14092516,1,1,2) [2024-12-24 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092516', 'tblTempUsageDetail_20' ) start [2024-12-24 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092516', 'tblTempUsageDetail_20' ) end [2024-12-24 13:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:34:24] Production.INFO: ==23000== Releasing lock... [2024-12-24 13:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:34:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:35:04 [end_date_ymd] => 2024-12-24 13:35:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:35:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:35:18] Production.INFO: count ==3645 [2024-12-24 13:35:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:35:04 - End Time 2024-12-24 13:35:04 [2024-12-24 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092521', 'tblTempUsageDetail_20' ) start [2024-12-24 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092521', 'tblTempUsageDetail_20' ) end [2024-12-24 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092521', 'tblTempVendorCDR_20' ) start [2024-12-24 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092521', 'tblTempVendorCDR_20' ) end [2024-12-24 13:35:20] Production.INFO: ProcessCDR(1,14092521,1,1,2) [2024-12-24 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092521', 'tblTempUsageDetail_20' ) start [2024-12-24 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092521', 'tblTempUsageDetail_20' ) end [2024-12-24 13:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:35:24] Production.INFO: ==23070== Releasing lock... [2024-12-24 13:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:35:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:36:05 [end_date_ymd] => 2024-12-24 13:36:05 [RateCDR] => 1 ) [2024-12-24 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:36:05' and `end` < '2024-12-24 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:36:18] Production.INFO: count ==3635 [2024-12-24 13:36:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:36:05 - End Time 2024-12-24 13:36:05 [2024-12-24 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092526', 'tblTempUsageDetail_20' ) start [2024-12-24 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092526', 'tblTempUsageDetail_20' ) end [2024-12-24 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092526', 'tblTempVendorCDR_20' ) start [2024-12-24 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092526', 'tblTempVendorCDR_20' ) end [2024-12-24 13:36:19] Production.INFO: ProcessCDR(1,14092526,1,1,2) [2024-12-24 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092526', 'tblTempUsageDetail_20' ) start [2024-12-24 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092526', 'tblTempUsageDetail_20' ) end [2024-12-24 13:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:36:24] Production.INFO: ==23182== Releasing lock... [2024-12-24 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:36:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:37:05 [end_date_ymd] => 2024-12-24 13:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:37:25] Production.INFO: count ==3647 [2024-12-24 13:37:26] Production.ERROR: pbx CDR StartTime 2024-12-24 10:37:05 - End Time 2024-12-24 13:37:05 [2024-12-24 13:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092531', 'tblTempUsageDetail_20' ) start [2024-12-24 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092531', 'tblTempUsageDetail_20' ) end [2024-12-24 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092531', 'tblTempVendorCDR_20' ) start [2024-12-24 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092531', 'tblTempVendorCDR_20' ) end [2024-12-24 13:37:27] Production.INFO: ProcessCDR(1,14092531,1,1,2) [2024-12-24 13:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092531', 'tblTempUsageDetail_20' ) start [2024-12-24 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092531', 'tblTempUsageDetail_20' ) end [2024-12-24 13:37:31] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:37:31] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:37:31] Production.INFO: ==23263== Releasing lock... [2024-12-24 13:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:37:31] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:38:05 [end_date_ymd] => 2024-12-24 13:38:05 [RateCDR] => 1 ) [2024-12-24 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:38:05' and `end` < '2024-12-24 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:38:20] Production.INFO: count ==3640 [2024-12-24 13:38:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:38:05 - End Time 2024-12-24 13:38:05 [2024-12-24 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092536', 'tblTempUsageDetail_20' ) start [2024-12-24 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092536', 'tblTempUsageDetail_20' ) end [2024-12-24 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092536', 'tblTempVendorCDR_20' ) start [2024-12-24 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092536', 'tblTempVendorCDR_20' ) end [2024-12-24 13:38:22] Production.INFO: ProcessCDR(1,14092536,1,1,2) [2024-12-24 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092536', 'tblTempUsageDetail_20' ) start [2024-12-24 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092536', 'tblTempUsageDetail_20' ) end [2024-12-24 13:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:38:26] Production.INFO: ==23333== Releasing lock... [2024-12-24 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:38:26] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:39:05 [end_date_ymd] => 2024-12-24 13:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:39:20] Production.INFO: count ==3653 [2024-12-24 13:39:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:39:05 - End Time 2024-12-24 13:39:05 [2024-12-24 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092541', 'tblTempUsageDetail_20' ) start [2024-12-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092541', 'tblTempUsageDetail_20' ) end [2024-12-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092541', 'tblTempVendorCDR_20' ) start [2024-12-24 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092541', 'tblTempVendorCDR_20' ) end [2024-12-24 13:39:21] Production.INFO: ProcessCDR(1,14092541,1,1,2) [2024-12-24 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092541', 'tblTempUsageDetail_20' ) start [2024-12-24 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092541', 'tblTempUsageDetail_20' ) end [2024-12-24 13:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:39:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:39:26] Production.INFO: ==23409== Releasing lock... [2024-12-24 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:39:26] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:40:05 [end_date_ymd] => 2024-12-24 13:40:05 [RateCDR] => 1 ) [2024-12-24 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:40:05' and `end` < '2024-12-24 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:40:21] Production.INFO: count ==3647 [2024-12-24 13:40:23] Production.ERROR: pbx CDR StartTime 2024-12-24 10:40:05 - End Time 2024-12-24 13:40:05 [2024-12-24 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092547', 'tblTempUsageDetail_20' ) start [2024-12-24 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092547', 'tblTempUsageDetail_20' ) end [2024-12-24 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092547', 'tblTempVendorCDR_20' ) start [2024-12-24 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092547', 'tblTempVendorCDR_20' ) end [2024-12-24 13:40:23] Production.INFO: ProcessCDR(1,14092547,1,1,2) [2024-12-24 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092547', 'tblTempUsageDetail_20' ) start [2024-12-24 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092547', 'tblTempUsageDetail_20' ) end [2024-12-24 13:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:40:27] Production.INFO: ==23484== Releasing lock... [2024-12-24 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:40:27] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:41:04 [end_date_ymd] => 2024-12-24 13:41:04 [RateCDR] => 1 ) [2024-12-24 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:41:04' and `end` < '2024-12-24 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:41:18] Production.INFO: count ==3634 [2024-12-24 13:41:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:41:04 - End Time 2024-12-24 13:41:04 [2024-12-24 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092552', 'tblTempUsageDetail_20' ) start [2024-12-24 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092552', 'tblTempUsageDetail_20' ) end [2024-12-24 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092552', 'tblTempVendorCDR_20' ) start [2024-12-24 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092552', 'tblTempVendorCDR_20' ) end [2024-12-24 13:41:20] Production.INFO: ProcessCDR(1,14092552,1,1,2) [2024-12-24 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092552', 'tblTempUsageDetail_20' ) start [2024-12-24 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092552', 'tblTempUsageDetail_20' ) end [2024-12-24 13:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:41:24] Production.INFO: ==23560== Releasing lock... [2024-12-24 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:41:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:42:05 [end_date_ymd] => 2024-12-24 13:42:05 [RateCDR] => 1 ) [2024-12-24 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:42:05' and `end` < '2024-12-24 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:42:18] Production.INFO: count ==3630 [2024-12-24 13:42:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:42:05 - End Time 2024-12-24 13:42:05 [2024-12-24 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092557', 'tblTempUsageDetail_20' ) start [2024-12-24 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092557', 'tblTempUsageDetail_20' ) end [2024-12-24 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092557', 'tblTempVendorCDR_20' ) start [2024-12-24 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092557', 'tblTempVendorCDR_20' ) end [2024-12-24 13:42:19] Production.INFO: ProcessCDR(1,14092557,1,1,2) [2024-12-24 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092557', 'tblTempUsageDetail_20' ) start [2024-12-24 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092557', 'tblTempUsageDetail_20' ) end [2024-12-24 13:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:42:24] Production.INFO: ==23635== Releasing lock... [2024-12-24 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:42:24] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:43:04 [end_date_ymd] => 2024-12-24 13:43:04 [RateCDR] => 1 ) [2024-12-24 13: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` >= '2024-12-24 10:43:04' and `end` < '2024-12-24 13: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 ,'') [2024-12-24 13:43:21] Production.INFO: count ==3646 [2024-12-24 13:43:23] Production.ERROR: pbx CDR StartTime 2024-12-24 10:43:04 - End Time 2024-12-24 13:43:04 [2024-12-24 13:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092562', 'tblTempUsageDetail_20' ) start [2024-12-24 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092562', 'tblTempUsageDetail_20' ) end [2024-12-24 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092562', 'tblTempVendorCDR_20' ) start [2024-12-24 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092562', 'tblTempVendorCDR_20' ) end [2024-12-24 13:43:23] Production.INFO: ProcessCDR(1,14092562,1,1,2) [2024-12-24 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092562', 'tblTempUsageDetail_20' ) start [2024-12-24 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092562', 'tblTempUsageDetail_20' ) end [2024-12-24 13:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:43:27] Production.INFO: ==23711== Releasing lock... [2024-12-24 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:43:27] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:44:05 [end_date_ymd] => 2024-12-24 13:44:05 [RateCDR] => 1 ) [2024-12-24 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:44:05' and `end` < '2024-12-24 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:44:18] Production.INFO: count ==3647 [2024-12-24 13:44:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:44:05 - End Time 2024-12-24 13:44:05 [2024-12-24 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092567', 'tblTempUsageDetail_20' ) start [2024-12-24 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092567', 'tblTempUsageDetail_20' ) end [2024-12-24 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092567', 'tblTempVendorCDR_20' ) start [2024-12-24 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092567', 'tblTempVendorCDR_20' ) end [2024-12-24 13:44:20] Production.INFO: ProcessCDR(1,14092567,1,1,2) [2024-12-24 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092567', 'tblTempUsageDetail_20' ) start [2024-12-24 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092567', 'tblTempUsageDetail_20' ) end [2024-12-24 13:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:44:23] Production.INFO: ==23789== Releasing lock... [2024-12-24 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:44:23] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:45:04 [end_date_ymd] => 2024-12-24 13:45:04 [RateCDR] => 1 ) [2024-12-24 13:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:45:04' and `end` < '2024-12-24 13:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:45:23] Production.INFO: count ==3648 [2024-12-24 13:45:24] Production.ERROR: pbx CDR StartTime 2024-12-24 10:45:04 - End Time 2024-12-24 13:45:04 [2024-12-24 13:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092572', 'tblTempUsageDetail_20' ) start [2024-12-24 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092572', 'tblTempUsageDetail_20' ) end [2024-12-24 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092572', 'tblTempVendorCDR_20' ) start [2024-12-24 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092572', 'tblTempVendorCDR_20' ) end [2024-12-24 13:45:25] Production.INFO: ProcessCDR(1,14092572,1,1,2) [2024-12-24 13:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092572', 'tblTempUsageDetail_20' ) start [2024-12-24 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092572', 'tblTempUsageDetail_20' ) end [2024-12-24 13:45:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:45:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:45:28] Production.INFO: ==23863== Releasing lock... [2024-12-24 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:45:28] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:46:05 [end_date_ymd] => 2024-12-24 13:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:46:20] Production.INFO: count ==3640 [2024-12-24 13:46:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:46:05 - End Time 2024-12-24 13:46:05 [2024-12-24 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092577', 'tblTempUsageDetail_20' ) start [2024-12-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092577', 'tblTempUsageDetail_20' ) end [2024-12-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092577', 'tblTempVendorCDR_20' ) start [2024-12-24 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092577', 'tblTempVendorCDR_20' ) end [2024-12-24 13:46:21] Production.INFO: ProcessCDR(1,14092577,1,1,2) [2024-12-24 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092577', 'tblTempUsageDetail_20' ) start [2024-12-24 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092577', 'tblTempUsageDetail_20' ) end [2024-12-24 13:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:46:26] Production.INFO: ==23939== Releasing lock... [2024-12-24 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:46:26] Production.INFO: 56.25 MB #Memory Used# [2024-12-24 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:47:04 [end_date_ymd] => 2024-12-24 13:47:04 [RateCDR] => 1 ) [2024-12-24 13: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` >= '2024-12-24 10:47:04' and `end` < '2024-12-24 13: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 ,'') [2024-12-24 13:47:19] Production.INFO: count ==3624 [2024-12-24 13:47:21] Production.ERROR: pbx CDR StartTime 2024-12-24 10:47:04 - End Time 2024-12-24 13:47:04 [2024-12-24 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092582', 'tblTempUsageDetail_20' ) start [2024-12-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092582', 'tblTempUsageDetail_20' ) end [2024-12-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092582', 'tblTempVendorCDR_20' ) start [2024-12-24 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092582', 'tblTempVendorCDR_20' ) end [2024-12-24 13:47:21] Production.INFO: ProcessCDR(1,14092582,1,1,2) [2024-12-24 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092582', 'tblTempUsageDetail_20' ) start [2024-12-24 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092582', 'tblTempUsageDetail_20' ) end [2024-12-24 13:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:47:25] Production.INFO: ==24010== Releasing lock... [2024-12-24 13:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:47:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:48:05 [end_date_ymd] => 2024-12-24 13:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:48:17] Production.INFO: count ==3629 [2024-12-24 13:48:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:48:05 - End Time 2024-12-24 13:48:05 [2024-12-24 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092587', 'tblTempUsageDetail_20' ) start [2024-12-24 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092587', 'tblTempUsageDetail_20' ) end [2024-12-24 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092587', 'tblTempVendorCDR_20' ) start [2024-12-24 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092587', 'tblTempVendorCDR_20' ) end [2024-12-24 13:48:19] Production.INFO: ProcessCDR(1,14092587,1,1,2) [2024-12-24 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092587', 'tblTempUsageDetail_20' ) start [2024-12-24 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092587', 'tblTempUsageDetail_20' ) end [2024-12-24 13:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:48:23] Production.INFO: ==24084== Releasing lock... [2024-12-24 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:48:23] Production.INFO: 56 MB #Memory Used# [2024-12-24 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:49:05 [end_date_ymd] => 2024-12-24 13:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:49:18] Production.INFO: count ==3615 [2024-12-24 13:49:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:49:05 - End Time 2024-12-24 13:49:05 [2024-12-24 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092592', 'tblTempUsageDetail_20' ) start [2024-12-24 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092592', 'tblTempUsageDetail_20' ) end [2024-12-24 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092592', 'tblTempVendorCDR_20' ) start [2024-12-24 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092592', 'tblTempVendorCDR_20' ) end [2024-12-24 13:49:19] Production.INFO: ProcessCDR(1,14092592,1,1,2) [2024-12-24 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092592', 'tblTempUsageDetail_20' ) start [2024-12-24 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092592', 'tblTempUsageDetail_20' ) end [2024-12-24 13:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:49:23] Production.INFO: ==24162== Releasing lock... [2024-12-24 13:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:49:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:50:06 [end_date_ymd] => 2024-12-24 13:50:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:50:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:50:19] Production.INFO: count ==3602 [2024-12-24 13:50:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:50:06 - End Time 2024-12-24 13:50:06 [2024-12-24 13:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092598', 'tblTempUsageDetail_20' ) start [2024-12-24 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092598', 'tblTempUsageDetail_20' ) end [2024-12-24 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092598', 'tblTempVendorCDR_20' ) start [2024-12-24 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092598', 'tblTempVendorCDR_20' ) end [2024-12-24 13:50:20] Production.INFO: ProcessCDR(1,14092598,1,1,2) [2024-12-24 13:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092598', 'tblTempUsageDetail_20' ) start [2024-12-24 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092598', 'tblTempUsageDetail_20' ) end [2024-12-24 13:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:50:25] Production.INFO: ==24242== Releasing lock... [2024-12-24 13:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:50:25] Production.INFO: 55.75 MB #Memory Used# [2024-12-24 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:51:05 [end_date_ymd] => 2024-12-24 13:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:51:19] Production.INFO: count ==3551 [2024-12-24 13:51:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:51:05 - End Time 2024-12-24 13:51:05 [2024-12-24 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092603', 'tblTempUsageDetail_20' ) start [2024-12-24 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092603', 'tblTempUsageDetail_20' ) end [2024-12-24 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092603', 'tblTempVendorCDR_20' ) start [2024-12-24 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092603', 'tblTempVendorCDR_20' ) end [2024-12-24 13:51:20] Production.INFO: ProcessCDR(1,14092603,1,1,2) [2024-12-24 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092603', 'tblTempUsageDetail_20' ) start [2024-12-24 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092603', 'tblTempUsageDetail_20' ) end [2024-12-24 13:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:51:25] Production.INFO: ==24357== Releasing lock... [2024-12-24 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:51:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:52:05 [end_date_ymd] => 2024-12-24 13:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:52:17] Production.INFO: count ==3505 [2024-12-24 13:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:52:05 - End Time 2024-12-24 13:52:05 [2024-12-24 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092608', 'tblTempUsageDetail_20' ) start [2024-12-24 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092608', 'tblTempUsageDetail_20' ) end [2024-12-24 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092608', 'tblTempVendorCDR_20' ) start [2024-12-24 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092608', 'tblTempVendorCDR_20' ) end [2024-12-24 13:52:19] Production.INFO: ProcessCDR(1,14092608,1,1,2) [2024-12-24 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092608', 'tblTempUsageDetail_20' ) start [2024-12-24 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092608', 'tblTempUsageDetail_20' ) end [2024-12-24 13:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:52:23] Production.INFO: ==24427== Releasing lock... [2024-12-24 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:52:23] Production.INFO: 54.75 MB #Memory Used# [2024-12-24 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:53:05 [end_date_ymd] => 2024-12-24 13:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:53:18] Production.INFO: count ==3459 [2024-12-24 13:53:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:53:05 - End Time 2024-12-24 13:53:05 [2024-12-24 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092613', 'tblTempUsageDetail_20' ) start [2024-12-24 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092613', 'tblTempUsageDetail_20' ) end [2024-12-24 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092613', 'tblTempVendorCDR_20' ) start [2024-12-24 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092613', 'tblTempVendorCDR_20' ) end [2024-12-24 13:53:19] Production.INFO: ProcessCDR(1,14092613,1,1,2) [2024-12-24 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092613', 'tblTempUsageDetail_20' ) start [2024-12-24 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092613', 'tblTempUsageDetail_20' ) end [2024-12-24 13:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:53:24] Production.INFO: ==24501== Releasing lock... [2024-12-24 13:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:53:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-24 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:54:04 [end_date_ymd] => 2024-12-24 13:54:04 [RateCDR] => 1 ) [2024-12-24 13:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:54:04' and `end` < '2024-12-24 13:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:54:18] Production.INFO: count ==3445 [2024-12-24 13:54:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:54:04 - End Time 2024-12-24 13:54:04 [2024-12-24 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092618', 'tblTempUsageDetail_20' ) start [2024-12-24 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092618', 'tblTempUsageDetail_20' ) end [2024-12-24 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092618', 'tblTempVendorCDR_20' ) start [2024-12-24 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092618', 'tblTempVendorCDR_20' ) end [2024-12-24 13:54:20] Production.INFO: ProcessCDR(1,14092618,1,1,2) [2024-12-24 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092618', 'tblTempUsageDetail_20' ) start [2024-12-24 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092618', 'tblTempUsageDetail_20' ) end [2024-12-24 13:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:54:23] Production.INFO: ==24572== Releasing lock... [2024-12-24 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:54:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-24 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:55:05 [end_date_ymd] => 2024-12-24 13:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:55:19] Production.INFO: count ==3418 [2024-12-24 13:55:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:55:05 - End Time 2024-12-24 13:55:05 [2024-12-24 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092623', 'tblTempUsageDetail_20' ) start [2024-12-24 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092623', 'tblTempUsageDetail_20' ) end [2024-12-24 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092623', 'tblTempVendorCDR_20' ) start [2024-12-24 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092623', 'tblTempVendorCDR_20' ) end [2024-12-24 13:55:20] Production.INFO: ProcessCDR(1,14092623,1,1,2) [2024-12-24 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092623', 'tblTempUsageDetail_20' ) start [2024-12-24 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092623', 'tblTempUsageDetail_20' ) end [2024-12-24 13:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:55:24] Production.INFO: ==24645== Releasing lock... [2024-12-24 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:55:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-24 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:56:05 [end_date_ymd] => 2024-12-24 13:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 10:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 13:56:18] Production.INFO: count ==3380 [2024-12-24 13:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:56:05 - End Time 2024-12-24 13:56:05 [2024-12-24 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092628', 'tblTempUsageDetail_20' ) start [2024-12-24 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092628', 'tblTempUsageDetail_20' ) end [2024-12-24 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092628', 'tblTempVendorCDR_20' ) start [2024-12-24 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092628', 'tblTempVendorCDR_20' ) end [2024-12-24 13:56:19] Production.INFO: ProcessCDR(1,14092628,1,1,2) [2024-12-24 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092628', 'tblTempUsageDetail_20' ) start [2024-12-24 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092628', 'tblTempUsageDetail_20' ) end [2024-12-24 13:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:56:24] Production.INFO: ==24722== Releasing lock... [2024-12-24 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:56:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-24 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:57:04 [end_date_ymd] => 2024-12-24 13:57:04 [RateCDR] => 1 ) [2024-12-24 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:57:04' and `end` < '2024-12-24 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:57:17] Production.INFO: count ==3374 [2024-12-24 13:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 10:57:04 - End Time 2024-12-24 13:57:04 [2024-12-24 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092633', 'tblTempUsageDetail_20' ) start [2024-12-24 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092633', 'tblTempUsageDetail_20' ) end [2024-12-24 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092633', 'tblTempVendorCDR_20' ) start [2024-12-24 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092633', 'tblTempVendorCDR_20' ) end [2024-12-24 13:57:18] Production.INFO: ProcessCDR(1,14092633,1,1,2) [2024-12-24 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092633', 'tblTempUsageDetail_20' ) start [2024-12-24 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092633', 'tblTempUsageDetail_20' ) end [2024-12-24 13:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:57:22] Production.INFO: ==24797== Releasing lock... [2024-12-24 13:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:57:22] Production.INFO: 54 MB #Memory Used# [2024-12-24 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:58:05 [end_date_ymd] => 2024-12-24 13:58:05 [RateCDR] => 1 ) [2024-12-24 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:58:05' and `end` < '2024-12-24 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:58:18] Production.INFO: count ==3337 [2024-12-24 13:58:19] Production.ERROR: pbx CDR StartTime 2024-12-24 10:58:05 - End Time 2024-12-24 13:58:05 [2024-12-24 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092638', 'tblTempUsageDetail_20' ) start [2024-12-24 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092638', 'tblTempUsageDetail_20' ) end [2024-12-24 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092638', 'tblTempVendorCDR_20' ) start [2024-12-24 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092638', 'tblTempVendorCDR_20' ) end [2024-12-24 13:58:19] Production.INFO: ProcessCDR(1,14092638,1,1,2) [2024-12-24 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092638', 'tblTempUsageDetail_20' ) start [2024-12-24 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092638', 'tblTempUsageDetail_20' ) end [2024-12-24 13:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:58:24] Production.INFO: ==24873== Releasing lock... [2024-12-24 13:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:58:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-24 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 10:59:04 [end_date_ymd] => 2024-12-24 13:59:04 [RateCDR] => 1 ) [2024-12-24 13:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 10:59:04' and `end` < '2024-12-24 13:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 13:59:19] Production.INFO: count ==3328 [2024-12-24 13:59:20] Production.ERROR: pbx CDR StartTime 2024-12-24 10:59:04 - End Time 2024-12-24 13:59:04 [2024-12-24 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092643', 'tblTempUsageDetail_20' ) start [2024-12-24 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092643', 'tblTempUsageDetail_20' ) end [2024-12-24 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092643', 'tblTempVendorCDR_20' ) start [2024-12-24 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092643', 'tblTempVendorCDR_20' ) end [2024-12-24 13:59:20] Production.INFO: ProcessCDR(1,14092643,1,1,2) [2024-12-24 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092643', 'tblTempUsageDetail_20' ) start [2024-12-24 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092643', 'tblTempUsageDetail_20' ) end [2024-12-24 13:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 13:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 13:59:25] Production.INFO: ==24944== Releasing lock... [2024-12-24 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 13:59:25] Production.INFO: 52.75 MB #Memory Used# [2024-12-24 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:00:05 [end_date_ymd] => 2024-12-24 14:00:05 [RateCDR] => 1 ) [2024-12-24 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:00:05' and `end` < '2024-12-24 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:00:19] Production.INFO: count ==3318 [2024-12-24 14:00:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:00:05 - End Time 2024-12-24 14:00:05 [2024-12-24 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092648', 'tblTempUsageDetail_20' ) start [2024-12-24 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092648', 'tblTempUsageDetail_20' ) end [2024-12-24 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092648', 'tblTempVendorCDR_20' ) start [2024-12-24 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092648', 'tblTempVendorCDR_20' ) end [2024-12-24 14:00:20] Production.INFO: ProcessCDR(1,14092648,1,1,2) [2024-12-24 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092648', 'tblTempUsageDetail_20' ) start [2024-12-24 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092648', 'tblTempUsageDetail_20' ) end [2024-12-24 14:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:00:25] Production.INFO: ==25020== Releasing lock... [2024-12-24 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:00:25] Production.INFO: 53 MB #Memory Used# [2024-12-24 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:01:05 [end_date_ymd] => 2024-12-24 14:01:05 [RateCDR] => 1 ) [2024-12-24 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:01:05' and `end` < '2024-12-24 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:01:21] Production.INFO: count ==3277 [2024-12-24 14:01:22] Production.ERROR: pbx CDR StartTime 2024-12-24 11:01:05 - End Time 2024-12-24 14:01:05 [2024-12-24 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092654', 'tblTempUsageDetail_20' ) start [2024-12-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092654', 'tblTempUsageDetail_20' ) end [2024-12-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092654', 'tblTempVendorCDR_20' ) start [2024-12-24 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092654', 'tblTempVendorCDR_20' ) end [2024-12-24 14:01:22] Production.INFO: ProcessCDR(1,14092654,1,1,2) [2024-12-24 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092654', 'tblTempUsageDetail_20' ) start [2024-12-24 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092654', 'tblTempUsageDetail_20' ) end [2024-12-24 14:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:01:27] Production.INFO: ==25106== Releasing lock... [2024-12-24 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:01:27] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:02:04 [end_date_ymd] => 2024-12-24 14:02:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:02:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:02:19] Production.INFO: count ==3259 [2024-12-24 14:02:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:02:04 - End Time 2024-12-24 14:02:04 [2024-12-24 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092659', 'tblTempUsageDetail_20' ) start [2024-12-24 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092659', 'tblTempUsageDetail_20' ) end [2024-12-24 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092659', 'tblTempVendorCDR_20' ) start [2024-12-24 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092659', 'tblTempVendorCDR_20' ) end [2024-12-24 14:02:20] Production.INFO: ProcessCDR(1,14092659,1,1,2) [2024-12-24 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092659', 'tblTempUsageDetail_20' ) start [2024-12-24 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092659', 'tblTempUsageDetail_20' ) end [2024-12-24 14:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:02:23] Production.INFO: ==25179== Releasing lock... [2024-12-24 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:02:23] Production.INFO: 53 MB #Memory Used# [2024-12-24 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:03:05 [end_date_ymd] => 2024-12-24 14:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:03:18] Production.INFO: count ==3255 [2024-12-24 14:03:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:03:05 - End Time 2024-12-24 14:03:05 [2024-12-24 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092664', 'tblTempUsageDetail_20' ) start [2024-12-24 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092664', 'tblTempUsageDetail_20' ) end [2024-12-24 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092664', 'tblTempVendorCDR_20' ) start [2024-12-24 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092664', 'tblTempVendorCDR_20' ) end [2024-12-24 14:03:19] Production.INFO: ProcessCDR(1,14092664,1,1,2) [2024-12-24 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092664', 'tblTempUsageDetail_20' ) start [2024-12-24 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092664', 'tblTempUsageDetail_20' ) end [2024-12-24 14:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:03:24] Production.INFO: ==25257== Releasing lock... [2024-12-24 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:03:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:04:04 [end_date_ymd] => 2024-12-24 14:04:04 [RateCDR] => 1 ) [2024-12-24 14:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:04:04' and `end` < '2024-12-24 14:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:04:19] Production.INFO: count ==3251 [2024-12-24 14:04:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:04:04 - End Time 2024-12-24 14:04:04 [2024-12-24 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092669', 'tblTempUsageDetail_20' ) start [2024-12-24 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092669', 'tblTempUsageDetail_20' ) end [2024-12-24 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092669', 'tblTempVendorCDR_20' ) start [2024-12-24 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092669', 'tblTempVendorCDR_20' ) end [2024-12-24 14:04:20] Production.INFO: ProcessCDR(1,14092669,1,1,2) [2024-12-24 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092669', 'tblTempUsageDetail_20' ) start [2024-12-24 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092669', 'tblTempUsageDetail_20' ) end [2024-12-24 14:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:04:25] Production.INFO: ==25325== Releasing lock... [2024-12-24 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:04:25] Production.INFO: 52.75 MB #Memory Used# [2024-12-24 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:05:05 [end_date_ymd] => 2024-12-24 14:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:05:18] Production.INFO: count ==3247 [2024-12-24 14:05:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:05:05 - End Time 2024-12-24 14:05:05 [2024-12-24 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092674', 'tblTempUsageDetail_20' ) start [2024-12-24 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092674', 'tblTempUsageDetail_20' ) end [2024-12-24 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092674', 'tblTempVendorCDR_20' ) start [2024-12-24 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092674', 'tblTempVendorCDR_20' ) end [2024-12-24 14:05:19] Production.INFO: ProcessCDR(1,14092674,1,1,2) [2024-12-24 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092674', 'tblTempUsageDetail_20' ) start [2024-12-24 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092674', 'tblTempUsageDetail_20' ) end [2024-12-24 14:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:05:23] Production.INFO: ==25400== Releasing lock... [2024-12-24 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:05:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:06:05 [end_date_ymd] => 2024-12-24 14:06:05 [RateCDR] => 1 ) [2024-12-24 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:06:05' and `end` < '2024-12-24 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:06:18] Production.INFO: count ==3236 [2024-12-24 14:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:06:05 - End Time 2024-12-24 14:06:05 [2024-12-24 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092679', 'tblTempUsageDetail_20' ) start [2024-12-24 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092679', 'tblTempUsageDetail_20' ) end [2024-12-24 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092679', 'tblTempVendorCDR_20' ) start [2024-12-24 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092679', 'tblTempVendorCDR_20' ) end [2024-12-24 14:06:19] Production.INFO: ProcessCDR(1,14092679,1,1,2) [2024-12-24 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092679', 'tblTempUsageDetail_20' ) start [2024-12-24 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092679', 'tblTempUsageDetail_20' ) end [2024-12-24 14:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:06:22] Production.INFO: ==25480== Releasing lock... [2024-12-24 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:06:22] Production.INFO: 53 MB #Memory Used# [2024-12-24 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:07:04 [end_date_ymd] => 2024-12-24 14:07:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:07:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:07:17] Production.INFO: count ==3214 [2024-12-24 14:07:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:07:04 - End Time 2024-12-24 14:07:04 [2024-12-24 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092684', 'tblTempUsageDetail_20' ) start [2024-12-24 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092684', 'tblTempUsageDetail_20' ) end [2024-12-24 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092684', 'tblTempVendorCDR_20' ) start [2024-12-24 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092684', 'tblTempVendorCDR_20' ) end [2024-12-24 14:07:19] Production.INFO: ProcessCDR(1,14092684,1,1,2) [2024-12-24 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092684', 'tblTempUsageDetail_20' ) start [2024-12-24 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092684', 'tblTempUsageDetail_20' ) end [2024-12-24 14:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:07:24] Production.INFO: ==25592== Releasing lock... [2024-12-24 14:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:07:24] Production.INFO: 53 MB #Memory Used# [2024-12-24 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:08:05 [end_date_ymd] => 2024-12-24 14:08:05 [RateCDR] => 1 ) [2024-12-24 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:08:05' and `end` < '2024-12-24 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:08:18] Production.INFO: count ==3199 [2024-12-24 14:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:08:05 - End Time 2024-12-24 14:08:05 [2024-12-24 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092689', 'tblTempUsageDetail_20' ) start [2024-12-24 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092689', 'tblTempUsageDetail_20' ) end [2024-12-24 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092689', 'tblTempVendorCDR_20' ) start [2024-12-24 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092689', 'tblTempVendorCDR_20' ) end [2024-12-24 14:08:20] Production.INFO: ProcessCDR(1,14092689,1,1,2) [2024-12-24 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092689', 'tblTempUsageDetail_20' ) start [2024-12-24 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092689', 'tblTempUsageDetail_20' ) end [2024-12-24 14:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:08:24] Production.INFO: ==25667== Releasing lock... [2024-12-24 14:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:08:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-24 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:09:04 [end_date_ymd] => 2024-12-24 14:09:04 [RateCDR] => 1 ) [2024-12-24 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:09:04' and `end` < '2024-12-24 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:09:17] Production.INFO: count ==3190 [2024-12-24 14:09:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:09:04 - End Time 2024-12-24 14:09:04 [2024-12-24 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092694', 'tblTempUsageDetail_20' ) start [2024-12-24 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092694', 'tblTempUsageDetail_20' ) end [2024-12-24 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092694', 'tblTempVendorCDR_20' ) start [2024-12-24 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092694', 'tblTempVendorCDR_20' ) end [2024-12-24 14:09:19] Production.INFO: ProcessCDR(1,14092694,1,1,2) [2024-12-24 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092694', 'tblTempUsageDetail_20' ) start [2024-12-24 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092694', 'tblTempUsageDetail_20' ) end [2024-12-24 14:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:09:23] Production.INFO: ==25742== Releasing lock... [2024-12-24 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:09:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:10:06 [end_date_ymd] => 2024-12-24 14:10:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:10:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:10:18] Production.INFO: count ==3187 [2024-12-24 14:10:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:10:06 - End Time 2024-12-24 14:10:06 [2024-12-24 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092700', 'tblTempUsageDetail_20' ) start [2024-12-24 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092700', 'tblTempUsageDetail_20' ) end [2024-12-24 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092700', 'tblTempVendorCDR_20' ) start [2024-12-24 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092700', 'tblTempVendorCDR_20' ) end [2024-12-24 14:10:20] Production.INFO: ProcessCDR(1,14092700,1,1,2) [2024-12-24 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092700', 'tblTempUsageDetail_20' ) start [2024-12-24 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092700', 'tblTempUsageDetail_20' ) end [2024-12-24 14:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:10:23] Production.INFO: ==25821== Releasing lock... [2024-12-24 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:10:23] Production.INFO: 52 MB #Memory Used# [2024-12-24 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:11:05 [end_date_ymd] => 2024-12-24 14:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:11:18] Production.INFO: count ==3196 [2024-12-24 14:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:11:05 - End Time 2024-12-24 14:11:05 [2024-12-24 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092705', 'tblTempUsageDetail_20' ) start [2024-12-24 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092705', 'tblTempUsageDetail_20' ) end [2024-12-24 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092705', 'tblTempVendorCDR_20' ) start [2024-12-24 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092705', 'tblTempVendorCDR_20' ) end [2024-12-24 14:11:19] Production.INFO: ProcessCDR(1,14092705,1,1,2) [2024-12-24 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092705', 'tblTempUsageDetail_20' ) start [2024-12-24 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092705', 'tblTempUsageDetail_20' ) end [2024-12-24 14:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:11:24] Production.INFO: ==25907== Releasing lock... [2024-12-24 14:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:11:24] Production.INFO: 53.25 MB #Memory Used# [2024-12-24 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:12:05 [end_date_ymd] => 2024-12-24 14:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:12:18] Production.INFO: count ==3192 [2024-12-24 14:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:12:05 - End Time 2024-12-24 14:12:05 [2024-12-24 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092710', 'tblTempUsageDetail_20' ) start [2024-12-24 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092710', 'tblTempUsageDetail_20' ) end [2024-12-24 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092710', 'tblTempVendorCDR_20' ) start [2024-12-24 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092710', 'tblTempVendorCDR_20' ) end [2024-12-24 14:12:19] Production.INFO: ProcessCDR(1,14092710,1,1,2) [2024-12-24 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092710', 'tblTempUsageDetail_20' ) start [2024-12-24 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092710', 'tblTempUsageDetail_20' ) end [2024-12-24 14:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:12:24] Production.INFO: ==25995== Releasing lock... [2024-12-24 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:12:24] Production.INFO: 53 MB #Memory Used# [2024-12-24 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:13:04 [end_date_ymd] => 2024-12-24 14:13:04 [RateCDR] => 1 ) [2024-12-24 14:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:13:04' and `end` < '2024-12-24 14:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:13:17] Production.INFO: count ==3177 [2024-12-24 14:13:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:13:04 - End Time 2024-12-24 14:13:04 [2024-12-24 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092715', 'tblTempUsageDetail_20' ) start [2024-12-24 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092715', 'tblTempUsageDetail_20' ) end [2024-12-24 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092715', 'tblTempVendorCDR_20' ) start [2024-12-24 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092715', 'tblTempVendorCDR_20' ) end [2024-12-24 14:13:19] Production.INFO: ProcessCDR(1,14092715,1,1,2) [2024-12-24 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092715', 'tblTempUsageDetail_20' ) start [2024-12-24 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092715', 'tblTempUsageDetail_20' ) end [2024-12-24 14:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:13:23] Production.INFO: ==26075== Releasing lock... [2024-12-24 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:13:23] Production.INFO: 52 MB #Memory Used# [2024-12-24 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:14:05 [end_date_ymd] => 2024-12-24 14:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:14:18] Production.INFO: count ==3155 [2024-12-24 14:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:14:05 - End Time 2024-12-24 14:14:05 [2024-12-24 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092720', 'tblTempUsageDetail_20' ) start [2024-12-24 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092720', 'tblTempUsageDetail_20' ) end [2024-12-24 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092720', 'tblTempVendorCDR_20' ) start [2024-12-24 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092720', 'tblTempVendorCDR_20' ) end [2024-12-24 14:14:19] Production.INFO: ProcessCDR(1,14092720,1,1,2) [2024-12-24 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092720', 'tblTempUsageDetail_20' ) start [2024-12-24 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092720', 'tblTempUsageDetail_20' ) end [2024-12-24 14:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:14:22] Production.INFO: ==26164== Releasing lock... [2024-12-24 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:14:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-24 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:15:05 [end_date_ymd] => 2024-12-24 14:15:05 [RateCDR] => 1 ) [2024-12-24 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:15:05' and `end` < '2024-12-24 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:15:18] Production.INFO: count ==3156 [2024-12-24 14:15:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:15:05 - End Time 2024-12-24 14:15:05 [2024-12-24 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092725', 'tblTempUsageDetail_20' ) start [2024-12-24 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092725', 'tblTempUsageDetail_20' ) end [2024-12-24 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092725', 'tblTempVendorCDR_20' ) start [2024-12-24 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092725', 'tblTempVendorCDR_20' ) end [2024-12-24 14:15:19] Production.INFO: ProcessCDR(1,14092725,1,1,2) [2024-12-24 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092725', 'tblTempUsageDetail_20' ) start [2024-12-24 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092725', 'tblTempUsageDetail_20' ) end [2024-12-24 14:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:15:24] Production.INFO: ==26249== Releasing lock... [2024-12-24 14:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:15:24] Production.INFO: 51.75 MB #Memory Used# [2024-12-24 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:16:05 [end_date_ymd] => 2024-12-24 14:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:16:17] Production.INFO: count ==3154 [2024-12-24 14:16:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:16:05 - End Time 2024-12-24 14:16:05 [2024-12-24 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092730', 'tblTempUsageDetail_20' ) start [2024-12-24 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092730', 'tblTempUsageDetail_20' ) end [2024-12-24 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092730', 'tblTempVendorCDR_20' ) start [2024-12-24 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092730', 'tblTempVendorCDR_20' ) end [2024-12-24 14:16:19] Production.INFO: ProcessCDR(1,14092730,1,1,2) [2024-12-24 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092730', 'tblTempUsageDetail_20' ) start [2024-12-24 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092730', 'tblTempUsageDetail_20' ) end [2024-12-24 14:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:16:22] Production.INFO: ==26339== Releasing lock... [2024-12-24 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:16:22] Production.INFO: 51.75 MB #Memory Used# [2024-12-24 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:17:05 [end_date_ymd] => 2024-12-24 14:17:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:17:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:17:18] Production.INFO: count ==3149 [2024-12-24 14:17:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:17:05 - End Time 2024-12-24 14:17:05 [2024-12-24 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092735', 'tblTempUsageDetail_20' ) start [2024-12-24 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092735', 'tblTempUsageDetail_20' ) end [2024-12-24 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092735', 'tblTempVendorCDR_20' ) start [2024-12-24 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092735', 'tblTempVendorCDR_20' ) end [2024-12-24 14:17:19] Production.INFO: ProcessCDR(1,14092735,1,1,2) [2024-12-24 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092735', 'tblTempUsageDetail_20' ) start [2024-12-24 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092735', 'tblTempUsageDetail_20' ) end [2024-12-24 14:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:17:24] Production.INFO: ==26434== Releasing lock... [2024-12-24 14:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:17:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-24 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:18:04 [end_date_ymd] => 2024-12-24 14:18:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:18:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:18:19] Production.INFO: count ==3138 [2024-12-24 14:18:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:18:04 - End Time 2024-12-24 14:18:04 [2024-12-24 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092740', 'tblTempUsageDetail_20' ) start [2024-12-24 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092740', 'tblTempUsageDetail_20' ) end [2024-12-24 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092740', 'tblTempVendorCDR_20' ) start [2024-12-24 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092740', 'tblTempVendorCDR_20' ) end [2024-12-24 14:18:20] Production.INFO: ProcessCDR(1,14092740,1,1,2) [2024-12-24 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092740', 'tblTempUsageDetail_20' ) start [2024-12-24 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092740', 'tblTempUsageDetail_20' ) end [2024-12-24 14:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:18:25] Production.INFO: ==26520== Releasing lock... [2024-12-24 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:18:25] Production.INFO: 51.5 MB #Memory Used# [2024-12-24 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:19:05 [end_date_ymd] => 2024-12-24 14:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:19:18] Production.INFO: count ==3134 [2024-12-24 14:19:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:19:05 - End Time 2024-12-24 14:19:05 [2024-12-24 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092745', 'tblTempUsageDetail_20' ) start [2024-12-24 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092745', 'tblTempUsageDetail_20' ) end [2024-12-24 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092745', 'tblTempVendorCDR_20' ) start [2024-12-24 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092745', 'tblTempVendorCDR_20' ) end [2024-12-24 14:19:19] Production.INFO: ProcessCDR(1,14092745,1,1,2) [2024-12-24 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092745', 'tblTempUsageDetail_20' ) start [2024-12-24 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092745', 'tblTempUsageDetail_20' ) end [2024-12-24 14:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:19:22] Production.INFO: ==26614== Releasing lock... [2024-12-24 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:19:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-24 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:20:05 [end_date_ymd] => 2024-12-24 14:20:05 [RateCDR] => 1 ) [2024-12-24 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:20:05' and `end` < '2024-12-24 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:20:18] Production.INFO: count ==3116 [2024-12-24 14:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:20:05 - End Time 2024-12-24 14:20:05 [2024-12-24 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092751', 'tblTempUsageDetail_20' ) start [2024-12-24 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092751', 'tblTempUsageDetail_20' ) end [2024-12-24 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092751', 'tblTempVendorCDR_20' ) start [2024-12-24 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092751', 'tblTempVendorCDR_20' ) end [2024-12-24 14:20:19] Production.INFO: ProcessCDR(1,14092751,1,1,2) [2024-12-24 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092751', 'tblTempUsageDetail_20' ) start [2024-12-24 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092751', 'tblTempUsageDetail_20' ) end [2024-12-24 14:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:20:23] Production.INFO: ==26704== Releasing lock... [2024-12-24 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:20:23] Production.INFO: 51.25 MB #Memory Used# [2024-12-24 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:21:04 [end_date_ymd] => 2024-12-24 14:21:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:21:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:21:17] Production.INFO: count ==3082 [2024-12-24 14:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:21:04 - End Time 2024-12-24 14:21:04 [2024-12-24 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092756', 'tblTempUsageDetail_20' ) start [2024-12-24 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092756', 'tblTempUsageDetail_20' ) end [2024-12-24 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092756', 'tblTempVendorCDR_20' ) start [2024-12-24 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092756', 'tblTempVendorCDR_20' ) end [2024-12-24 14:21:18] Production.INFO: ProcessCDR(1,14092756,1,1,2) [2024-12-24 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092756', 'tblTempUsageDetail_20' ) start [2024-12-24 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092756', 'tblTempUsageDetail_20' ) end [2024-12-24 14:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:21:21] Production.INFO: ==26797== Releasing lock... [2024-12-24 14:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:21:21] Production.INFO: 51 MB #Memory Used# [2024-12-24 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:22:05 [end_date_ymd] => 2024-12-24 14:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:22:18] Production.INFO: count ==3075 [2024-12-24 14:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:22:05 - End Time 2024-12-24 14:22:05 [2024-12-24 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092761', 'tblTempUsageDetail_20' ) start [2024-12-24 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092761', 'tblTempUsageDetail_20' ) end [2024-12-24 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092761', 'tblTempVendorCDR_20' ) start [2024-12-24 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092761', 'tblTempVendorCDR_20' ) end [2024-12-24 14:22:19] Production.INFO: ProcessCDR(1,14092761,1,1,2) [2024-12-24 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092761', 'tblTempUsageDetail_20' ) start [2024-12-24 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092761', 'tblTempUsageDetail_20' ) end [2024-12-24 14:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:22:24] Production.INFO: ==26890== Releasing lock... [2024-12-24 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:22:24] Production.INFO: 51 MB #Memory Used# [2024-12-24 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:23:05 [end_date_ymd] => 2024-12-24 14:23:05 [RateCDR] => 1 ) [2024-12-24 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:23:05' and `end` < '2024-12-24 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:23:17] Production.INFO: count ==3069 [2024-12-24 14:23:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:23:05 - End Time 2024-12-24 14:23:05 [2024-12-24 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092766', 'tblTempUsageDetail_20' ) start [2024-12-24 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092766', 'tblTempUsageDetail_20' ) end [2024-12-24 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092766', 'tblTempVendorCDR_20' ) start [2024-12-24 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092766', 'tblTempVendorCDR_20' ) end [2024-12-24 14:23:19] Production.INFO: ProcessCDR(1,14092766,1,1,2) [2024-12-24 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092766', 'tblTempUsageDetail_20' ) start [2024-12-24 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092766', 'tblTempUsageDetail_20' ) end [2024-12-24 14:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:23:23] Production.INFO: ==27021== Releasing lock... [2024-12-24 14:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:23:23] Production.INFO: 51.75 MB #Memory Used# [2024-12-24 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:24:05 [end_date_ymd] => 2024-12-24 14:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:24:18] Production.INFO: count ==3077 [2024-12-24 14:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:24:05 - End Time 2024-12-24 14:24:05 [2024-12-24 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092771', 'tblTempUsageDetail_20' ) start [2024-12-24 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092771', 'tblTempUsageDetail_20' ) end [2024-12-24 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092771', 'tblTempVendorCDR_20' ) start [2024-12-24 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092771', 'tblTempVendorCDR_20' ) end [2024-12-24 14:24:19] Production.INFO: ProcessCDR(1,14092771,1,1,2) [2024-12-24 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092771', 'tblTempUsageDetail_20' ) start [2024-12-24 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092771', 'tblTempUsageDetail_20' ) end [2024-12-24 14:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:24:24] Production.INFO: ==27112== Releasing lock... [2024-12-24 14:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:24:24] Production.INFO: 51 MB #Memory Used# [2024-12-24 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:25:05 [end_date_ymd] => 2024-12-24 14:25:05 [RateCDR] => 1 ) [2024-12-24 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:25:05' and `end` < '2024-12-24 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:25:19] Production.INFO: count ==3034 [2024-12-24 14:25:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:25:05 - End Time 2024-12-24 14:25:05 [2024-12-24 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092776', 'tblTempUsageDetail_20' ) start [2024-12-24 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092776', 'tblTempUsageDetail_20' ) end [2024-12-24 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092776', 'tblTempVendorCDR_20' ) start [2024-12-24 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092776', 'tblTempVendorCDR_20' ) end [2024-12-24 14:25:20] Production.INFO: ProcessCDR(1,14092776,1,1,2) [2024-12-24 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092776', 'tblTempUsageDetail_20' ) start [2024-12-24 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092776', 'tblTempUsageDetail_20' ) end [2024-12-24 14:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:25:24] Production.INFO: ==27203== Releasing lock... [2024-12-24 14:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:25:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:26:05 [end_date_ymd] => 2024-12-24 14:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:26:18] Production.INFO: count ==3025 [2024-12-24 14:26:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:26:05 - End Time 2024-12-24 14:26:05 [2024-12-24 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092781', 'tblTempUsageDetail_20' ) start [2024-12-24 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092781', 'tblTempUsageDetail_20' ) end [2024-12-24 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092781', 'tblTempVendorCDR_20' ) start [2024-12-24 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092781', 'tblTempVendorCDR_20' ) end [2024-12-24 14:26:19] Production.INFO: ProcessCDR(1,14092781,1,1,2) [2024-12-24 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092781', 'tblTempUsageDetail_20' ) start [2024-12-24 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092781', 'tblTempUsageDetail_20' ) end [2024-12-24 14:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:26:24] Production.INFO: ==27292== Releasing lock... [2024-12-24 14:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:26:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:27:04 [end_date_ymd] => 2024-12-24 14:27:04 [RateCDR] => 1 ) [2024-12-24 14:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:27:04' and `end` < '2024-12-24 14:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:27:17] Production.INFO: count ==3015 [2024-12-24 14:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:27:04 - End Time 2024-12-24 14:27:04 [2024-12-24 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092786', 'tblTempUsageDetail_20' ) start [2024-12-24 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092786', 'tblTempUsageDetail_20' ) end [2024-12-24 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092786', 'tblTempVendorCDR_20' ) start [2024-12-24 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092786', 'tblTempVendorCDR_20' ) end [2024-12-24 14:27:18] Production.INFO: ProcessCDR(1,14092786,1,1,2) [2024-12-24 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092786', 'tblTempUsageDetail_20' ) start [2024-12-24 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092786', 'tblTempUsageDetail_20' ) end [2024-12-24 14:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:27:22] Production.INFO: ==27384== Releasing lock... [2024-12-24 14:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:27:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:28:05 [end_date_ymd] => 2024-12-24 14:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:28:18] Production.INFO: count ==3010 [2024-12-24 14:28:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:28:05 - End Time 2024-12-24 14:28:05 [2024-12-24 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092791', 'tblTempUsageDetail_20' ) start [2024-12-24 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092791', 'tblTempUsageDetail_20' ) end [2024-12-24 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092791', 'tblTempVendorCDR_20' ) start [2024-12-24 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092791', 'tblTempVendorCDR_20' ) end [2024-12-24 14:28:19] Production.INFO: ProcessCDR(1,14092791,1,1,2) [2024-12-24 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092791', 'tblTempUsageDetail_20' ) start [2024-12-24 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092791', 'tblTempUsageDetail_20' ) end [2024-12-24 14:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:28:24] Production.INFO: ==27480== Releasing lock... [2024-12-24 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:28:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:29:04 [end_date_ymd] => 2024-12-24 14:29:04 [RateCDR] => 1 ) [2024-12-24 14:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:29:04' and `end` < '2024-12-24 14:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:29:17] Production.INFO: count ==3008 [2024-12-24 14:29:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:29:04 - End Time 2024-12-24 14:29:04 [2024-12-24 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092796', 'tblTempUsageDetail_20' ) start [2024-12-24 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092796', 'tblTempUsageDetail_20' ) end [2024-12-24 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092796', 'tblTempVendorCDR_20' ) start [2024-12-24 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092796', 'tblTempVendorCDR_20' ) end [2024-12-24 14:29:18] Production.INFO: ProcessCDR(1,14092796,1,1,2) [2024-12-24 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092796', 'tblTempUsageDetail_20' ) start [2024-12-24 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092796', 'tblTempUsageDetail_20' ) end [2024-12-24 14:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:29:23] Production.INFO: ==27570== Releasing lock... [2024-12-24 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:29:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:30:06 [end_date_ymd] => 2024-12-24 14:30:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:30:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:30:19] Production.INFO: count ==3007 [2024-12-24 14:30:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:30:06 - End Time 2024-12-24 14:30:06 [2024-12-24 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092802', 'tblTempUsageDetail_20' ) start [2024-12-24 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092802', 'tblTempUsageDetail_20' ) end [2024-12-24 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092802', 'tblTempVendorCDR_20' ) start [2024-12-24 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092802', 'tblTempVendorCDR_20' ) end [2024-12-24 14:30:20] Production.INFO: ProcessCDR(1,14092802,1,1,2) [2024-12-24 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092802', 'tblTempUsageDetail_20' ) start [2024-12-24 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092802', 'tblTempUsageDetail_20' ) end [2024-12-24 14:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:30:25] Production.INFO: ==27663== Releasing lock... [2024-12-24 14:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:30:25] Production.INFO: 51 MB #Memory Used# [2024-12-24 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:31:04 [end_date_ymd] => 2024-12-24 14:31:04 [RateCDR] => 1 ) [2024-12-24 14:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:31:04' and `end` < '2024-12-24 14:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:31:17] Production.INFO: count ==2985 [2024-12-24 14:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:31:04 - End Time 2024-12-24 14:31:04 [2024-12-24 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092807', 'tblTempUsageDetail_20' ) start [2024-12-24 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092807', 'tblTempUsageDetail_20' ) end [2024-12-24 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092807', 'tblTempVendorCDR_20' ) start [2024-12-24 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092807', 'tblTempVendorCDR_20' ) end [2024-12-24 14:31:18] Production.INFO: ProcessCDR(1,14092807,1,1,2) [2024-12-24 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092807', 'tblTempUsageDetail_20' ) start [2024-12-24 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092807', 'tblTempUsageDetail_20' ) end [2024-12-24 14:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:31:23] Production.INFO: ==27758== Releasing lock... [2024-12-24 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:31:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:32:05 [end_date_ymd] => 2024-12-24 14:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:32:18] Production.INFO: count ==2980 [2024-12-24 14:32:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:32:05 - End Time 2024-12-24 14:32:05 [2024-12-24 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092812', 'tblTempUsageDetail_20' ) start [2024-12-24 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092812', 'tblTempUsageDetail_20' ) end [2024-12-24 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092812', 'tblTempVendorCDR_20' ) start [2024-12-24 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092812', 'tblTempVendorCDR_20' ) end [2024-12-24 14:32:19] Production.INFO: ProcessCDR(1,14092812,1,1,2) [2024-12-24 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092812', 'tblTempUsageDetail_20' ) start [2024-12-24 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092812', 'tblTempUsageDetail_20' ) end [2024-12-24 14:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:32:24] Production.INFO: ==27844== Releasing lock... [2024-12-24 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:32:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:33:05 [end_date_ymd] => 2024-12-24 14:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:33:18] Production.INFO: count ==2983 [2024-12-24 14:33:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:33:05 - End Time 2024-12-24 14:33:05 [2024-12-24 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092817', 'tblTempUsageDetail_20' ) start [2024-12-24 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092817', 'tblTempUsageDetail_20' ) end [2024-12-24 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092817', 'tblTempVendorCDR_20' ) start [2024-12-24 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092817', 'tblTempVendorCDR_20' ) end [2024-12-24 14:33:19] Production.INFO: ProcessCDR(1,14092817,1,1,2) [2024-12-24 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092817', 'tblTempUsageDetail_20' ) start [2024-12-24 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092817', 'tblTempUsageDetail_20' ) end [2024-12-24 14:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:33:24] Production.INFO: ==27930== Releasing lock... [2024-12-24 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:33:24] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:34:05 [end_date_ymd] => 2024-12-24 14:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:34:18] Production.INFO: count ==2980 [2024-12-24 14:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:34:05 - End Time 2024-12-24 14:34:05 [2024-12-24 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092822', 'tblTempUsageDetail_20' ) start [2024-12-24 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092822', 'tblTempUsageDetail_20' ) end [2024-12-24 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092822', 'tblTempVendorCDR_20' ) start [2024-12-24 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092822', 'tblTempVendorCDR_20' ) end [2024-12-24 14:34:19] Production.INFO: ProcessCDR(1,14092822,1,1,2) [2024-12-24 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092822', 'tblTempUsageDetail_20' ) start [2024-12-24 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092822', 'tblTempUsageDetail_20' ) end [2024-12-24 14:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:34:22] Production.INFO: ==28013== Releasing lock... [2024-12-24 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:34:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:35:05 [end_date_ymd] => 2024-12-24 14:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:35:17] Production.INFO: count ==2980 [2024-12-24 14:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:35:05 - End Time 2024-12-24 14:35:05 [2024-12-24 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092827', 'tblTempUsageDetail_20' ) start [2024-12-24 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092827', 'tblTempUsageDetail_20' ) end [2024-12-24 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092827', 'tblTempVendorCDR_20' ) start [2024-12-24 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092827', 'tblTempVendorCDR_20' ) end [2024-12-24 14:35:19] Production.INFO: ProcessCDR(1,14092827,1,1,2) [2024-12-24 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092827', 'tblTempUsageDetail_20' ) start [2024-12-24 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092827', 'tblTempUsageDetail_20' ) end [2024-12-24 14:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:35:22] Production.INFO: ==28113== Releasing lock... [2024-12-24 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:35:22] Production.INFO: 51.25 MB #Memory Used# [2024-12-24 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:36:05 [end_date_ymd] => 2024-12-24 14:36:05 [RateCDR] => 1 ) [2024-12-24 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:36:05' and `end` < '2024-12-24 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:36:18] Production.INFO: count ==2974 [2024-12-24 14:36:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:36:05 - End Time 2024-12-24 14:36:05 [2024-12-24 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092832', 'tblTempUsageDetail_20' ) start [2024-12-24 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092832', 'tblTempUsageDetail_20' ) end [2024-12-24 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092832', 'tblTempVendorCDR_20' ) start [2024-12-24 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092832', 'tblTempVendorCDR_20' ) end [2024-12-24 14:36:19] Production.INFO: ProcessCDR(1,14092832,1,1,2) [2024-12-24 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092832', 'tblTempUsageDetail_20' ) start [2024-12-24 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092832', 'tblTempUsageDetail_20' ) end [2024-12-24 14:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:36:24] Production.INFO: ==28207== Releasing lock... [2024-12-24 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:36:24] Production.INFO: 50 MB #Memory Used# [2024-12-24 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:37:05 [end_date_ymd] => 2024-12-24 14:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:37:18] Production.INFO: count ==2958 [2024-12-24 14:37:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:37:05 - End Time 2024-12-24 14:37:05 [2024-12-24 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092837', 'tblTempUsageDetail_20' ) start [2024-12-24 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092837', 'tblTempUsageDetail_20' ) end [2024-12-24 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092837', 'tblTempVendorCDR_20' ) start [2024-12-24 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092837', 'tblTempVendorCDR_20' ) end [2024-12-24 14:37:19] Production.INFO: ProcessCDR(1,14092837,1,1,2) [2024-12-24 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092837', 'tblTempUsageDetail_20' ) start [2024-12-24 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092837', 'tblTempUsageDetail_20' ) end [2024-12-24 14:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:37:24] Production.INFO: ==28297== Releasing lock... [2024-12-24 14:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:37:24] Production.INFO: 50 MB #Memory Used# [2024-12-24 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:38:05 [end_date_ymd] => 2024-12-24 14:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:38:18] Production.INFO: count ==2952 [2024-12-24 14:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:38:05 - End Time 2024-12-24 14:38:05 [2024-12-24 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092842', 'tblTempUsageDetail_20' ) start [2024-12-24 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092842', 'tblTempUsageDetail_20' ) end [2024-12-24 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092842', 'tblTempVendorCDR_20' ) start [2024-12-24 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092842', 'tblTempVendorCDR_20' ) end [2024-12-24 14:38:19] Production.INFO: ProcessCDR(1,14092842,1,1,2) [2024-12-24 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092842', 'tblTempUsageDetail_20' ) start [2024-12-24 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092842', 'tblTempUsageDetail_20' ) end [2024-12-24 14:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:38:23] Production.INFO: ==28426== Releasing lock... [2024-12-24 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:38:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:39:05 [end_date_ymd] => 2024-12-24 14:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:39:18] Production.INFO: count ==2952 [2024-12-24 14:39:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:39:05 - End Time 2024-12-24 14:39:05 [2024-12-24 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092847', 'tblTempUsageDetail_20' ) start [2024-12-24 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092847', 'tblTempUsageDetail_20' ) end [2024-12-24 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092847', 'tblTempVendorCDR_20' ) start [2024-12-24 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092847', 'tblTempVendorCDR_20' ) end [2024-12-24 14:39:19] Production.INFO: ProcessCDR(1,14092847,1,1,2) [2024-12-24 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092847', 'tblTempUsageDetail_20' ) start [2024-12-24 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092847', 'tblTempUsageDetail_20' ) end [2024-12-24 14:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:39:23] Production.INFO: ==28517== Releasing lock... [2024-12-24 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:39:23] Production.INFO: 50 MB #Memory Used# [2024-12-24 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:40:04 [end_date_ymd] => 2024-12-24 14:40:04 [RateCDR] => 1 ) [2024-12-24 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:40:04' and `end` < '2024-12-24 14:40:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:40:17] Production.INFO: count ==2949 [2024-12-24 14:40:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:40:04 - End Time 2024-12-24 14:40:04 [2024-12-24 14:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092852', 'tblTempUsageDetail_20' ) start [2024-12-24 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092852', 'tblTempUsageDetail_20' ) end [2024-12-24 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092852', 'tblTempVendorCDR_20' ) start [2024-12-24 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092852', 'tblTempVendorCDR_20' ) end [2024-12-24 14:40:18] Production.INFO: ProcessCDR(1,14092852,1,1,2) [2024-12-24 14:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092852', 'tblTempUsageDetail_20' ) start [2024-12-24 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092852', 'tblTempUsageDetail_20' ) end [2024-12-24 14:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:40:23] Production.INFO: ==28607== Releasing lock... [2024-12-24 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:40:23] Production.INFO: 50 MB #Memory Used# [2024-12-24 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:41:05 [end_date_ymd] => 2024-12-24 14:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:41:18] Production.INFO: count ==2893 [2024-12-24 14:41:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:41:05 - End Time 2024-12-24 14:41:05 [2024-12-24 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092858', 'tblTempUsageDetail_20' ) start [2024-12-24 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092858', 'tblTempUsageDetail_20' ) end [2024-12-24 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092858', 'tblTempVendorCDR_20' ) start [2024-12-24 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092858', 'tblTempVendorCDR_20' ) end [2024-12-24 14:41:19] Production.INFO: ProcessCDR(1,14092858,1,1,2) [2024-12-24 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092858', 'tblTempUsageDetail_20' ) start [2024-12-24 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092858', 'tblTempUsageDetail_20' ) end [2024-12-24 14:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:41:22] Production.INFO: ==28700== Releasing lock... [2024-12-24 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:41:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:42:04 [end_date_ymd] => 2024-12-24 14:42:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:42:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:42:17] Production.INFO: count ==2876 [2024-12-24 14:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:42:04 - End Time 2024-12-24 14:42:04 [2024-12-24 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092863', 'tblTempUsageDetail_20' ) start [2024-12-24 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092863', 'tblTempUsageDetail_20' ) end [2024-12-24 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092863', 'tblTempVendorCDR_20' ) start [2024-12-24 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092863', 'tblTempVendorCDR_20' ) end [2024-12-24 14:42:18] Production.INFO: ProcessCDR(1,14092863,1,1,2) [2024-12-24 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092863', 'tblTempUsageDetail_20' ) start [2024-12-24 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092863', 'tblTempUsageDetail_20' ) end [2024-12-24 14:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:42:23] Production.INFO: ==28786== Releasing lock... [2024-12-24 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:42:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:43:05 [end_date_ymd] => 2024-12-24 14:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:43:17] Production.INFO: count ==2847 [2024-12-24 14:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:43:05 - End Time 2024-12-24 14:43:05 [2024-12-24 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092868', 'tblTempUsageDetail_20' ) start [2024-12-24 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092868', 'tblTempUsageDetail_20' ) end [2024-12-24 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092868', 'tblTempVendorCDR_20' ) start [2024-12-24 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092868', 'tblTempVendorCDR_20' ) end [2024-12-24 14:43:19] Production.INFO: ProcessCDR(1,14092868,1,1,2) [2024-12-24 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092868', 'tblTempUsageDetail_20' ) start [2024-12-24 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092868', 'tblTempUsageDetail_20' ) end [2024-12-24 14:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:43:22] Production.INFO: ==28874== Releasing lock... [2024-12-24 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:43:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:44:05 [end_date_ymd] => 2024-12-24 14:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:44:18] Production.INFO: count ==2840 [2024-12-24 14:44:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:44:05 - End Time 2024-12-24 14:44:05 [2024-12-24 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092873', 'tblTempUsageDetail_20' ) start [2024-12-24 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092873', 'tblTempUsageDetail_20' ) end [2024-12-24 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092873', 'tblTempVendorCDR_20' ) start [2024-12-24 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092873', 'tblTempVendorCDR_20' ) end [2024-12-24 14:44:19] Production.INFO: ProcessCDR(1,14092873,1,1,2) [2024-12-24 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092873', 'tblTempUsageDetail_20' ) start [2024-12-24 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092873', 'tblTempUsageDetail_20' ) end [2024-12-24 14:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:44:23] Production.INFO: ==28957== Releasing lock... [2024-12-24 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:44:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:45:05 [end_date_ymd] => 2024-12-24 14:45:05 [RateCDR] => 1 ) [2024-12-24 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:45:05' and `end` < '2024-12-24 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:45:17] Production.INFO: count ==2826 [2024-12-24 14:45:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:45:05 - End Time 2024-12-24 14:45:05 [2024-12-24 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092878', 'tblTempUsageDetail_20' ) start [2024-12-24 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092878', 'tblTempUsageDetail_20' ) end [2024-12-24 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092878', 'tblTempVendorCDR_20' ) start [2024-12-24 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092878', 'tblTempVendorCDR_20' ) end [2024-12-24 14:45:18] Production.INFO: ProcessCDR(1,14092878,1,1,2) [2024-12-24 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092878', 'tblTempUsageDetail_20' ) start [2024-12-24 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092878', 'tblTempUsageDetail_20' ) end [2024-12-24 14:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:45:23] Production.INFO: ==29042== Releasing lock... [2024-12-24 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:45:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:46:05 [end_date_ymd] => 2024-12-24 14:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:46:17] Production.INFO: count ==2826 [2024-12-24 14:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:46:05 - End Time 2024-12-24 14:46:05 [2024-12-24 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092883', 'tblTempUsageDetail_20' ) start [2024-12-24 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092883', 'tblTempUsageDetail_20' ) end [2024-12-24 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092883', 'tblTempVendorCDR_20' ) start [2024-12-24 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092883', 'tblTempVendorCDR_20' ) end [2024-12-24 14:46:18] Production.INFO: ProcessCDR(1,14092883,1,1,2) [2024-12-24 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092883', 'tblTempUsageDetail_20' ) start [2024-12-24 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092883', 'tblTempUsageDetail_20' ) end [2024-12-24 14:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:46:22] Production.INFO: ==29124== Releasing lock... [2024-12-24 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:46:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:47:05 [end_date_ymd] => 2024-12-24 14:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:47:17] Production.INFO: count ==2835 [2024-12-24 14:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:47:05 - End Time 2024-12-24 14:47:05 [2024-12-24 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092888', 'tblTempUsageDetail_20' ) start [2024-12-24 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092888', 'tblTempUsageDetail_20' ) end [2024-12-24 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092888', 'tblTempVendorCDR_20' ) start [2024-12-24 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092888', 'tblTempVendorCDR_20' ) end [2024-12-24 14:47:19] Production.INFO: ProcessCDR(1,14092888,1,1,2) [2024-12-24 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092888', 'tblTempUsageDetail_20' ) start [2024-12-24 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092888', 'tblTempUsageDetail_20' ) end [2024-12-24 14:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:47:22] Production.INFO: ==29199== Releasing lock... [2024-12-24 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:47:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:48:05 [end_date_ymd] => 2024-12-24 14:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:48:18] Production.INFO: count ==2836 [2024-12-24 14:48:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:48:05 - End Time 2024-12-24 14:48:05 [2024-12-24 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092893', 'tblTempUsageDetail_20' ) start [2024-12-24 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092893', 'tblTempUsageDetail_20' ) end [2024-12-24 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092893', 'tblTempVendorCDR_20' ) start [2024-12-24 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092893', 'tblTempVendorCDR_20' ) end [2024-12-24 14:48:19] Production.INFO: ProcessCDR(1,14092893,1,1,2) [2024-12-24 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092893', 'tblTempUsageDetail_20' ) start [2024-12-24 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092893', 'tblTempUsageDetail_20' ) end [2024-12-24 14:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:48:23] Production.INFO: ==29271== Releasing lock... [2024-12-24 14:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:48:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:49:04 [end_date_ymd] => 2024-12-24 14:49:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:49:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:49:17] Production.INFO: count ==2840 [2024-12-24 14:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:49:04 - End Time 2024-12-24 14:49:04 [2024-12-24 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092898', 'tblTempUsageDetail_20' ) start [2024-12-24 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092898', 'tblTempUsageDetail_20' ) end [2024-12-24 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092898', 'tblTempVendorCDR_20' ) start [2024-12-24 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092898', 'tblTempVendorCDR_20' ) end [2024-12-24 14:49:18] Production.INFO: ProcessCDR(1,14092898,1,1,2) [2024-12-24 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092898', 'tblTempUsageDetail_20' ) start [2024-12-24 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092898', 'tblTempUsageDetail_20' ) end [2024-12-24 14:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:49:21] Production.INFO: ==29344== Releasing lock... [2024-12-24 14:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:49:21] Production.INFO: 50 MB #Memory Used# [2024-12-24 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:50:06 [end_date_ymd] => 2024-12-24 14:50:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:50:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:50:19] Production.INFO: count ==2839 [2024-12-24 14:50:20] Production.ERROR: pbx CDR StartTime 2024-12-24 11:50:06 - End Time 2024-12-24 14:50:06 [2024-12-24 14:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092904', 'tblTempUsageDetail_20' ) start [2024-12-24 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092904', 'tblTempUsageDetail_20' ) end [2024-12-24 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092904', 'tblTempVendorCDR_20' ) start [2024-12-24 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092904', 'tblTempVendorCDR_20' ) end [2024-12-24 14:50:20] Production.INFO: ProcessCDR(1,14092904,1,1,2) [2024-12-24 14:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092904', 'tblTempUsageDetail_20' ) start [2024-12-24 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092904', 'tblTempUsageDetail_20' ) end [2024-12-24 14:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:50:23] Production.INFO: ==29423== Releasing lock... [2024-12-24 14:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:50:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:51:05 [end_date_ymd] => 2024-12-24 14:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:51:17] Production.INFO: count ==2807 [2024-12-24 14:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:51:05 - End Time 2024-12-24 14:51:05 [2024-12-24 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092909', 'tblTempUsageDetail_20' ) start [2024-12-24 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092909', 'tblTempUsageDetail_20' ) end [2024-12-24 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092909', 'tblTempVendorCDR_20' ) start [2024-12-24 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092909', 'tblTempVendorCDR_20' ) end [2024-12-24 14:51:19] Production.INFO: ProcessCDR(1,14092909,1,1,2) [2024-12-24 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092909', 'tblTempUsageDetail_20' ) start [2024-12-24 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092909', 'tblTempUsageDetail_20' ) end [2024-12-24 14:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:51:22] Production.INFO: ==29495== Releasing lock... [2024-12-24 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:51:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:52:05 [end_date_ymd] => 2024-12-24 14:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:52:18] Production.INFO: count ==2808 [2024-12-24 14:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:52:05 - End Time 2024-12-24 14:52:05 [2024-12-24 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092914', 'tblTempUsageDetail_20' ) start [2024-12-24 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092914', 'tblTempUsageDetail_20' ) end [2024-12-24 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092914', 'tblTempVendorCDR_20' ) start [2024-12-24 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092914', 'tblTempVendorCDR_20' ) end [2024-12-24 14:52:19] Production.INFO: ProcessCDR(1,14092914,1,1,2) [2024-12-24 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092914', 'tblTempUsageDetail_20' ) start [2024-12-24 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092914', 'tblTempUsageDetail_20' ) end [2024-12-24 14:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:52:24] Production.INFO: ==29568== Releasing lock... [2024-12-24 14:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:52:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:53:04 [end_date_ymd] => 2024-12-24 14:53:04 [RateCDR] => 1 ) [2024-12-24 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 11:53:04' and `end` < '2024-12-24 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 14:53:17] Production.INFO: count ==2868 [2024-12-24 14:53:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:53:04 - End Time 2024-12-24 14:53:04 [2024-12-24 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092919', 'tblTempUsageDetail_20' ) start [2024-12-24 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092919', 'tblTempUsageDetail_20' ) end [2024-12-24 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092919', 'tblTempVendorCDR_20' ) start [2024-12-24 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092919', 'tblTempVendorCDR_20' ) end [2024-12-24 14:53:18] Production.INFO: ProcessCDR(1,14092919,1,1,2) [2024-12-24 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092919', 'tblTempUsageDetail_20' ) start [2024-12-24 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092919', 'tblTempUsageDetail_20' ) end [2024-12-24 14:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:53:23] Production.INFO: ==29644== Releasing lock... [2024-12-24 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:53:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 14:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:54:04 [end_date_ymd] => 2024-12-24 14:54:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:54:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:54:17] Production.INFO: count ==2859 [2024-12-24 14:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:54:04 - End Time 2024-12-24 14:54:04 [2024-12-24 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092924', 'tblTempUsageDetail_20' ) start [2024-12-24 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092924', 'tblTempUsageDetail_20' ) end [2024-12-24 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092924', 'tblTempVendorCDR_20' ) start [2024-12-24 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092924', 'tblTempVendorCDR_20' ) end [2024-12-24 14:54:18] Production.INFO: ProcessCDR(1,14092924,1,1,2) [2024-12-24 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092924', 'tblTempUsageDetail_20' ) start [2024-12-24 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092924', 'tblTempUsageDetail_20' ) end [2024-12-24 14:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:54:23] Production.INFO: ==29759== Releasing lock... [2024-12-24 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:54:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:55:05 [end_date_ymd] => 2024-12-24 14:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:55:18] Production.INFO: count ==2859 [2024-12-24 14:55:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:55:05 - End Time 2024-12-24 14:55:05 [2024-12-24 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092929', 'tblTempUsageDetail_20' ) start [2024-12-24 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092929', 'tblTempUsageDetail_20' ) end [2024-12-24 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092929', 'tblTempVendorCDR_20' ) start [2024-12-24 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092929', 'tblTempVendorCDR_20' ) end [2024-12-24 14:55:19] Production.INFO: ProcessCDR(1,14092929,1,1,2) [2024-12-24 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092929', 'tblTempUsageDetail_20' ) start [2024-12-24 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092929', 'tblTempUsageDetail_20' ) end [2024-12-24 14:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:55:24] Production.INFO: ==29834== Releasing lock... [2024-12-24 14:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:55:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:56:04 [end_date_ymd] => 2024-12-24 14:56:04 [RateCDR] => 1 ) [2024-12-24 14: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` >= '2024-12-24 11:56:04' and `end` < '2024-12-24 14: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 ,'') [2024-12-24 14:56:18] Production.INFO: count ==2853 [2024-12-24 14:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:56:04 - End Time 2024-12-24 14:56:04 [2024-12-24 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092934', 'tblTempUsageDetail_20' ) start [2024-12-24 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092934', 'tblTempUsageDetail_20' ) end [2024-12-24 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092934', 'tblTempVendorCDR_20' ) start [2024-12-24 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092934', 'tblTempVendorCDR_20' ) end [2024-12-24 14:56:19] Production.INFO: ProcessCDR(1,14092934,1,1,2) [2024-12-24 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092934', 'tblTempUsageDetail_20' ) start [2024-12-24 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092934', 'tblTempUsageDetail_20' ) end [2024-12-24 14:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:56:23] Production.INFO: ==29908== Releasing lock... [2024-12-24 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:56:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:57:05 [end_date_ymd] => 2024-12-24 14:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:57:18] Production.INFO: count ==2859 [2024-12-24 14:57:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:57:05 - End Time 2024-12-24 14:57:05 [2024-12-24 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092939', 'tblTempUsageDetail_20' ) start [2024-12-24 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092939', 'tblTempUsageDetail_20' ) end [2024-12-24 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092939', 'tblTempVendorCDR_20' ) start [2024-12-24 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092939', 'tblTempVendorCDR_20' ) end [2024-12-24 14:57:19] Production.INFO: ProcessCDR(1,14092939,1,1,2) [2024-12-24 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092939', 'tblTempUsageDetail_20' ) start [2024-12-24 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092939', 'tblTempUsageDetail_20' ) end [2024-12-24 14:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:57:22] Production.INFO: ==29980== Releasing lock... [2024-12-24 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:57:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:58:05 [end_date_ymd] => 2024-12-24 14:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:58:17] Production.INFO: count ==2854 [2024-12-24 14:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 11:58:05 - End Time 2024-12-24 14:58:05 [2024-12-24 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092944', 'tblTempUsageDetail_20' ) start [2024-12-24 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092944', 'tblTempUsageDetail_20' ) end [2024-12-24 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092944', 'tblTempVendorCDR_20' ) start [2024-12-24 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092944', 'tblTempVendorCDR_20' ) end [2024-12-24 14:58:18] Production.INFO: ProcessCDR(1,14092944,1,1,2) [2024-12-24 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092944', 'tblTempUsageDetail_20' ) start [2024-12-24 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092944', 'tblTempUsageDetail_20' ) end [2024-12-24 14:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:58:23] Production.INFO: ==30052== Releasing lock... [2024-12-24 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:58:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 11:59:05 [end_date_ymd] => 2024-12-24 14:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 11:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 14:59:18] Production.INFO: count ==2835 [2024-12-24 14:59:19] Production.ERROR: pbx CDR StartTime 2024-12-24 11:59:05 - End Time 2024-12-24 14:59:05 [2024-12-24 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092949', 'tblTempUsageDetail_20' ) start [2024-12-24 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092949', 'tblTempUsageDetail_20' ) end [2024-12-24 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092949', 'tblTempVendorCDR_20' ) start [2024-12-24 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092949', 'tblTempVendorCDR_20' ) end [2024-12-24 14:59:19] Production.INFO: ProcessCDR(1,14092949,1,1,2) [2024-12-24 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092949', 'tblTempUsageDetail_20' ) start [2024-12-24 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092949', 'tblTempUsageDetail_20' ) end [2024-12-24 14:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 14:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 14:59:24] Production.INFO: ==30127== Releasing lock... [2024-12-24 14:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 14:59:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:00:06 [end_date_ymd] => 2024-12-24 15:00:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:00:06' and `end` < '2024-12-24 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:00:19] Production.INFO: count ==2832 [2024-12-24 15:00:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:00:06 - End Time 2024-12-24 15:00:06 [2024-12-24 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092955', 'tblTempUsageDetail_20' ) start [2024-12-24 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092955', 'tblTempUsageDetail_20' ) end [2024-12-24 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092955', 'tblTempVendorCDR_20' ) start [2024-12-24 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092955', 'tblTempVendorCDR_20' ) end [2024-12-24 15:00:20] Production.INFO: ProcessCDR(1,14092955,1,1,2) [2024-12-24 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092955', 'tblTempUsageDetail_20' ) start [2024-12-24 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092955', 'tblTempUsageDetail_20' ) end [2024-12-24 15:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:00:24] Production.INFO: ==30202== Releasing lock... [2024-12-24 15:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:00:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:01:05 [end_date_ymd] => 2024-12-24 15:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:01:20] Production.INFO: count ==2842 [2024-12-24 15:01:21] Production.ERROR: pbx CDR StartTime 2024-12-24 12:01:05 - End Time 2024-12-24 15:01:05 [2024-12-24 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092960', 'tblTempUsageDetail_20' ) start [2024-12-24 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092960', 'tblTempUsageDetail_20' ) end [2024-12-24 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092960', 'tblTempVendorCDR_20' ) start [2024-12-24 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092960', 'tblTempVendorCDR_20' ) end [2024-12-24 15:01:21] Production.INFO: ProcessCDR(1,14092960,1,1,2) [2024-12-24 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092960', 'tblTempUsageDetail_20' ) start [2024-12-24 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092960', 'tblTempUsageDetail_20' ) end [2024-12-24 15:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:01:24] Production.INFO: ==30330== Releasing lock... [2024-12-24 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:01:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:02:05 [end_date_ymd] => 2024-12-24 15:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:02:18] Production.INFO: count ==2834 [2024-12-24 15:02:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:02:05 - End Time 2024-12-24 15:02:05 [2024-12-24 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092965', 'tblTempUsageDetail_20' ) start [2024-12-24 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092965', 'tblTempUsageDetail_20' ) end [2024-12-24 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092965', 'tblTempVendorCDR_20' ) start [2024-12-24 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092965', 'tblTempVendorCDR_20' ) end [2024-12-24 15:02:19] Production.INFO: ProcessCDR(1,14092965,1,1,2) [2024-12-24 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092965', 'tblTempUsageDetail_20' ) start [2024-12-24 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092965', 'tblTempUsageDetail_20' ) end [2024-12-24 15:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:02:24] Production.INFO: ==30444== Releasing lock... [2024-12-24 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:02:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:03:05 [end_date_ymd] => 2024-12-24 15:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:03:18] Production.INFO: count ==2835 [2024-12-24 15:03:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:03:05 - End Time 2024-12-24 15:03:05 [2024-12-24 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092970', 'tblTempUsageDetail_20' ) start [2024-12-24 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092970', 'tblTempUsageDetail_20' ) end [2024-12-24 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092970', 'tblTempVendorCDR_20' ) start [2024-12-24 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092970', 'tblTempVendorCDR_20' ) end [2024-12-24 15:03:19] Production.INFO: ProcessCDR(1,14092970,1,1,2) [2024-12-24 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092970', 'tblTempUsageDetail_20' ) start [2024-12-24 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092970', 'tblTempUsageDetail_20' ) end [2024-12-24 15:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:03:24] Production.INFO: ==30517== Releasing lock... [2024-12-24 15:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:03:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:04:05 [end_date_ymd] => 2024-12-24 15:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:04:17] Production.INFO: count ==2847 [2024-12-24 15:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:04:05 - End Time 2024-12-24 15:04:05 [2024-12-24 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092975', 'tblTempUsageDetail_20' ) start [2024-12-24 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092975', 'tblTempUsageDetail_20' ) end [2024-12-24 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092975', 'tblTempVendorCDR_20' ) start [2024-12-24 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092975', 'tblTempVendorCDR_20' ) end [2024-12-24 15:04:19] Production.INFO: ProcessCDR(1,14092975,1,1,2) [2024-12-24 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092975', 'tblTempUsageDetail_20' ) start [2024-12-24 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092975', 'tblTempUsageDetail_20' ) end [2024-12-24 15:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:04:23] Production.INFO: ==30588== Releasing lock... [2024-12-24 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:04:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:05:05 [end_date_ymd] => 2024-12-24 15:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:05:19] Production.INFO: count ==2852 [2024-12-24 15:05:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:05:05 - End Time 2024-12-24 15:05:05 [2024-12-24 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092980', 'tblTempUsageDetail_20' ) start [2024-12-24 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092980', 'tblTempUsageDetail_20' ) end [2024-12-24 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092980', 'tblTempVendorCDR_20' ) start [2024-12-24 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092980', 'tblTempVendorCDR_20' ) end [2024-12-24 15:05:20] Production.INFO: ProcessCDR(1,14092980,1,1,2) [2024-12-24 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092980', 'tblTempUsageDetail_20' ) start [2024-12-24 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092980', 'tblTempUsageDetail_20' ) end [2024-12-24 15:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:05:24] Production.INFO: ==30737== Releasing lock... [2024-12-24 15:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:05:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:06:05 [end_date_ymd] => 2024-12-24 15:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:06:18] Production.INFO: count ==2858 [2024-12-24 15:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:06:05 - End Time 2024-12-24 15:06:05 [2024-12-24 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092985', 'tblTempUsageDetail_20' ) start [2024-12-24 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092985', 'tblTempUsageDetail_20' ) end [2024-12-24 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092985', 'tblTempVendorCDR_20' ) start [2024-12-24 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092985', 'tblTempVendorCDR_20' ) end [2024-12-24 15:06:19] Production.INFO: ProcessCDR(1,14092985,1,1,2) [2024-12-24 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092985', 'tblTempUsageDetail_20' ) start [2024-12-24 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092985', 'tblTempUsageDetail_20' ) end [2024-12-24 15:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:06:22] Production.INFO: ==30810== Releasing lock... [2024-12-24 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:06:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:07:05 [end_date_ymd] => 2024-12-24 15:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:07:18] Production.INFO: count ==2848 [2024-12-24 15:07:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:07:05 - End Time 2024-12-24 15:07:05 [2024-12-24 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092990', 'tblTempUsageDetail_20' ) start [2024-12-24 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092990', 'tblTempUsageDetail_20' ) end [2024-12-24 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092990', 'tblTempVendorCDR_20' ) start [2024-12-24 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092990', 'tblTempVendorCDR_20' ) end [2024-12-24 15:07:19] Production.INFO: ProcessCDR(1,14092990,1,1,2) [2024-12-24 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092990', 'tblTempUsageDetail_20' ) start [2024-12-24 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092990', 'tblTempUsageDetail_20' ) end [2024-12-24 15:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:07:22] Production.INFO: ==30888== Releasing lock... [2024-12-24 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:07:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:08:05 [end_date_ymd] => 2024-12-24 15:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:08:19] Production.INFO: count ==2837 [2024-12-24 15:08:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:08:05 - End Time 2024-12-24 15:08:05 [2024-12-24 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092995', 'tblTempUsageDetail_20' ) start [2024-12-24 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14092995', 'tblTempUsageDetail_20' ) end [2024-12-24 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092995', 'tblTempVendorCDR_20' ) start [2024-12-24 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14092995', 'tblTempVendorCDR_20' ) end [2024-12-24 15:08:20] Production.INFO: ProcessCDR(1,14092995,1,1,2) [2024-12-24 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14092995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14092995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14092995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14092995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092995', 'tblTempUsageDetail_20' ) start [2024-12-24 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14092995', 'tblTempUsageDetail_20' ) end [2024-12-24 15:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:08:23] Production.INFO: ==31039== Releasing lock... [2024-12-24 15:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:08:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:09:05 [end_date_ymd] => 2024-12-24 15:09:05 [RateCDR] => 1 ) [2024-12-24 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:09:05' and `end` < '2024-12-24 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:09:18] Production.INFO: count ==2842 [2024-12-24 15:09:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:09:05 - End Time 2024-12-24 15:09:05 [2024-12-24 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093000', 'tblTempUsageDetail_20' ) start [2024-12-24 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093000', 'tblTempUsageDetail_20' ) end [2024-12-24 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093000', 'tblTempVendorCDR_20' ) start [2024-12-24 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093000', 'tblTempVendorCDR_20' ) end [2024-12-24 15:09:19] Production.INFO: ProcessCDR(1,14093000,1,1,2) [2024-12-24 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093000', 'tblTempUsageDetail_20' ) start [2024-12-24 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093000', 'tblTempUsageDetail_20' ) end [2024-12-24 15:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:09:24] Production.INFO: ==31114== Releasing lock... [2024-12-24 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:09:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:10:05 [end_date_ymd] => 2024-12-24 15:10:05 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:10:05' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:10:18] Production.INFO: count ==2847 [2024-12-24 15:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:10:05 - End Time 2024-12-24 15:10:05 [2024-12-24 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093006', 'tblTempUsageDetail_20' ) start [2024-12-24 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093006', 'tblTempUsageDetail_20' ) end [2024-12-24 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093006', 'tblTempVendorCDR_20' ) start [2024-12-24 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093006', 'tblTempVendorCDR_20' ) end [2024-12-24 15:10:20] Production.INFO: ProcessCDR(1,14093006,1,1,2) [2024-12-24 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093006', 'tblTempUsageDetail_20' ) start [2024-12-24 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093006', 'tblTempUsageDetail_20' ) end [2024-12-24 15:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:10:24] Production.INFO: ==31227== Releasing lock... [2024-12-24 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:10:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:11:05 [end_date_ymd] => 2024-12-24 15:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:11:18] Production.INFO: count ==2858 [2024-12-24 15:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:11:05 - End Time 2024-12-24 15:11:05 [2024-12-24 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093011', 'tblTempUsageDetail_20' ) start [2024-12-24 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093011', 'tblTempUsageDetail_20' ) end [2024-12-24 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093011', 'tblTempVendorCDR_20' ) start [2024-12-24 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093011', 'tblTempVendorCDR_20' ) end [2024-12-24 15:11:19] Production.INFO: ProcessCDR(1,14093011,1,1,2) [2024-12-24 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093011', 'tblTempUsageDetail_20' ) start [2024-12-24 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093011', 'tblTempUsageDetail_20' ) end [2024-12-24 15:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:11:23] Production.INFO: ==31300== Releasing lock... [2024-12-24 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:11:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:12:04 [end_date_ymd] => 2024-12-24 15:12:04 [RateCDR] => 1 ) [2024-12-24 15:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:12:04' and `end` < '2024-12-24 15:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:12:17] Production.INFO: count ==2863 [2024-12-24 15:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:12:04 - End Time 2024-12-24 15:12:04 [2024-12-24 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093016', 'tblTempUsageDetail_20' ) start [2024-12-24 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093016', 'tblTempUsageDetail_20' ) end [2024-12-24 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093016', 'tblTempVendorCDR_20' ) start [2024-12-24 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093016', 'tblTempVendorCDR_20' ) end [2024-12-24 15:12:18] Production.INFO: ProcessCDR(1,14093016,1,1,2) [2024-12-24 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093016', 'tblTempUsageDetail_20' ) start [2024-12-24 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093016', 'tblTempUsageDetail_20' ) end [2024-12-24 15:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:12:23] Production.INFO: ==31450== Releasing lock... [2024-12-24 15:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:12:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:13:05 [end_date_ymd] => 2024-12-24 15:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:13:18] Production.INFO: count ==2860 [2024-12-24 15:13:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:13:05 - End Time 2024-12-24 15:13:05 [2024-12-24 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093021', 'tblTempUsageDetail_20' ) start [2024-12-24 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093021', 'tblTempUsageDetail_20' ) end [2024-12-24 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093021', 'tblTempVendorCDR_20' ) start [2024-12-24 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093021', 'tblTempVendorCDR_20' ) end [2024-12-24 15:13:20] Production.INFO: ProcessCDR(1,14093021,1,1,2) [2024-12-24 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093021', 'tblTempUsageDetail_20' ) start [2024-12-24 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093021', 'tblTempUsageDetail_20' ) end [2024-12-24 15:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:13:24] Production.INFO: ==31525== Releasing lock... [2024-12-24 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:13:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:14:05 [end_date_ymd] => 2024-12-24 15:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:14:18] Production.INFO: count ==2844 [2024-12-24 15:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:14:05 - End Time 2024-12-24 15:14:05 [2024-12-24 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093026', 'tblTempUsageDetail_20' ) start [2024-12-24 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093026', 'tblTempUsageDetail_20' ) end [2024-12-24 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093026', 'tblTempVendorCDR_20' ) start [2024-12-24 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093026', 'tblTempVendorCDR_20' ) end [2024-12-24 15:14:19] Production.INFO: ProcessCDR(1,14093026,1,1,2) [2024-12-24 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093026', 'tblTempUsageDetail_20' ) start [2024-12-24 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093026', 'tblTempUsageDetail_20' ) end [2024-12-24 15:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:14:24] Production.INFO: ==31599== Releasing lock... [2024-12-24 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:14:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:15:05 [end_date_ymd] => 2024-12-24 15:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:15:17] Production.INFO: count ==2831 [2024-12-24 15:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:15:05 - End Time 2024-12-24 15:15:05 [2024-12-24 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093031', 'tblTempUsageDetail_20' ) start [2024-12-24 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093031', 'tblTempUsageDetail_20' ) end [2024-12-24 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093031', 'tblTempVendorCDR_20' ) start [2024-12-24 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093031', 'tblTempVendorCDR_20' ) end [2024-12-24 15:15:18] Production.INFO: ProcessCDR(1,14093031,1,1,2) [2024-12-24 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093031', 'tblTempUsageDetail_20' ) start [2024-12-24 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093031', 'tblTempUsageDetail_20' ) end [2024-12-24 15:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:15:22] Production.INFO: ==31753== Releasing lock... [2024-12-24 15:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:15:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:16:05 [end_date_ymd] => 2024-12-24 15:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:16:18] Production.INFO: count ==2826 [2024-12-24 15:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:16:05 - End Time 2024-12-24 15:16:05 [2024-12-24 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093036', 'tblTempUsageDetail_20' ) start [2024-12-24 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093036', 'tblTempUsageDetail_20' ) end [2024-12-24 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093036', 'tblTempVendorCDR_20' ) start [2024-12-24 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093036', 'tblTempVendorCDR_20' ) end [2024-12-24 15:16:19] Production.INFO: ProcessCDR(1,14093036,1,1,2) [2024-12-24 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093036', 'tblTempUsageDetail_20' ) start [2024-12-24 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093036', 'tblTempUsageDetail_20' ) end [2024-12-24 15:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:16:24] Production.INFO: ==31826== Releasing lock... [2024-12-24 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:16:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:17:04 [end_date_ymd] => 2024-12-24 15:17:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:17:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:17:17] Production.INFO: count ==2794 [2024-12-24 15:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:17:04 - End Time 2024-12-24 15:17:04 [2024-12-24 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093041', 'tblTempUsageDetail_20' ) start [2024-12-24 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093041', 'tblTempUsageDetail_20' ) end [2024-12-24 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093041', 'tblTempVendorCDR_20' ) start [2024-12-24 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093041', 'tblTempVendorCDR_20' ) end [2024-12-24 15:17:18] Production.INFO: ProcessCDR(1,14093041,1,1,2) [2024-12-24 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093041', 'tblTempUsageDetail_20' ) start [2024-12-24 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093041', 'tblTempUsageDetail_20' ) end [2024-12-24 15:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:17:23] Production.INFO: ==31898== Releasing lock... [2024-12-24 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:17:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:18:05 [end_date_ymd] => 2024-12-24 15:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:18:18] Production.INFO: count ==2797 [2024-12-24 15:18:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:18:05 - End Time 2024-12-24 15:18:05 [2024-12-24 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093046', 'tblTempUsageDetail_20' ) start [2024-12-24 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093046', 'tblTempUsageDetail_20' ) end [2024-12-24 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093046', 'tblTempVendorCDR_20' ) start [2024-12-24 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093046', 'tblTempVendorCDR_20' ) end [2024-12-24 15:18:19] Production.INFO: ProcessCDR(1,14093046,1,1,2) [2024-12-24 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093046', 'tblTempUsageDetail_20' ) start [2024-12-24 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093046', 'tblTempUsageDetail_20' ) end [2024-12-24 15:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:18:24] Production.INFO: ==31970== Releasing lock... [2024-12-24 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:18:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:19:04 [end_date_ymd] => 2024-12-24 15:19:04 [RateCDR] => 1 ) [2024-12-24 15:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:19:04' and `end` < '2024-12-24 15:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:19:17] Production.INFO: count ==2806 [2024-12-24 15:19:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:19:04 - End Time 2024-12-24 15:19:04 [2024-12-24 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093051', 'tblTempUsageDetail_20' ) start [2024-12-24 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093051', 'tblTempUsageDetail_20' ) end [2024-12-24 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093051', 'tblTempVendorCDR_20' ) start [2024-12-24 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093051', 'tblTempVendorCDR_20' ) end [2024-12-24 15:19:18] Production.INFO: ProcessCDR(1,14093051,1,1,2) [2024-12-24 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093051', 'tblTempUsageDetail_20' ) start [2024-12-24 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093051', 'tblTempUsageDetail_20' ) end [2024-12-24 15:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:19:21] Production.INFO: ==32043== Releasing lock... [2024-12-24 15:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:19:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:20:05 [end_date_ymd] => 2024-12-24 15:20:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:20:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:20:18] Production.INFO: count ==2822 [2024-12-24 15:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:20:05 - End Time 2024-12-24 15:20:05 [2024-12-24 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093057', 'tblTempUsageDetail_20' ) start [2024-12-24 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093057', 'tblTempUsageDetail_20' ) end [2024-12-24 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093057', 'tblTempVendorCDR_20' ) start [2024-12-24 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093057', 'tblTempVendorCDR_20' ) end [2024-12-24 15:20:19] Production.INFO: ProcessCDR(1,14093057,1,1,2) [2024-12-24 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093057', 'tblTempUsageDetail_20' ) start [2024-12-24 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093057', 'tblTempUsageDetail_20' ) end [2024-12-24 15:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:20:23] Production.INFO: ==32121== Releasing lock... [2024-12-24 15:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:20:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:21:05 [end_date_ymd] => 2024-12-24 15:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:21:18] Production.INFO: count ==2788 [2024-12-24 15:21:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:21:05 - End Time 2024-12-24 15:21:05 [2024-12-24 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093062', 'tblTempUsageDetail_20' ) start [2024-12-24 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093062', 'tblTempUsageDetail_20' ) end [2024-12-24 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093062', 'tblTempVendorCDR_20' ) start [2024-12-24 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093062', 'tblTempVendorCDR_20' ) end [2024-12-24 15:21:19] Production.INFO: ProcessCDR(1,14093062,1,1,2) [2024-12-24 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093062', 'tblTempUsageDetail_20' ) start [2024-12-24 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093062', 'tblTempUsageDetail_20' ) end [2024-12-24 15:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:21:24] Production.INFO: ==32199== Releasing lock... [2024-12-24 15:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:21:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:22:05 [end_date_ymd] => 2024-12-24 15:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:22:18] Production.INFO: count ==2802 [2024-12-24 15:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:22:05 - End Time 2024-12-24 15:22:05 [2024-12-24 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093067', 'tblTempUsageDetail_20' ) start [2024-12-24 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093067', 'tblTempUsageDetail_20' ) end [2024-12-24 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093067', 'tblTempVendorCDR_20' ) start [2024-12-24 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093067', 'tblTempVendorCDR_20' ) end [2024-12-24 15:22:19] Production.INFO: ProcessCDR(1,14093067,1,1,2) [2024-12-24 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093067', 'tblTempUsageDetail_20' ) start [2024-12-24 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093067', 'tblTempUsageDetail_20' ) end [2024-12-24 15:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:22:23] Production.INFO: ==32269== Releasing lock... [2024-12-24 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:22:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:23:05 [end_date_ymd] => 2024-12-24 15:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:23:19] Production.INFO: count ==2812 [2024-12-24 15:23:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:23:05 - End Time 2024-12-24 15:23:05 [2024-12-24 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093072', 'tblTempUsageDetail_20' ) start [2024-12-24 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093072', 'tblTempUsageDetail_20' ) end [2024-12-24 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093072', 'tblTempVendorCDR_20' ) start [2024-12-24 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093072', 'tblTempVendorCDR_20' ) end [2024-12-24 15:23:20] Production.INFO: ProcessCDR(1,14093072,1,1,2) [2024-12-24 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093072', 'tblTempUsageDetail_20' ) start [2024-12-24 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093072', 'tblTempUsageDetail_20' ) end [2024-12-24 15:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:23:23] Production.INFO: ==32341== Releasing lock... [2024-12-24 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:23:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:24:04 [end_date_ymd] => 2024-12-24 15:24:04 [RateCDR] => 1 ) [2024-12-24 15:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:24:04' and `end` < '2024-12-24 15:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:24:20] Production.INFO: count ==2873 [2024-12-24 15:24:21] Production.ERROR: pbx CDR StartTime 2024-12-24 12:24:04 - End Time 2024-12-24 15:24:04 [2024-12-24 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093077', 'tblTempUsageDetail_20' ) start [2024-12-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093077', 'tblTempUsageDetail_20' ) end [2024-12-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093077', 'tblTempVendorCDR_20' ) start [2024-12-24 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093077', 'tblTempVendorCDR_20' ) end [2024-12-24 15:24:21] Production.INFO: ProcessCDR(1,14093077,1,1,2) [2024-12-24 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093077', 'tblTempUsageDetail_20' ) start [2024-12-24 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093077', 'tblTempUsageDetail_20' ) end [2024-12-24 15:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:24:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:24:26] Production.INFO: ==32414== Releasing lock... [2024-12-24 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:24:26] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:25:05 [end_date_ymd] => 2024-12-24 15:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:25:18] Production.INFO: count ==2845 [2024-12-24 15:25:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:25:05 - End Time 2024-12-24 15:25:05 [2024-12-24 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093082', 'tblTempUsageDetail_20' ) start [2024-12-24 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093082', 'tblTempUsageDetail_20' ) end [2024-12-24 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093082', 'tblTempVendorCDR_20' ) start [2024-12-24 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093082', 'tblTempVendorCDR_20' ) end [2024-12-24 15:25:19] Production.INFO: ProcessCDR(1,14093082,1,1,2) [2024-12-24 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093082', 'tblTempUsageDetail_20' ) start [2024-12-24 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093082', 'tblTempUsageDetail_20' ) end [2024-12-24 15:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:25:24] Production.INFO: ==32527== Releasing lock... [2024-12-24 15:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:25:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:26:04 [end_date_ymd] => 2024-12-24 15:26:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:26:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:26:18] Production.INFO: count ==2838 [2024-12-24 15:26:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:26:04 - End Time 2024-12-24 15:26:04 [2024-12-24 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093087', 'tblTempUsageDetail_20' ) start [2024-12-24 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093087', 'tblTempUsageDetail_20' ) end [2024-12-24 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093087', 'tblTempVendorCDR_20' ) start [2024-12-24 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093087', 'tblTempVendorCDR_20' ) end [2024-12-24 15:26:19] Production.INFO: ProcessCDR(1,14093087,1,1,2) [2024-12-24 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093087', 'tblTempUsageDetail_20' ) start [2024-12-24 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093087', 'tblTempUsageDetail_20' ) end [2024-12-24 15:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:26:24] Production.INFO: ==32603== Releasing lock... [2024-12-24 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:26:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:27:05 [end_date_ymd] => 2024-12-24 15:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:27:17] Production.INFO: count ==2827 [2024-12-24 15:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:27:05 - End Time 2024-12-24 15:27:05 [2024-12-24 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093092', 'tblTempUsageDetail_20' ) start [2024-12-24 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093092', 'tblTempUsageDetail_20' ) end [2024-12-24 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093092', 'tblTempVendorCDR_20' ) start [2024-12-24 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093092', 'tblTempVendorCDR_20' ) end [2024-12-24 15:27:18] Production.INFO: ProcessCDR(1,14093092,1,1,2) [2024-12-24 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093092', 'tblTempUsageDetail_20' ) start [2024-12-24 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093092', 'tblTempUsageDetail_20' ) end [2024-12-24 15:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:27:21] Production.INFO: ==32682== Releasing lock... [2024-12-24 15:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:27:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:28:05 [end_date_ymd] => 2024-12-24 15:28:05 [RateCDR] => 1 ) [2024-12-24 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:28:05' and `end` < '2024-12-24 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:28:19] Production.INFO: count ==2843 [2024-12-24 15:28:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:28:05 - End Time 2024-12-24 15:28:05 [2024-12-24 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093097', 'tblTempUsageDetail_20' ) start [2024-12-24 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093097', 'tblTempUsageDetail_20' ) end [2024-12-24 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093097', 'tblTempVendorCDR_20' ) start [2024-12-24 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093097', 'tblTempVendorCDR_20' ) end [2024-12-24 15:28:20] Production.INFO: ProcessCDR(1,14093097,1,1,2) [2024-12-24 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093097', 'tblTempUsageDetail_20' ) start [2024-12-24 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093097', 'tblTempUsageDetail_20' ) end [2024-12-24 15:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:28:24] Production.INFO: ==32757== Releasing lock... [2024-12-24 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:28:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:29:04 [end_date_ymd] => 2024-12-24 15:29:04 [RateCDR] => 1 ) [2024-12-24 15:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:29:04' and `end` < '2024-12-24 15:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:29:20] Production.INFO: count ==2846 [2024-12-24 15:29:21] Production.ERROR: pbx CDR StartTime 2024-12-24 12:29:04 - End Time 2024-12-24 15:29:04 [2024-12-24 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093102', 'tblTempUsageDetail_20' ) start [2024-12-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093102', 'tblTempUsageDetail_20' ) end [2024-12-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093102', 'tblTempVendorCDR_20' ) start [2024-12-24 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093102', 'tblTempVendorCDR_20' ) end [2024-12-24 15:29:21] Production.INFO: ProcessCDR(1,14093102,1,1,2) [2024-12-24 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093102', 'tblTempUsageDetail_20' ) start [2024-12-24 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093102', 'tblTempUsageDetail_20' ) end [2024-12-24 15:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:29:25] Production.INFO: ==382== Releasing lock... [2024-12-24 15:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:29:25] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:30:05 [end_date_ymd] => 2024-12-24 15:30:05 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:30:05' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:30:18] Production.INFO: count ==2849 [2024-12-24 15:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:30:05 - End Time 2024-12-24 15:30:05 [2024-12-24 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093107', 'tblTempUsageDetail_20' ) start [2024-12-24 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093107', 'tblTempUsageDetail_20' ) end [2024-12-24 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093107', 'tblTempVendorCDR_20' ) start [2024-12-24 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093107', 'tblTempVendorCDR_20' ) end [2024-12-24 15:30:19] Production.INFO: ProcessCDR(1,14093107,1,1,2) [2024-12-24 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093107', 'tblTempUsageDetail_20' ) start [2024-12-24 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093107', 'tblTempUsageDetail_20' ) end [2024-12-24 15:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:30:24] Production.INFO: ==457== Releasing lock... [2024-12-24 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:30:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:31:05 [end_date_ymd] => 2024-12-24 15:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:31:17] Production.INFO: count ==2832 [2024-12-24 15:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:31:05 - End Time 2024-12-24 15:31:05 [2024-12-24 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093113', 'tblTempUsageDetail_20' ) start [2024-12-24 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093113', 'tblTempUsageDetail_20' ) end [2024-12-24 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093113', 'tblTempVendorCDR_20' ) start [2024-12-24 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093113', 'tblTempVendorCDR_20' ) end [2024-12-24 15:31:19] Production.INFO: ProcessCDR(1,14093113,1,1,2) [2024-12-24 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093113', 'tblTempUsageDetail_20' ) start [2024-12-24 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093113', 'tblTempUsageDetail_20' ) end [2024-12-24 15:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:31:23] Production.INFO: ==533== Releasing lock... [2024-12-24 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:31:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:32:05 [end_date_ymd] => 2024-12-24 15:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:32:18] Production.INFO: count ==2904 [2024-12-24 15:32:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:32:05 - End Time 2024-12-24 15:32:05 [2024-12-24 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093118', 'tblTempUsageDetail_20' ) start [2024-12-24 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093118', 'tblTempUsageDetail_20' ) end [2024-12-24 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093118', 'tblTempVendorCDR_20' ) start [2024-12-24 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093118', 'tblTempVendorCDR_20' ) end [2024-12-24 15:32:19] Production.INFO: ProcessCDR(1,14093118,1,1,2) [2024-12-24 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093118', 'tblTempUsageDetail_20' ) start [2024-12-24 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093118', 'tblTempUsageDetail_20' ) end [2024-12-24 15:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:32:23] Production.INFO: ==611== Releasing lock... [2024-12-24 15:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:32:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:33:05 [end_date_ymd] => 2024-12-24 15:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:33:18] Production.INFO: count ==2901 [2024-12-24 15:33:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:33:05 - End Time 2024-12-24 15:33:05 [2024-12-24 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093123', 'tblTempUsageDetail_20' ) start [2024-12-24 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093123', 'tblTempUsageDetail_20' ) end [2024-12-24 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093123', 'tblTempVendorCDR_20' ) start [2024-12-24 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093123', 'tblTempVendorCDR_20' ) end [2024-12-24 15:33:19] Production.INFO: ProcessCDR(1,14093123,1,1,2) [2024-12-24 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093123', 'tblTempUsageDetail_20' ) start [2024-12-24 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093123', 'tblTempUsageDetail_20' ) end [2024-12-24 15:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:33:22] Production.INFO: ==710== Releasing lock... [2024-12-24 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:33:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:34:04 [end_date_ymd] => 2024-12-24 15:34:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:34:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:34:18] Production.INFO: count ==2933 [2024-12-24 15:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:34:04 - End Time 2024-12-24 15:34:04 [2024-12-24 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093128', 'tblTempUsageDetail_20' ) start [2024-12-24 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093128', 'tblTempUsageDetail_20' ) end [2024-12-24 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093128', 'tblTempVendorCDR_20' ) start [2024-12-24 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093128', 'tblTempVendorCDR_20' ) end [2024-12-24 15:34:19] Production.INFO: ProcessCDR(1,14093128,1,1,2) [2024-12-24 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093128', 'tblTempUsageDetail_20' ) start [2024-12-24 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093128', 'tblTempUsageDetail_20' ) end [2024-12-24 15:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:34:23] Production.INFO: ==784== Releasing lock... [2024-12-24 15:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:34:23] Production.INFO: 50 MB #Memory Used# [2024-12-24 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:35:04 [end_date_ymd] => 2024-12-24 15:35:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:35:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:35:19] Production.INFO: count ==2919 [2024-12-24 15:35:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:35:04 - End Time 2024-12-24 15:35:04 [2024-12-24 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093133', 'tblTempUsageDetail_20' ) start [2024-12-24 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093133', 'tblTempUsageDetail_20' ) end [2024-12-24 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093133', 'tblTempVendorCDR_20' ) start [2024-12-24 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093133', 'tblTempVendorCDR_20' ) end [2024-12-24 15:35:20] Production.INFO: ProcessCDR(1,14093133,1,1,2) [2024-12-24 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093133', 'tblTempUsageDetail_20' ) start [2024-12-24 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093133', 'tblTempUsageDetail_20' ) end [2024-12-24 15:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:35:24] Production.INFO: ==859== Releasing lock... [2024-12-24 15:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:35:24] Production.INFO: 50 MB #Memory Used# [2024-12-24 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:36:05 [end_date_ymd] => 2024-12-24 15:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:36:17] Production.INFO: count ==2902 [2024-12-24 15:36:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:36:05 - End Time 2024-12-24 15:36:05 [2024-12-24 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093138', 'tblTempUsageDetail_20' ) start [2024-12-24 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093138', 'tblTempUsageDetail_20' ) end [2024-12-24 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093138', 'tblTempVendorCDR_20' ) start [2024-12-24 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093138', 'tblTempVendorCDR_20' ) end [2024-12-24 15:36:18] Production.INFO: ProcessCDR(1,14093138,1,1,2) [2024-12-24 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093138', 'tblTempUsageDetail_20' ) start [2024-12-24 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093138', 'tblTempUsageDetail_20' ) end [2024-12-24 15:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:36:21] Production.INFO: ==930== Releasing lock... [2024-12-24 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:36:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:37:05 [end_date_ymd] => 2024-12-24 15:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:37:18] Production.INFO: count ==2906 [2024-12-24 15:37:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:37:05 - End Time 2024-12-24 15:37:05 [2024-12-24 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093143', 'tblTempUsageDetail_20' ) start [2024-12-24 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093143', 'tblTempUsageDetail_20' ) end [2024-12-24 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093143', 'tblTempVendorCDR_20' ) start [2024-12-24 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093143', 'tblTempVendorCDR_20' ) end [2024-12-24 15:37:19] Production.INFO: ProcessCDR(1,14093143,1,1,2) [2024-12-24 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093143', 'tblTempUsageDetail_20' ) start [2024-12-24 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093143', 'tblTempUsageDetail_20' ) end [2024-12-24 15:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:37:24] Production.INFO: ==1002== Releasing lock... [2024-12-24 15:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:37:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:38:05 [end_date_ymd] => 2024-12-24 15:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:38:18] Production.INFO: count ==2915 [2024-12-24 15:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:38:05 - End Time 2024-12-24 15:38:05 [2024-12-24 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093148', 'tblTempUsageDetail_20' ) start [2024-12-24 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093148', 'tblTempUsageDetail_20' ) end [2024-12-24 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093148', 'tblTempVendorCDR_20' ) start [2024-12-24 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093148', 'tblTempVendorCDR_20' ) end [2024-12-24 15:38:19] Production.INFO: ProcessCDR(1,14093148,1,1,2) [2024-12-24 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093148', 'tblTempUsageDetail_20' ) start [2024-12-24 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093148', 'tblTempUsageDetail_20' ) end [2024-12-24 15:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:38:24] Production.INFO: ==1074== Releasing lock... [2024-12-24 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:38:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:39:05 [end_date_ymd] => 2024-12-24 15:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:39:18] Production.INFO: count ==2926 [2024-12-24 15:39:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:39:05 - End Time 2024-12-24 15:39:05 [2024-12-24 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093153', 'tblTempUsageDetail_20' ) start [2024-12-24 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093153', 'tblTempUsageDetail_20' ) end [2024-12-24 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093153', 'tblTempVendorCDR_20' ) start [2024-12-24 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093153', 'tblTempVendorCDR_20' ) end [2024-12-24 15:39:19] Production.INFO: ProcessCDR(1,14093153,1,1,2) [2024-12-24 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093153', 'tblTempUsageDetail_20' ) start [2024-12-24 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093153', 'tblTempUsageDetail_20' ) end [2024-12-24 15:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:39:23] Production.INFO: ==1149== Releasing lock... [2024-12-24 15:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:39:23] Production.INFO: 50 MB #Memory Used# [2024-12-24 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:40:06 [end_date_ymd] => 2024-12-24 15:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:40:20] Production.INFO: count ==2919 [2024-12-24 15:40:21] Production.ERROR: pbx CDR StartTime 2024-12-24 12:40:06 - End Time 2024-12-24 15:40:06 [2024-12-24 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093159', 'tblTempUsageDetail_20' ) start [2024-12-24 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093159', 'tblTempUsageDetail_20' ) end [2024-12-24 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093159', 'tblTempVendorCDR_20' ) start [2024-12-24 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093159', 'tblTempVendorCDR_20' ) end [2024-12-24 15:40:21] Production.INFO: ProcessCDR(1,14093159,1,1,2) [2024-12-24 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093159', 'tblTempUsageDetail_20' ) start [2024-12-24 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093159', 'tblTempUsageDetail_20' ) end [2024-12-24 15:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:40:26] Production.INFO: ==1227== Releasing lock... [2024-12-24 15:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:40:26] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:41:04 [end_date_ymd] => 2024-12-24 15:41:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:41:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:41:17] Production.INFO: count ==2905 [2024-12-24 15:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:41:04 - End Time 2024-12-24 15:41:04 [2024-12-24 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093164', 'tblTempUsageDetail_20' ) start [2024-12-24 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093164', 'tblTempUsageDetail_20' ) end [2024-12-24 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093164', 'tblTempVendorCDR_20' ) start [2024-12-24 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093164', 'tblTempVendorCDR_20' ) end [2024-12-24 15:41:18] Production.INFO: ProcessCDR(1,14093164,1,1,2) [2024-12-24 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093164', 'tblTempUsageDetail_20' ) start [2024-12-24 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093164', 'tblTempUsageDetail_20' ) end [2024-12-24 15:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:41:23] Production.INFO: ==1354== Releasing lock... [2024-12-24 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:41:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:42:05 [end_date_ymd] => 2024-12-24 15:42:05 [RateCDR] => 1 ) [2024-12-24 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:42:05' and `end` < '2024-12-24 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:42:18] Production.INFO: count ==2893 [2024-12-24 15:42:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:42:05 - End Time 2024-12-24 15:42:05 [2024-12-24 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093169', 'tblTempUsageDetail_20' ) start [2024-12-24 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093169', 'tblTempUsageDetail_20' ) end [2024-12-24 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093169', 'tblTempVendorCDR_20' ) start [2024-12-24 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093169', 'tblTempVendorCDR_20' ) end [2024-12-24 15:42:19] Production.INFO: ProcessCDR(1,14093169,1,1,2) [2024-12-24 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093169', 'tblTempUsageDetail_20' ) start [2024-12-24 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093169', 'tblTempUsageDetail_20' ) end [2024-12-24 15:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:42:24] Production.INFO: ==1429== Releasing lock... [2024-12-24 15:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:42:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:43:04 [end_date_ymd] => 2024-12-24 15:43:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:43:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:43:17] Production.INFO: count ==2880 [2024-12-24 15:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:43:04 - End Time 2024-12-24 15:43:04 [2024-12-24 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093174', 'tblTempUsageDetail_20' ) start [2024-12-24 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093174', 'tblTempUsageDetail_20' ) end [2024-12-24 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093174', 'tblTempVendorCDR_20' ) start [2024-12-24 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093174', 'tblTempVendorCDR_20' ) end [2024-12-24 15:43:18] Production.INFO: ProcessCDR(1,14093174,1,1,2) [2024-12-24 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093174', 'tblTempUsageDetail_20' ) start [2024-12-24 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093174', 'tblTempUsageDetail_20' ) end [2024-12-24 15:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:43:23] Production.INFO: ==1500== Releasing lock... [2024-12-24 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:43:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:44:05 [end_date_ymd] => 2024-12-24 15:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:44:19] Production.INFO: count ==2881 [2024-12-24 15:44:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:44:05 - End Time 2024-12-24 15:44:05 [2024-12-24 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093179', 'tblTempUsageDetail_20' ) start [2024-12-24 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093179', 'tblTempUsageDetail_20' ) end [2024-12-24 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093179', 'tblTempVendorCDR_20' ) start [2024-12-24 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093179', 'tblTempVendorCDR_20' ) end [2024-12-24 15:44:20] Production.INFO: ProcessCDR(1,14093179,1,1,2) [2024-12-24 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093179', 'tblTempUsageDetail_20' ) start [2024-12-24 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093179', 'tblTempUsageDetail_20' ) end [2024-12-24 15:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:44:24] Production.INFO: ==1608== Releasing lock... [2024-12-24 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:44:24] Production.INFO: 50 MB #Memory Used# [2024-12-24 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:45:05 [end_date_ymd] => 2024-12-24 15:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:45:18] Production.INFO: count ==2893 [2024-12-24 15:45:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:45:05 - End Time 2024-12-24 15:45:05 [2024-12-24 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093184', 'tblTempUsageDetail_20' ) start [2024-12-24 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093184', 'tblTempUsageDetail_20' ) end [2024-12-24 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093184', 'tblTempVendorCDR_20' ) start [2024-12-24 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093184', 'tblTempVendorCDR_20' ) end [2024-12-24 15:45:19] Production.INFO: ProcessCDR(1,14093184,1,1,2) [2024-12-24 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093184', 'tblTempUsageDetail_20' ) start [2024-12-24 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093184', 'tblTempUsageDetail_20' ) end [2024-12-24 15:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:45:24] Production.INFO: ==1678== Releasing lock... [2024-12-24 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:45:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:46:04 [end_date_ymd] => 2024-12-24 15:46:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:46:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:46:19] Production.INFO: count ==2877 [2024-12-24 15:46:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:46:04 - End Time 2024-12-24 15:46:04 [2024-12-24 15:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093189', 'tblTempUsageDetail_20' ) start [2024-12-24 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093189', 'tblTempUsageDetail_20' ) end [2024-12-24 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093189', 'tblTempVendorCDR_20' ) start [2024-12-24 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093189', 'tblTempVendorCDR_20' ) end [2024-12-24 15:46:20] Production.INFO: ProcessCDR(1,14093189,1,1,2) [2024-12-24 15:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093189', 'tblTempUsageDetail_20' ) start [2024-12-24 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093189', 'tblTempUsageDetail_20' ) end [2024-12-24 15:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:46:24] Production.INFO: ==1753== Releasing lock... [2024-12-24 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:46:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:47:05 [end_date_ymd] => 2024-12-24 15:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:47:18] Production.INFO: count ==2863 [2024-12-24 15:47:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:47:05 - End Time 2024-12-24 15:47:05 [2024-12-24 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093194', 'tblTempUsageDetail_20' ) start [2024-12-24 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093194', 'tblTempUsageDetail_20' ) end [2024-12-24 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093194', 'tblTempVendorCDR_20' ) start [2024-12-24 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093194', 'tblTempVendorCDR_20' ) end [2024-12-24 15:47:19] Production.INFO: ProcessCDR(1,14093194,1,1,2) [2024-12-24 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093194', 'tblTempUsageDetail_20' ) start [2024-12-24 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093194', 'tblTempUsageDetail_20' ) end [2024-12-24 15:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:47:23] Production.INFO: ==1830== Releasing lock... [2024-12-24 15:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:47:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:48:04 [end_date_ymd] => 2024-12-24 15:48:04 [RateCDR] => 1 ) [2024-12-24 15:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:48:04' and `end` < '2024-12-24 15:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:48:17] Production.INFO: count ==2860 [2024-12-24 15:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:48:04 - End Time 2024-12-24 15:48:04 [2024-12-24 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093199', 'tblTempUsageDetail_20' ) start [2024-12-24 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093199', 'tblTempUsageDetail_20' ) end [2024-12-24 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093199', 'tblTempVendorCDR_20' ) start [2024-12-24 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093199', 'tblTempVendorCDR_20' ) end [2024-12-24 15:48:18] Production.INFO: ProcessCDR(1,14093199,1,1,2) [2024-12-24 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093199', 'tblTempUsageDetail_20' ) start [2024-12-24 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093199', 'tblTempUsageDetail_20' ) end [2024-12-24 15:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:48:22] Production.INFO: ==1900== Releasing lock... [2024-12-24 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:48:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:49:04 [end_date_ymd] => 2024-12-24 15:49:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:49:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:49:17] Production.INFO: count ==2854 [2024-12-24 15:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:49:04 - End Time 2024-12-24 15:49:04 [2024-12-24 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093204', 'tblTempUsageDetail_20' ) start [2024-12-24 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093204', 'tblTempUsageDetail_20' ) end [2024-12-24 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093204', 'tblTempVendorCDR_20' ) start [2024-12-24 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093204', 'tblTempVendorCDR_20' ) end [2024-12-24 15:49:18] Production.INFO: ProcessCDR(1,14093204,1,1,2) [2024-12-24 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093204', 'tblTempUsageDetail_20' ) start [2024-12-24 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093204', 'tblTempUsageDetail_20' ) end [2024-12-24 15:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:49:22] Production.INFO: ==1975== Releasing lock... [2024-12-24 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:49:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:50:06 [end_date_ymd] => 2024-12-24 15:50:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:50:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:50:18] Production.INFO: count ==2852 [2024-12-24 15:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:50:06 - End Time 2024-12-24 15:50:06 [2024-12-24 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093210', 'tblTempUsageDetail_20' ) start [2024-12-24 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093210', 'tblTempUsageDetail_20' ) end [2024-12-24 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093210', 'tblTempVendorCDR_20' ) start [2024-12-24 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093210', 'tblTempVendorCDR_20' ) end [2024-12-24 15:50:20] Production.INFO: ProcessCDR(1,14093210,1,1,2) [2024-12-24 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093210', 'tblTempUsageDetail_20' ) start [2024-12-24 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093210', 'tblTempUsageDetail_20' ) end [2024-12-24 15:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:50:24] Production.INFO: ==2048== Releasing lock... [2024-12-24 15:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:50:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:51:04 [end_date_ymd] => 2024-12-24 15:51:04 [RateCDR] => 1 ) [2024-12-24 15:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:51:04' and `end` < '2024-12-24 15:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:51:18] Production.INFO: count ==2837 [2024-12-24 15:51:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:51:04 - End Time 2024-12-24 15:51:04 [2024-12-24 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093215', 'tblTempUsageDetail_20' ) start [2024-12-24 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093215', 'tblTempUsageDetail_20' ) end [2024-12-24 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093215', 'tblTempVendorCDR_20' ) start [2024-12-24 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093215', 'tblTempVendorCDR_20' ) end [2024-12-24 15:51:19] Production.INFO: ProcessCDR(1,14093215,1,1,2) [2024-12-24 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093215', 'tblTempUsageDetail_20' ) start [2024-12-24 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093215', 'tblTempUsageDetail_20' ) end [2024-12-24 15:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:51:24] Production.INFO: ==2121== Releasing lock... [2024-12-24 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:51:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:52:05 [end_date_ymd] => 2024-12-24 15:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:52:19] Production.INFO: count ==2834 [2024-12-24 15:52:20] Production.ERROR: pbx CDR StartTime 2024-12-24 12:52:05 - End Time 2024-12-24 15:52:05 [2024-12-24 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093220', 'tblTempUsageDetail_20' ) start [2024-12-24 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093220', 'tblTempUsageDetail_20' ) end [2024-12-24 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093220', 'tblTempVendorCDR_20' ) start [2024-12-24 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093220', 'tblTempVendorCDR_20' ) end [2024-12-24 15:52:20] Production.INFO: ProcessCDR(1,14093220,1,1,2) [2024-12-24 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093220', 'tblTempUsageDetail_20' ) start [2024-12-24 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093220', 'tblTempUsageDetail_20' ) end [2024-12-24 15:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:52:24] Production.INFO: ==2197== Releasing lock... [2024-12-24 15:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:52:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:53:04 [end_date_ymd] => 2024-12-24 15:53:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:53:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:53:17] Production.INFO: count ==2833 [2024-12-24 15:53:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:53:04 - End Time 2024-12-24 15:53:04 [2024-12-24 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093225', 'tblTempUsageDetail_20' ) start [2024-12-24 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093225', 'tblTempUsageDetail_20' ) end [2024-12-24 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093225', 'tblTempVendorCDR_20' ) start [2024-12-24 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093225', 'tblTempVendorCDR_20' ) end [2024-12-24 15:53:18] Production.INFO: ProcessCDR(1,14093225,1,1,2) [2024-12-24 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093225', 'tblTempUsageDetail_20' ) start [2024-12-24 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093225', 'tblTempUsageDetail_20' ) end [2024-12-24 15:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:53:22] Production.INFO: ==2268== Releasing lock... [2024-12-24 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:53:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:54:05 [end_date_ymd] => 2024-12-24 15:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:54:18] Production.INFO: count ==2825 [2024-12-24 15:54:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:54:05 - End Time 2024-12-24 15:54:05 [2024-12-24 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093230', 'tblTempUsageDetail_20' ) start [2024-12-24 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093230', 'tblTempUsageDetail_20' ) end [2024-12-24 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093230', 'tblTempVendorCDR_20' ) start [2024-12-24 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093230', 'tblTempVendorCDR_20' ) end [2024-12-24 15:54:19] Production.INFO: ProcessCDR(1,14093230,1,1,2) [2024-12-24 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093230', 'tblTempUsageDetail_20' ) start [2024-12-24 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093230', 'tblTempUsageDetail_20' ) end [2024-12-24 15:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:54:22] Production.INFO: ==2342== Releasing lock... [2024-12-24 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:54:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:55:05 [end_date_ymd] => 2024-12-24 15:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:55:18] Production.INFO: count ==2821 [2024-12-24 15:55:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:55:05 - End Time 2024-12-24 15:55:05 [2024-12-24 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093235', 'tblTempUsageDetail_20' ) start [2024-12-24 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093235', 'tblTempUsageDetail_20' ) end [2024-12-24 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093235', 'tblTempVendorCDR_20' ) start [2024-12-24 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093235', 'tblTempVendorCDR_20' ) end [2024-12-24 15:55:19] Production.INFO: ProcessCDR(1,14093235,1,1,2) [2024-12-24 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093235', 'tblTempUsageDetail_20' ) start [2024-12-24 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093235', 'tblTempUsageDetail_20' ) end [2024-12-24 15:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:55:23] Production.INFO: ==2413== Releasing lock... [2024-12-24 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:55:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 15:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:56:04 [end_date_ymd] => 2024-12-24 15:56:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:56:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:56:17] Production.INFO: count ==2826 [2024-12-24 15:56:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:56:04 - End Time 2024-12-24 15:56:04 [2024-12-24 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093240', 'tblTempUsageDetail_20' ) start [2024-12-24 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093240', 'tblTempUsageDetail_20' ) end [2024-12-24 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093240', 'tblTempVendorCDR_20' ) start [2024-12-24 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093240', 'tblTempVendorCDR_20' ) end [2024-12-24 15:56:18] Production.INFO: ProcessCDR(1,14093240,1,1,2) [2024-12-24 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093240', 'tblTempUsageDetail_20' ) start [2024-12-24 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093240', 'tblTempUsageDetail_20' ) end [2024-12-24 15:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:56:23] Production.INFO: ==2488== Releasing lock... [2024-12-24 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:56:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:57:05 [end_date_ymd] => 2024-12-24 15:57:05 [RateCDR] => 1 ) [2024-12-24 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 12:57:05' and `end` < '2024-12-24 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 15:57:17] Production.INFO: count ==2796 [2024-12-24 15:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 12:57:05 - End Time 2024-12-24 15:57:05 [2024-12-24 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093245', 'tblTempUsageDetail_20' ) start [2024-12-24 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093245', 'tblTempUsageDetail_20' ) end [2024-12-24 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093245', 'tblTempVendorCDR_20' ) start [2024-12-24 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093245', 'tblTempVendorCDR_20' ) end [2024-12-24 15:57:19] Production.INFO: ProcessCDR(1,14093245,1,1,2) [2024-12-24 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093245', 'tblTempUsageDetail_20' ) start [2024-12-24 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093245', 'tblTempUsageDetail_20' ) end [2024-12-24 15:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:57:23] Production.INFO: ==2601== Releasing lock... [2024-12-24 15:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:57:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:58:05 [end_date_ymd] => 2024-12-24 15:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 12:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 15:58:18] Production.INFO: count ==2795 [2024-12-24 15:58:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:58:05 - End Time 2024-12-24 15:58:05 [2024-12-24 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093250', 'tblTempUsageDetail_20' ) start [2024-12-24 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093250', 'tblTempUsageDetail_20' ) end [2024-12-24 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093250', 'tblTempVendorCDR_20' ) start [2024-12-24 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093250', 'tblTempVendorCDR_20' ) end [2024-12-24 15:58:19] Production.INFO: ProcessCDR(1,14093250,1,1,2) [2024-12-24 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093250', 'tblTempUsageDetail_20' ) start [2024-12-24 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093250', 'tblTempUsageDetail_20' ) end [2024-12-24 15:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:58:23] Production.INFO: ==2676== Releasing lock... [2024-12-24 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:58:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 12:59:04 [end_date_ymd] => 2024-12-24 15:59:04 [RateCDR] => 1 ) [2024-12-24 15: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` >= '2024-12-24 12:59:04' and `end` < '2024-12-24 15: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 ,'') [2024-12-24 15:59:18] Production.INFO: count ==2778 [2024-12-24 15:59:19] Production.ERROR: pbx CDR StartTime 2024-12-24 12:59:04 - End Time 2024-12-24 15:59:04 [2024-12-24 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093255', 'tblTempUsageDetail_20' ) start [2024-12-24 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093255', 'tblTempUsageDetail_20' ) end [2024-12-24 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093255', 'tblTempVendorCDR_20' ) start [2024-12-24 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093255', 'tblTempVendorCDR_20' ) end [2024-12-24 15:59:19] Production.INFO: ProcessCDR(1,14093255,1,1,2) [2024-12-24 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093255', 'tblTempUsageDetail_20' ) start [2024-12-24 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093255', 'tblTempUsageDetail_20' ) end [2024-12-24 15:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 15:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 15:59:24] Production.INFO: ==2750== Releasing lock... [2024-12-24 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 15:59:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:00:06 [end_date_ymd] => 2024-12-24 16:00:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:00:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:00:19] Production.INFO: count ==2782 [2024-12-24 16:00:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:00:06 - End Time 2024-12-24 16:00:06 [2024-12-24 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093261', 'tblTempUsageDetail_20' ) start [2024-12-24 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093261', 'tblTempUsageDetail_20' ) end [2024-12-24 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093261', 'tblTempVendorCDR_20' ) start [2024-12-24 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093261', 'tblTempVendorCDR_20' ) end [2024-12-24 16:00:20] Production.INFO: ProcessCDR(1,14093261,1,1,2) [2024-12-24 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093261', 'tblTempUsageDetail_20' ) start [2024-12-24 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093261', 'tblTempUsageDetail_20' ) end [2024-12-24 16:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:00:23] Production.INFO: ==2826== Releasing lock... [2024-12-24 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:00:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:01:04 [end_date_ymd] => 2024-12-24 16:01:04 [RateCDR] => 1 ) [2024-12-24 16:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:01:04' and `end` < '2024-12-24 16:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:01:17] Production.INFO: count ==2777 [2024-12-24 16:01:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:01:04 - End Time 2024-12-24 16:01:04 [2024-12-24 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093266', 'tblTempUsageDetail_20' ) start [2024-12-24 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093266', 'tblTempUsageDetail_20' ) end [2024-12-24 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093266', 'tblTempVendorCDR_20' ) start [2024-12-24 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093266', 'tblTempVendorCDR_20' ) end [2024-12-24 16:01:18] Production.INFO: ProcessCDR(1,14093266,1,1,2) [2024-12-24 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093266', 'tblTempUsageDetail_20' ) start [2024-12-24 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093266', 'tblTempUsageDetail_20' ) end [2024-12-24 16:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:01:21] Production.INFO: ==2910== Releasing lock... [2024-12-24 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:01:21] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:02:05 [end_date_ymd] => 2024-12-24 16:02:05 [RateCDR] => 1 ) [2024-12-24 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:02:05' and `end` < '2024-12-24 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:02:18] Production.INFO: count ==2813 [2024-12-24 16:02:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:02:05 - End Time 2024-12-24 16:02:05 [2024-12-24 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093271', 'tblTempUsageDetail_20' ) start [2024-12-24 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093271', 'tblTempUsageDetail_20' ) end [2024-12-24 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093271', 'tblTempVendorCDR_20' ) start [2024-12-24 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093271', 'tblTempVendorCDR_20' ) end [2024-12-24 16:02:19] Production.INFO: ProcessCDR(1,14093271,1,1,2) [2024-12-24 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093271', 'tblTempUsageDetail_20' ) start [2024-12-24 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093271', 'tblTempUsageDetail_20' ) end [2024-12-24 16:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:02:23] Production.INFO: ==2982== Releasing lock... [2024-12-24 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:02:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:03:04 [end_date_ymd] => 2024-12-24 16:03:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:03:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:03:17] Production.INFO: count ==2829 [2024-12-24 16:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:03:04 - End Time 2024-12-24 16:03:04 [2024-12-24 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093276', 'tblTempUsageDetail_20' ) start [2024-12-24 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093276', 'tblTempUsageDetail_20' ) end [2024-12-24 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093276', 'tblTempVendorCDR_20' ) start [2024-12-24 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093276', 'tblTempVendorCDR_20' ) end [2024-12-24 16:03:18] Production.INFO: ProcessCDR(1,14093276,1,1,2) [2024-12-24 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093276', 'tblTempUsageDetail_20' ) start [2024-12-24 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093276', 'tblTempUsageDetail_20' ) end [2024-12-24 16:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:03:23] Production.INFO: ==3056== Releasing lock... [2024-12-24 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:03:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:04:05 [end_date_ymd] => 2024-12-24 16:04:05 [RateCDR] => 1 ) [2024-12-24 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:04:05' and `end` < '2024-12-24 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:04:18] Production.INFO: count ==2870 [2024-12-24 16:04:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:04:05 - End Time 2024-12-24 16:04:05 [2024-12-24 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093281', 'tblTempUsageDetail_20' ) start [2024-12-24 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093281', 'tblTempUsageDetail_20' ) end [2024-12-24 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093281', 'tblTempVendorCDR_20' ) start [2024-12-24 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093281', 'tblTempVendorCDR_20' ) end [2024-12-24 16:04:19] Production.INFO: ProcessCDR(1,14093281,1,1,2) [2024-12-24 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093281', 'tblTempUsageDetail_20' ) start [2024-12-24 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093281', 'tblTempUsageDetail_20' ) end [2024-12-24 16:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:04:22] Production.INFO: ==3129== Releasing lock... [2024-12-24 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:04:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:05:05 [end_date_ymd] => 2024-12-24 16:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:05:18] Production.INFO: count ==2862 [2024-12-24 16:05:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:05:05 - End Time 2024-12-24 16:05:05 [2024-12-24 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093286', 'tblTempUsageDetail_20' ) start [2024-12-24 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093286', 'tblTempUsageDetail_20' ) end [2024-12-24 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093286', 'tblTempVendorCDR_20' ) start [2024-12-24 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093286', 'tblTempVendorCDR_20' ) end [2024-12-24 16:05:19] Production.INFO: ProcessCDR(1,14093286,1,1,2) [2024-12-24 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093286', 'tblTempUsageDetail_20' ) start [2024-12-24 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093286', 'tblTempUsageDetail_20' ) end [2024-12-24 16:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:05:22] Production.INFO: ==3202== Releasing lock... [2024-12-24 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:05:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:06:04 [end_date_ymd] => 2024-12-24 16:06:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:06:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:06:17] Production.INFO: count ==2857 [2024-12-24 16:06:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:06:04 - End Time 2024-12-24 16:06:04 [2024-12-24 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093291', 'tblTempUsageDetail_20' ) start [2024-12-24 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093291', 'tblTempUsageDetail_20' ) end [2024-12-24 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093291', 'tblTempVendorCDR_20' ) start [2024-12-24 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093291', 'tblTempVendorCDR_20' ) end [2024-12-24 16:06:18] Production.INFO: ProcessCDR(1,14093291,1,1,2) [2024-12-24 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093291', 'tblTempUsageDetail_20' ) start [2024-12-24 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093291', 'tblTempUsageDetail_20' ) end [2024-12-24 16:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:06:23] Production.INFO: ==3272== Releasing lock... [2024-12-24 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:06:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:07:05 [end_date_ymd] => 2024-12-24 16:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:07:17] Production.INFO: count ==2852 [2024-12-24 16:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:07:05 - End Time 2024-12-24 16:07:05 [2024-12-24 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093296', 'tblTempUsageDetail_20' ) start [2024-12-24 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093296', 'tblTempUsageDetail_20' ) end [2024-12-24 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093296', 'tblTempVendorCDR_20' ) start [2024-12-24 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093296', 'tblTempVendorCDR_20' ) end [2024-12-24 16:07:19] Production.INFO: ProcessCDR(1,14093296,1,1,2) [2024-12-24 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093296', 'tblTempUsageDetail_20' ) start [2024-12-24 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093296', 'tblTempUsageDetail_20' ) end [2024-12-24 16:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:07:23] Production.INFO: ==3343== Releasing lock... [2024-12-24 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:07:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:08:05 [end_date_ymd] => 2024-12-24 16:08:05 [RateCDR] => 1 ) [2024-12-24 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:08:05' and `end` < '2024-12-24 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:08:18] Production.INFO: count ==2845 [2024-12-24 16:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:08:05 - End Time 2024-12-24 16:08:05 [2024-12-24 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093301', 'tblTempUsageDetail_20' ) start [2024-12-24 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093301', 'tblTempUsageDetail_20' ) end [2024-12-24 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093301', 'tblTempVendorCDR_20' ) start [2024-12-24 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093301', 'tblTempVendorCDR_20' ) end [2024-12-24 16:08:19] Production.INFO: ProcessCDR(1,14093301,1,1,2) [2024-12-24 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093301', 'tblTempUsageDetail_20' ) start [2024-12-24 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093301', 'tblTempUsageDetail_20' ) end [2024-12-24 16:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:08:22] Production.INFO: ==3413== Releasing lock... [2024-12-24 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:08:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:09:05 [end_date_ymd] => 2024-12-24 16:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:09:18] Production.INFO: count ==2839 [2024-12-24 16:09:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:09:05 - End Time 2024-12-24 16:09:05 [2024-12-24 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093306', 'tblTempUsageDetail_20' ) start [2024-12-24 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093306', 'tblTempUsageDetail_20' ) end [2024-12-24 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093306', 'tblTempVendorCDR_20' ) start [2024-12-24 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093306', 'tblTempVendorCDR_20' ) end [2024-12-24 16:09:19] Production.INFO: ProcessCDR(1,14093306,1,1,2) [2024-12-24 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093306', 'tblTempUsageDetail_20' ) start [2024-12-24 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093306', 'tblTempUsageDetail_20' ) end [2024-12-24 16:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:09:23] Production.INFO: ==3507== Releasing lock... [2024-12-24 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:09:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:10:05 [end_date_ymd] => 2024-12-24 16:10:05 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:10:05' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:10:18] Production.INFO: count ==2835 [2024-12-24 16:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:10:05 - End Time 2024-12-24 16:10:05 [2024-12-24 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093312', 'tblTempUsageDetail_20' ) start [2024-12-24 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093312', 'tblTempUsageDetail_20' ) end [2024-12-24 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093312', 'tblTempVendorCDR_20' ) start [2024-12-24 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093312', 'tblTempVendorCDR_20' ) end [2024-12-24 16:10:19] Production.INFO: ProcessCDR(1,14093312,1,1,2) [2024-12-24 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093312', 'tblTempUsageDetail_20' ) start [2024-12-24 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093312', 'tblTempUsageDetail_20' ) end [2024-12-24 16:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:10:22] Production.INFO: ==3582== Releasing lock... [2024-12-24 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:10:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:11:04 [end_date_ymd] => 2024-12-24 16:11:04 [RateCDR] => 1 ) [2024-12-24 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:11:04' and `end` < '2024-12-24 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:11:18] Production.INFO: count ==2809 [2024-12-24 16:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:11:04 - End Time 2024-12-24 16:11:04 [2024-12-24 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093317', 'tblTempUsageDetail_20' ) start [2024-12-24 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093317', 'tblTempUsageDetail_20' ) end [2024-12-24 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093317', 'tblTempVendorCDR_20' ) start [2024-12-24 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093317', 'tblTempVendorCDR_20' ) end [2024-12-24 16:11:19] Production.INFO: ProcessCDR(1,14093317,1,1,2) [2024-12-24 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093317', 'tblTempUsageDetail_20' ) start [2024-12-24 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093317', 'tblTempUsageDetail_20' ) end [2024-12-24 16:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:11:24] Production.INFO: ==3654== Releasing lock... [2024-12-24 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:11:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:12:05 [end_date_ymd] => 2024-12-24 16:12:05 [RateCDR] => 1 ) [2024-12-24 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:12:05' and `end` < '2024-12-24 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:12:18] Production.INFO: count ==2806 [2024-12-24 16:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:12:05 - End Time 2024-12-24 16:12:05 [2024-12-24 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093322', 'tblTempUsageDetail_20' ) start [2024-12-24 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093322', 'tblTempUsageDetail_20' ) end [2024-12-24 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093322', 'tblTempVendorCDR_20' ) start [2024-12-24 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093322', 'tblTempVendorCDR_20' ) end [2024-12-24 16:12:19] Production.INFO: ProcessCDR(1,14093322,1,1,2) [2024-12-24 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093322', 'tblTempUsageDetail_20' ) start [2024-12-24 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093322', 'tblTempUsageDetail_20' ) end [2024-12-24 16:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:12:22] Production.INFO: ==3768== Releasing lock... [2024-12-24 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:12:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:13:04 [end_date_ymd] => 2024-12-24 16:13:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:13:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:13:17] Production.INFO: count ==2802 [2024-12-24 16:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:13:04 - End Time 2024-12-24 16:13:04 [2024-12-24 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093327', 'tblTempUsageDetail_20' ) start [2024-12-24 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093327', 'tblTempUsageDetail_20' ) end [2024-12-24 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093327', 'tblTempVendorCDR_20' ) start [2024-12-24 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093327', 'tblTempVendorCDR_20' ) end [2024-12-24 16:13:18] Production.INFO: ProcessCDR(1,14093327,1,1,2) [2024-12-24 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093327', 'tblTempUsageDetail_20' ) start [2024-12-24 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093327', 'tblTempUsageDetail_20' ) end [2024-12-24 16:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:13:21] Production.INFO: ==3842== Releasing lock... [2024-12-24 16:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:13:21] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:14:05 [end_date_ymd] => 2024-12-24 16:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:14:18] Production.INFO: count ==2807 [2024-12-24 16:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:14:05 - End Time 2024-12-24 16:14:05 [2024-12-24 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093332', 'tblTempUsageDetail_20' ) start [2024-12-24 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093332', 'tblTempUsageDetail_20' ) end [2024-12-24 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093332', 'tblTempVendorCDR_20' ) start [2024-12-24 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093332', 'tblTempVendorCDR_20' ) end [2024-12-24 16:14:19] Production.INFO: ProcessCDR(1,14093332,1,1,2) [2024-12-24 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093332', 'tblTempUsageDetail_20' ) start [2024-12-24 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093332', 'tblTempUsageDetail_20' ) end [2024-12-24 16:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:14:23] Production.INFO: ==3912== Releasing lock... [2024-12-24 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:14:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:15:04 [end_date_ymd] => 2024-12-24 16:15:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:15:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:15:17] Production.INFO: count ==2798 [2024-12-24 16:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:15:04 - End Time 2024-12-24 16:15:04 [2024-12-24 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093337', 'tblTempUsageDetail_20' ) start [2024-12-24 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093337', 'tblTempUsageDetail_20' ) end [2024-12-24 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093337', 'tblTempVendorCDR_20' ) start [2024-12-24 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093337', 'tblTempVendorCDR_20' ) end [2024-12-24 16:15:18] Production.INFO: ProcessCDR(1,14093337,1,1,2) [2024-12-24 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093337', 'tblTempUsageDetail_20' ) start [2024-12-24 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093337', 'tblTempUsageDetail_20' ) end [2024-12-24 16:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:15:23] Production.INFO: ==3983== Releasing lock... [2024-12-24 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:15:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:16:05 [end_date_ymd] => 2024-12-24 16:16:05 [RateCDR] => 1 ) [2024-12-24 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:16:05' and `end` < '2024-12-24 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:16:18] Production.INFO: count ==2795 [2024-12-24 16:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:16:05 - End Time 2024-12-24 16:16:05 [2024-12-24 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093342', 'tblTempUsageDetail_20' ) start [2024-12-24 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093342', 'tblTempUsageDetail_20' ) end [2024-12-24 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093342', 'tblTempVendorCDR_20' ) start [2024-12-24 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093342', 'tblTempVendorCDR_20' ) end [2024-12-24 16:16:19] Production.INFO: ProcessCDR(1,14093342,1,1,2) [2024-12-24 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093342', 'tblTempUsageDetail_20' ) start [2024-12-24 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093342', 'tblTempUsageDetail_20' ) end [2024-12-24 16:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:16:24] Production.INFO: ==4057== Releasing lock... [2024-12-24 16:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:16:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:17:05 [end_date_ymd] => 2024-12-24 16:17:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:17:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:17:19] Production.INFO: count ==2791 [2024-12-24 16:17:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:17:05 - End Time 2024-12-24 16:17:05 [2024-12-24 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093347', 'tblTempUsageDetail_20' ) start [2024-12-24 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093347', 'tblTempUsageDetail_20' ) end [2024-12-24 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093347', 'tblTempVendorCDR_20' ) start [2024-12-24 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093347', 'tblTempVendorCDR_20' ) end [2024-12-24 16:17:21] Production.INFO: ProcessCDR(1,14093347,1,1,2) [2024-12-24 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093347', 'tblTempUsageDetail_20' ) start [2024-12-24 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093347', 'tblTempUsageDetail_20' ) end [2024-12-24 16:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:17:25] Production.INFO: ==4139== Releasing lock... [2024-12-24 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:17:25] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:18:04 [end_date_ymd] => 2024-12-24 16:18:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:18:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:18:17] Production.INFO: count ==2773 [2024-12-24 16:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:18:04 - End Time 2024-12-24 16:18:04 [2024-12-24 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093352', 'tblTempUsageDetail_20' ) start [2024-12-24 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093352', 'tblTempUsageDetail_20' ) end [2024-12-24 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093352', 'tblTempVendorCDR_20' ) start [2024-12-24 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093352', 'tblTempVendorCDR_20' ) end [2024-12-24 16:18:18] Production.INFO: ProcessCDR(1,14093352,1,1,2) [2024-12-24 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093352', 'tblTempUsageDetail_20' ) start [2024-12-24 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093352', 'tblTempUsageDetail_20' ) end [2024-12-24 16:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:18:21] Production.INFO: ==4207== Releasing lock... [2024-12-24 16:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:18:21] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:19:05 [end_date_ymd] => 2024-12-24 16:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:19:20] Production.INFO: count ==2772 [2024-12-24 16:19:21] Production.ERROR: pbx CDR StartTime 2024-12-24 13:19:05 - End Time 2024-12-24 16:19:05 [2024-12-24 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093357', 'tblTempUsageDetail_20' ) start [2024-12-24 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093357', 'tblTempUsageDetail_20' ) end [2024-12-24 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093357', 'tblTempVendorCDR_20' ) start [2024-12-24 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093357', 'tblTempVendorCDR_20' ) end [2024-12-24 16:19:21] Production.INFO: ProcessCDR(1,14093357,1,1,2) [2024-12-24 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093357', 'tblTempUsageDetail_20' ) start [2024-12-24 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093357', 'tblTempUsageDetail_20' ) end [2024-12-24 16:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:19:25] Production.INFO: ==4280== Releasing lock... [2024-12-24 16:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:19:25] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:20:05 [end_date_ymd] => 2024-12-24 16:20:05 [RateCDR] => 1 ) [2024-12-24 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:20:05' and `end` < '2024-12-24 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:20:18] Production.INFO: count ==2752 [2024-12-24 16:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:20:05 - End Time 2024-12-24 16:20:05 [2024-12-24 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093362', 'tblTempUsageDetail_20' ) start [2024-12-24 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093362', 'tblTempUsageDetail_20' ) end [2024-12-24 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093362', 'tblTempVendorCDR_20' ) start [2024-12-24 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093362', 'tblTempVendorCDR_20' ) end [2024-12-24 16:20:19] Production.INFO: ProcessCDR(1,14093362,1,1,2) [2024-12-24 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093362', 'tblTempUsageDetail_20' ) start [2024-12-24 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093362', 'tblTempUsageDetail_20' ) end [2024-12-24 16:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:20:24] Production.INFO: ==4354== Releasing lock... [2024-12-24 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:20:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:21:05 [end_date_ymd] => 2024-12-24 16:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:21:19] Production.INFO: count ==2739 [2024-12-24 16:21:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:21:05 - End Time 2024-12-24 16:21:05 [2024-12-24 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093368', 'tblTempUsageDetail_20' ) start [2024-12-24 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093368', 'tblTempUsageDetail_20' ) end [2024-12-24 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093368', 'tblTempVendorCDR_20' ) start [2024-12-24 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093368', 'tblTempVendorCDR_20' ) end [2024-12-24 16:21:20] Production.INFO: ProcessCDR(1,14093368,1,1,2) [2024-12-24 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093368', 'tblTempUsageDetail_20' ) start [2024-12-24 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093368', 'tblTempUsageDetail_20' ) end [2024-12-24 16:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:21:25] Production.INFO: ==4426== Releasing lock... [2024-12-24 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:21:25] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:22:05 [end_date_ymd] => 2024-12-24 16:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:22:18] Production.INFO: count ==2732 [2024-12-24 16:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:22:05 - End Time 2024-12-24 16:22:05 [2024-12-24 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093373', 'tblTempUsageDetail_20' ) start [2024-12-24 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093373', 'tblTempUsageDetail_20' ) end [2024-12-24 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093373', 'tblTempVendorCDR_20' ) start [2024-12-24 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093373', 'tblTempVendorCDR_20' ) end [2024-12-24 16:22:19] Production.INFO: ProcessCDR(1,14093373,1,1,2) [2024-12-24 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093373', 'tblTempUsageDetail_20' ) start [2024-12-24 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093373', 'tblTempUsageDetail_20' ) end [2024-12-24 16:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:22:23] Production.INFO: ==4498== Releasing lock... [2024-12-24 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:22:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:23:05 [end_date_ymd] => 2024-12-24 16:23:05 [RateCDR] => 1 ) [2024-12-24 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:23:05' and `end` < '2024-12-24 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:23:19] Production.INFO: count ==2728 [2024-12-24 16:23:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:23:05 - End Time 2024-12-24 16:23:05 [2024-12-24 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093378', 'tblTempUsageDetail_20' ) start [2024-12-24 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093378', 'tblTempUsageDetail_20' ) end [2024-12-24 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093378', 'tblTempVendorCDR_20' ) start [2024-12-24 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093378', 'tblTempVendorCDR_20' ) end [2024-12-24 16:23:20] Production.INFO: ProcessCDR(1,14093378,1,1,2) [2024-12-24 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093378', 'tblTempUsageDetail_20' ) start [2024-12-24 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093378', 'tblTempUsageDetail_20' ) end [2024-12-24 16:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:23:25] Production.INFO: ==4568== Releasing lock... [2024-12-24 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:23:25] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:24:05 [end_date_ymd] => 2024-12-24 16:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:24:18] Production.INFO: count ==2727 [2024-12-24 16:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:24:05 - End Time 2024-12-24 16:24:05 [2024-12-24 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093383', 'tblTempUsageDetail_20' ) start [2024-12-24 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093383', 'tblTempUsageDetail_20' ) end [2024-12-24 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093383', 'tblTempVendorCDR_20' ) start [2024-12-24 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093383', 'tblTempVendorCDR_20' ) end [2024-12-24 16:24:19] Production.INFO: ProcessCDR(1,14093383,1,1,2) [2024-12-24 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093383', 'tblTempUsageDetail_20' ) start [2024-12-24 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093383', 'tblTempUsageDetail_20' ) end [2024-12-24 16:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:24:23] Production.INFO: ==4648== Releasing lock... [2024-12-24 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:24:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:25:04 [end_date_ymd] => 2024-12-24 16:25:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:25:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:25:17] Production.INFO: count ==2706 [2024-12-24 16:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:25:04 - End Time 2024-12-24 16:25:04 [2024-12-24 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093388', 'tblTempUsageDetail_20' ) start [2024-12-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093388', 'tblTempUsageDetail_20' ) end [2024-12-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093388', 'tblTempVendorCDR_20' ) start [2024-12-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093388', 'tblTempVendorCDR_20' ) end [2024-12-24 16:25:18] Production.INFO: ProcessCDR(1,14093388,1,1,2) [2024-12-24 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093388', 'tblTempUsageDetail_20' ) start [2024-12-24 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093388', 'tblTempUsageDetail_20' ) end [2024-12-24 16:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:25:22] Production.INFO: ==4717== Releasing lock... [2024-12-24 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:25:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:26:05 [end_date_ymd] => 2024-12-24 16:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:26:18] Production.INFO: count ==2690 [2024-12-24 16:26:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:26:05 - End Time 2024-12-24 16:26:05 [2024-12-24 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093393', 'tblTempUsageDetail_20' ) start [2024-12-24 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093393', 'tblTempUsageDetail_20' ) end [2024-12-24 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093393', 'tblTempVendorCDR_20' ) start [2024-12-24 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093393', 'tblTempVendorCDR_20' ) end [2024-12-24 16:26:19] Production.INFO: ProcessCDR(1,14093393,1,1,2) [2024-12-24 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093393', 'tblTempUsageDetail_20' ) start [2024-12-24 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093393', 'tblTempUsageDetail_20' ) end [2024-12-24 16:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:26:23] Production.INFO: ==4789== Releasing lock... [2024-12-24 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:26:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:27:04 [end_date_ymd] => 2024-12-24 16:27:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:27:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:27:17] Production.INFO: count ==2693 [2024-12-24 16:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:27:04 - End Time 2024-12-24 16:27:04 [2024-12-24 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093398', 'tblTempUsageDetail_20' ) start [2024-12-24 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093398', 'tblTempUsageDetail_20' ) end [2024-12-24 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093398', 'tblTempVendorCDR_20' ) start [2024-12-24 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093398', 'tblTempVendorCDR_20' ) end [2024-12-24 16:27:18] Production.INFO: ProcessCDR(1,14093398,1,1,2) [2024-12-24 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093398', 'tblTempUsageDetail_20' ) start [2024-12-24 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093398', 'tblTempUsageDetail_20' ) end [2024-12-24 16:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:27:21] Production.INFO: ==4860== Releasing lock... [2024-12-24 16:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:27:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:28:05 [end_date_ymd] => 2024-12-24 16:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:28:18] Production.INFO: count ==2674 [2024-12-24 16:28:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:28:05 - End Time 2024-12-24 16:28:05 [2024-12-24 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093403', 'tblTempUsageDetail_20' ) start [2024-12-24 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093403', 'tblTempUsageDetail_20' ) end [2024-12-24 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093403', 'tblTempVendorCDR_20' ) start [2024-12-24 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093403', 'tblTempVendorCDR_20' ) end [2024-12-24 16:28:19] Production.INFO: ProcessCDR(1,14093403,1,1,2) [2024-12-24 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093403', 'tblTempUsageDetail_20' ) start [2024-12-24 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093403', 'tblTempUsageDetail_20' ) end [2024-12-24 16:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:28:24] Production.INFO: ==4971== Releasing lock... [2024-12-24 16:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:28:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:29:05 [end_date_ymd] => 2024-12-24 16:29:05 [RateCDR] => 1 ) [2024-12-24 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:29:05' and `end` < '2024-12-24 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:29:18] Production.INFO: count ==2658 [2024-12-24 16:29:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:29:05 - End Time 2024-12-24 16:29:05 [2024-12-24 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093408', 'tblTempUsageDetail_20' ) start [2024-12-24 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093408', 'tblTempUsageDetail_20' ) end [2024-12-24 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093408', 'tblTempVendorCDR_20' ) start [2024-12-24 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093408', 'tblTempVendorCDR_20' ) end [2024-12-24 16:29:19] Production.INFO: ProcessCDR(1,14093408,1,1,2) [2024-12-24 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093408', 'tblTempUsageDetail_20' ) start [2024-12-24 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093408', 'tblTempUsageDetail_20' ) end [2024-12-24 16:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:29:24] Production.INFO: ==5048== Releasing lock... [2024-12-24 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:29:24] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:30:05 [end_date_ymd] => 2024-12-24 16:30:05 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:30:05' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:30:18] Production.INFO: count ==2653 [2024-12-24 16:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:30:05 - End Time 2024-12-24 16:30:05 [2024-12-24 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093413', 'tblTempUsageDetail_20' ) start [2024-12-24 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093413', 'tblTempUsageDetail_20' ) end [2024-12-24 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093413', 'tblTempVendorCDR_20' ) start [2024-12-24 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093413', 'tblTempVendorCDR_20' ) end [2024-12-24 16:30:19] Production.INFO: ProcessCDR(1,14093413,1,1,2) [2024-12-24 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093413', 'tblTempUsageDetail_20' ) start [2024-12-24 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093413', 'tblTempUsageDetail_20' ) end [2024-12-24 16:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:30:23] Production.INFO: ==5124== Releasing lock... [2024-12-24 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:30:23] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:31:04 [end_date_ymd] => 2024-12-24 16:31:04 [RateCDR] => 1 ) [2024-12-24 16:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:31:04' and `end` < '2024-12-24 16:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:31:17] Production.INFO: count ==2638 [2024-12-24 16:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:31:04 - End Time 2024-12-24 16:31:04 [2024-12-24 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093419', 'tblTempUsageDetail_20' ) start [2024-12-24 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093419', 'tblTempUsageDetail_20' ) end [2024-12-24 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093419', 'tblTempVendorCDR_20' ) start [2024-12-24 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093419', 'tblTempVendorCDR_20' ) end [2024-12-24 16:31:18] Production.INFO: ProcessCDR(1,14093419,1,1,2) [2024-12-24 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093419', 'tblTempUsageDetail_20' ) start [2024-12-24 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093419', 'tblTempUsageDetail_20' ) end [2024-12-24 16:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:31:23] Production.INFO: ==5203== Releasing lock... [2024-12-24 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:31:23] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:32:04 [end_date_ymd] => 2024-12-24 16:32:04 [RateCDR] => 1 ) [2024-12-24 16:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:32:04' and `end` < '2024-12-24 16:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:32:17] Production.INFO: count ==2634 [2024-12-24 16:32:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:32:04 - End Time 2024-12-24 16:32:04 [2024-12-24 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093424', 'tblTempUsageDetail_20' ) start [2024-12-24 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093424', 'tblTempUsageDetail_20' ) end [2024-12-24 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093424', 'tblTempVendorCDR_20' ) start [2024-12-24 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093424', 'tblTempVendorCDR_20' ) end [2024-12-24 16:32:18] Production.INFO: ProcessCDR(1,14093424,1,1,2) [2024-12-24 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093424', 'tblTempUsageDetail_20' ) start [2024-12-24 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093424', 'tblTempUsageDetail_20' ) end [2024-12-24 16:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:32:21] Production.INFO: ==5282== Releasing lock... [2024-12-24 16:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:32:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:33:05 [end_date_ymd] => 2024-12-24 16:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:33:18] Production.INFO: count ==2632 [2024-12-24 16:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:33:05 - End Time 2024-12-24 16:33:05 [2024-12-24 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093429', 'tblTempUsageDetail_20' ) start [2024-12-24 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093429', 'tblTempUsageDetail_20' ) end [2024-12-24 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093429', 'tblTempVendorCDR_20' ) start [2024-12-24 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093429', 'tblTempVendorCDR_20' ) end [2024-12-24 16:33:19] Production.INFO: ProcessCDR(1,14093429,1,1,2) [2024-12-24 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093429', 'tblTempUsageDetail_20' ) start [2024-12-24 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093429', 'tblTempUsageDetail_20' ) end [2024-12-24 16:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:33:23] Production.INFO: ==5355== Releasing lock... [2024-12-24 16:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:33:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:34:05 [end_date_ymd] => 2024-12-24 16:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:34:18] Production.INFO: count ==2641 [2024-12-24 16:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:34:05 - End Time 2024-12-24 16:34:05 [2024-12-24 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093434', 'tblTempUsageDetail_20' ) start [2024-12-24 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093434', 'tblTempUsageDetail_20' ) end [2024-12-24 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093434', 'tblTempVendorCDR_20' ) start [2024-12-24 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093434', 'tblTempVendorCDR_20' ) end [2024-12-24 16:34:19] Production.INFO: ProcessCDR(1,14093434,1,1,2) [2024-12-24 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093434', 'tblTempUsageDetail_20' ) start [2024-12-24 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093434', 'tblTempUsageDetail_20' ) end [2024-12-24 16:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:34:24] Production.INFO: ==5425== Releasing lock... [2024-12-24 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:34:24] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:35:04 [end_date_ymd] => 2024-12-24 16:35:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:35:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:35:17] Production.INFO: count ==2659 [2024-12-24 16:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:35:04 - End Time 2024-12-24 16:35:04 [2024-12-24 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093439', 'tblTempUsageDetail_20' ) start [2024-12-24 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093439', 'tblTempUsageDetail_20' ) end [2024-12-24 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093439', 'tblTempVendorCDR_20' ) start [2024-12-24 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093439', 'tblTempVendorCDR_20' ) end [2024-12-24 16:35:18] Production.INFO: ProcessCDR(1,14093439,1,1,2) [2024-12-24 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093439', 'tblTempUsageDetail_20' ) start [2024-12-24 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093439', 'tblTempUsageDetail_20' ) end [2024-12-24 16:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:35:23] Production.INFO: ==5497== Releasing lock... [2024-12-24 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:35:23] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:36:05 [end_date_ymd] => 2024-12-24 16:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:36:20] Production.INFO: count ==2656 [2024-12-24 16:36:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:36:05 - End Time 2024-12-24 16:36:05 [2024-12-24 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093444', 'tblTempUsageDetail_20' ) start [2024-12-24 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093444', 'tblTempUsageDetail_20' ) end [2024-12-24 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093444', 'tblTempVendorCDR_20' ) start [2024-12-24 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093444', 'tblTempVendorCDR_20' ) end [2024-12-24 16:36:21] Production.INFO: ProcessCDR(1,14093444,1,1,2) [2024-12-24 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093444', 'tblTempUsageDetail_20' ) start [2024-12-24 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093444', 'tblTempUsageDetail_20' ) end [2024-12-24 16:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:36:24] Production.INFO: ==5569== Releasing lock... [2024-12-24 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:36:24] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:37:04 [end_date_ymd] => 2024-12-24 16:37:04 [RateCDR] => 1 ) [2024-12-24 16:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:37:04' and `end` < '2024-12-24 16:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:37:18] Production.INFO: count ==2686 [2024-12-24 16:37:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:37:04 - End Time 2024-12-24 16:37:04 [2024-12-24 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093449', 'tblTempUsageDetail_20' ) start [2024-12-24 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093449', 'tblTempUsageDetail_20' ) end [2024-12-24 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093449', 'tblTempVendorCDR_20' ) start [2024-12-24 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093449', 'tblTempVendorCDR_20' ) end [2024-12-24 16:37:19] Production.INFO: ProcessCDR(1,14093449,1,1,2) [2024-12-24 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093449', 'tblTempUsageDetail_20' ) start [2024-12-24 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093449', 'tblTempUsageDetail_20' ) end [2024-12-24 16:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:37:23] Production.INFO: ==5640== Releasing lock... [2024-12-24 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:37:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:38:05 [end_date_ymd] => 2024-12-24 16:38:05 [RateCDR] => 1 ) [2024-12-24 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:38:05' and `end` < '2024-12-24 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:38:18] Production.INFO: count ==2669 [2024-12-24 16:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:38:05 - End Time 2024-12-24 16:38:05 [2024-12-24 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093454', 'tblTempUsageDetail_20' ) start [2024-12-24 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093454', 'tblTempUsageDetail_20' ) end [2024-12-24 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093454', 'tblTempVendorCDR_20' ) start [2024-12-24 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093454', 'tblTempVendorCDR_20' ) end [2024-12-24 16:38:19] Production.INFO: ProcessCDR(1,14093454,1,1,2) [2024-12-24 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093454', 'tblTempUsageDetail_20' ) start [2024-12-24 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093454', 'tblTempUsageDetail_20' ) end [2024-12-24 16:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:38:23] Production.INFO: ==5711== Releasing lock... [2024-12-24 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:38:23] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:39:05 [end_date_ymd] => 2024-12-24 16:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:39:18] Production.INFO: count ==2663 [2024-12-24 16:39:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:39:05 - End Time 2024-12-24 16:39:05 [2024-12-24 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093459', 'tblTempUsageDetail_20' ) start [2024-12-24 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093459', 'tblTempUsageDetail_20' ) end [2024-12-24 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093459', 'tblTempVendorCDR_20' ) start [2024-12-24 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093459', 'tblTempVendorCDR_20' ) end [2024-12-24 16:39:19] Production.INFO: ProcessCDR(1,14093459,1,1,2) [2024-12-24 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093459', 'tblTempUsageDetail_20' ) start [2024-12-24 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093459', 'tblTempUsageDetail_20' ) end [2024-12-24 16:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:39:22] Production.INFO: ==5782== Releasing lock... [2024-12-24 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:39:22] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:40:05 [end_date_ymd] => 2024-12-24 16:40:05 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:40:05' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:40:20] Production.INFO: count ==2654 [2024-12-24 16:40:21] Production.ERROR: pbx CDR StartTime 2024-12-24 13:40:05 - End Time 2024-12-24 16:40:05 [2024-12-24 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093465', 'tblTempUsageDetail_20' ) start [2024-12-24 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093465', 'tblTempUsageDetail_20' ) end [2024-12-24 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093465', 'tblTempVendorCDR_20' ) start [2024-12-24 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093465', 'tblTempVendorCDR_20' ) end [2024-12-24 16:40:21] Production.INFO: ProcessCDR(1,14093465,1,1,2) [2024-12-24 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093465', 'tblTempUsageDetail_20' ) start [2024-12-24 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093465', 'tblTempUsageDetail_20' ) end [2024-12-24 16:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:40:25] Production.INFO: ==5857== Releasing lock... [2024-12-24 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:40:25] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:41:05 [end_date_ymd] => 2024-12-24 16:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:41:17] Production.INFO: count ==2636 [2024-12-24 16:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:41:05 - End Time 2024-12-24 16:41:05 [2024-12-24 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093470', 'tblTempUsageDetail_20' ) start [2024-12-24 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093470', 'tblTempUsageDetail_20' ) end [2024-12-24 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093470', 'tblTempVendorCDR_20' ) start [2024-12-24 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093470', 'tblTempVendorCDR_20' ) end [2024-12-24 16:41:18] Production.INFO: ProcessCDR(1,14093470,1,1,2) [2024-12-24 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093470', 'tblTempUsageDetail_20' ) start [2024-12-24 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093470', 'tblTempUsageDetail_20' ) end [2024-12-24 16:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:41:21] Production.INFO: ==5931== Releasing lock... [2024-12-24 16:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:41:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 16:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:42:04 [end_date_ymd] => 2024-12-24 16:42:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:42:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:42:17] Production.INFO: count ==2619 [2024-12-24 16:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:42:04 - End Time 2024-12-24 16:42:04 [2024-12-24 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093475', 'tblTempUsageDetail_20' ) start [2024-12-24 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093475', 'tblTempUsageDetail_20' ) end [2024-12-24 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093475', 'tblTempVendorCDR_20' ) start [2024-12-24 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093475', 'tblTempVendorCDR_20' ) end [2024-12-24 16:42:18] Production.INFO: ProcessCDR(1,14093475,1,1,2) [2024-12-24 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093475', 'tblTempUsageDetail_20' ) start [2024-12-24 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093475', 'tblTempUsageDetail_20' ) end [2024-12-24 16:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:42:21] Production.INFO: ==6001== Releasing lock... [2024-12-24 16:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:42:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:43:04 [end_date_ymd] => 2024-12-24 16:43:04 [RateCDR] => 1 ) [2024-12-24 16:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:43:04' and `end` < '2024-12-24 16:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:43:17] Production.INFO: count ==2623 [2024-12-24 16:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:43:04 - End Time 2024-12-24 16:43:04 [2024-12-24 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093480', 'tblTempUsageDetail_20' ) start [2024-12-24 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093480', 'tblTempUsageDetail_20' ) end [2024-12-24 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093480', 'tblTempVendorCDR_20' ) start [2024-12-24 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093480', 'tblTempVendorCDR_20' ) end [2024-12-24 16:43:18] Production.INFO: ProcessCDR(1,14093480,1,1,2) [2024-12-24 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093480', 'tblTempUsageDetail_20' ) start [2024-12-24 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093480', 'tblTempUsageDetail_20' ) end [2024-12-24 16:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:43:21] Production.INFO: ==6074== Releasing lock... [2024-12-24 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:43:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:44:05 [end_date_ymd] => 2024-12-24 16:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:44:18] Production.INFO: count ==2635 [2024-12-24 16:44:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:44:05 - End Time 2024-12-24 16:44:05 [2024-12-24 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093485', 'tblTempUsageDetail_20' ) start [2024-12-24 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093485', 'tblTempUsageDetail_20' ) end [2024-12-24 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093485', 'tblTempVendorCDR_20' ) start [2024-12-24 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093485', 'tblTempVendorCDR_20' ) end [2024-12-24 16:44:19] Production.INFO: ProcessCDR(1,14093485,1,1,2) [2024-12-24 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093485', 'tblTempUsageDetail_20' ) start [2024-12-24 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093485', 'tblTempUsageDetail_20' ) end [2024-12-24 16:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:44:22] Production.INFO: ==6185== Releasing lock... [2024-12-24 16:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:44:22] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:45:04 [end_date_ymd] => 2024-12-24 16:45:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:45:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:45:17] Production.INFO: count ==2654 [2024-12-24 16:45:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:45:04 - End Time 2024-12-24 16:45:04 [2024-12-24 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093490', 'tblTempUsageDetail_20' ) start [2024-12-24 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093490', 'tblTempUsageDetail_20' ) end [2024-12-24 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093490', 'tblTempVendorCDR_20' ) start [2024-12-24 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093490', 'tblTempVendorCDR_20' ) end [2024-12-24 16:45:18] Production.INFO: ProcessCDR(1,14093490,1,1,2) [2024-12-24 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093490', 'tblTempUsageDetail_20' ) start [2024-12-24 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093490', 'tblTempUsageDetail_20' ) end [2024-12-24 16:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:45:21] Production.INFO: ==6263== Releasing lock... [2024-12-24 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:45:21] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:46:05 [end_date_ymd] => 2024-12-24 16:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:46:18] Production.INFO: count ==2667 [2024-12-24 16:46:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:46:05 - End Time 2024-12-24 16:46:05 [2024-12-24 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093495', 'tblTempUsageDetail_20' ) start [2024-12-24 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093495', 'tblTempUsageDetail_20' ) end [2024-12-24 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093495', 'tblTempVendorCDR_20' ) start [2024-12-24 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093495', 'tblTempVendorCDR_20' ) end [2024-12-24 16:46:19] Production.INFO: ProcessCDR(1,14093495,1,1,2) [2024-12-24 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093495', 'tblTempUsageDetail_20' ) start [2024-12-24 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093495', 'tblTempUsageDetail_20' ) end [2024-12-24 16:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:46:22] Production.INFO: ==6338== Releasing lock... [2024-12-24 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:46:22] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:47:04 [end_date_ymd] => 2024-12-24 16:47:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:47:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:47:19] Production.INFO: count ==2668 [2024-12-24 16:47:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:47:04 - End Time 2024-12-24 16:47:04 [2024-12-24 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093500', 'tblTempUsageDetail_20' ) start [2024-12-24 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093500', 'tblTempUsageDetail_20' ) end [2024-12-24 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093500', 'tblTempVendorCDR_20' ) start [2024-12-24 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093500', 'tblTempVendorCDR_20' ) end [2024-12-24 16:47:20] Production.INFO: ProcessCDR(1,14093500,1,1,2) [2024-12-24 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093500', 'tblTempUsageDetail_20' ) start [2024-12-24 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093500', 'tblTempUsageDetail_20' ) end [2024-12-24 16:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:47:23] Production.INFO: ==6411== Releasing lock... [2024-12-24 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:47:23] Production.INFO: 48 MB #Memory Used# [2024-12-24 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:48:05 [end_date_ymd] => 2024-12-24 16:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:48:18] Production.INFO: count ==2732 [2024-12-24 16:48:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:48:05 - End Time 2024-12-24 16:48:05 [2024-12-24 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093505', 'tblTempUsageDetail_20' ) start [2024-12-24 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093505', 'tblTempUsageDetail_20' ) end [2024-12-24 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093505', 'tblTempVendorCDR_20' ) start [2024-12-24 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093505', 'tblTempVendorCDR_20' ) end [2024-12-24 16:48:19] Production.INFO: ProcessCDR(1,14093505,1,1,2) [2024-12-24 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093505', 'tblTempUsageDetail_20' ) start [2024-12-24 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093505', 'tblTempUsageDetail_20' ) end [2024-12-24 16:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:48:22] Production.INFO: ==6480== Releasing lock... [2024-12-24 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:48:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:49:05 [end_date_ymd] => 2024-12-24 16:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:49:18] Production.INFO: count ==2749 [2024-12-24 16:49:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:49:05 - End Time 2024-12-24 16:49:05 [2024-12-24 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093510', 'tblTempUsageDetail_20' ) start [2024-12-24 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093510', 'tblTempUsageDetail_20' ) end [2024-12-24 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093510', 'tblTempVendorCDR_20' ) start [2024-12-24 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093510', 'tblTempVendorCDR_20' ) end [2024-12-24 16:49:19] Production.INFO: ProcessCDR(1,14093510,1,1,2) [2024-12-24 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093510', 'tblTempUsageDetail_20' ) start [2024-12-24 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093510', 'tblTempUsageDetail_20' ) end [2024-12-24 16:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:49:23] Production.INFO: ==6551== Releasing lock... [2024-12-24 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:49:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:50:05 [end_date_ymd] => 2024-12-24 16:50:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:50:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:50:18] Production.INFO: count ==2760 [2024-12-24 16:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:50:05 - End Time 2024-12-24 16:50:05 [2024-12-24 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093516', 'tblTempUsageDetail_20' ) start [2024-12-24 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093516', 'tblTempUsageDetail_20' ) end [2024-12-24 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093516', 'tblTempVendorCDR_20' ) start [2024-12-24 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093516', 'tblTempVendorCDR_20' ) end [2024-12-24 16:50:19] Production.INFO: ProcessCDR(1,14093516,1,1,2) [2024-12-24 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093516', 'tblTempUsageDetail_20' ) start [2024-12-24 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093516', 'tblTempUsageDetail_20' ) end [2024-12-24 16:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:50:24] Production.INFO: ==6627== Releasing lock... [2024-12-24 16:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:50:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:51:04 [end_date_ymd] => 2024-12-24 16:51:04 [RateCDR] => 1 ) [2024-12-24 16:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:51:04' and `end` < '2024-12-24 16:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:51:17] Production.INFO: count ==2762 [2024-12-24 16:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:51:04 - End Time 2024-12-24 16:51:04 [2024-12-24 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093521', 'tblTempUsageDetail_20' ) start [2024-12-24 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093521', 'tblTempUsageDetail_20' ) end [2024-12-24 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093521', 'tblTempVendorCDR_20' ) start [2024-12-24 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093521', 'tblTempVendorCDR_20' ) end [2024-12-24 16:51:19] Production.INFO: ProcessCDR(1,14093521,1,1,2) [2024-12-24 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093521', 'tblTempUsageDetail_20' ) start [2024-12-24 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093521', 'tblTempUsageDetail_20' ) end [2024-12-24 16:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:51:22] Production.INFO: ==6703== Releasing lock... [2024-12-24 16:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:51:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:52:04 [end_date_ymd] => 2024-12-24 16:52:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:52:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:52:18] Production.INFO: count ==2774 [2024-12-24 16:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:52:04 - End Time 2024-12-24 16:52:04 [2024-12-24 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093526', 'tblTempUsageDetail_20' ) start [2024-12-24 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093526', 'tblTempUsageDetail_20' ) end [2024-12-24 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093526', 'tblTempVendorCDR_20' ) start [2024-12-24 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093526', 'tblTempVendorCDR_20' ) end [2024-12-24 16:52:19] Production.INFO: ProcessCDR(1,14093526,1,1,2) [2024-12-24 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093526', 'tblTempUsageDetail_20' ) start [2024-12-24 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093526', 'tblTempUsageDetail_20' ) end [2024-12-24 16:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:52:24] Production.INFO: ==6777== Releasing lock... [2024-12-24 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:52:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:53:05 [end_date_ymd] => 2024-12-24 16:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:53:19] Production.INFO: count ==2787 [2024-12-24 16:53:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:53:05 - End Time 2024-12-24 16:53:05 [2024-12-24 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093531', 'tblTempUsageDetail_20' ) start [2024-12-24 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093531', 'tblTempUsageDetail_20' ) end [2024-12-24 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093531', 'tblTempVendorCDR_20' ) start [2024-12-24 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093531', 'tblTempVendorCDR_20' ) end [2024-12-24 16:53:20] Production.INFO: ProcessCDR(1,14093531,1,1,2) [2024-12-24 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093531', 'tblTempUsageDetail_20' ) start [2024-12-24 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093531', 'tblTempUsageDetail_20' ) end [2024-12-24 16:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:53:24] Production.INFO: ==6853== Releasing lock... [2024-12-24 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:53:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:54:05 [end_date_ymd] => 2024-12-24 16:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:54:18] Production.INFO: count ==2792 [2024-12-24 16:54:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:54:05 - End Time 2024-12-24 16:54:05 [2024-12-24 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093536', 'tblTempUsageDetail_20' ) start [2024-12-24 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093536', 'tblTempUsageDetail_20' ) end [2024-12-24 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093536', 'tblTempVendorCDR_20' ) start [2024-12-24 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093536', 'tblTempVendorCDR_20' ) end [2024-12-24 16:54:19] Production.INFO: ProcessCDR(1,14093536,1,1,2) [2024-12-24 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093536', 'tblTempUsageDetail_20' ) start [2024-12-24 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093536', 'tblTempUsageDetail_20' ) end [2024-12-24 16:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:54:22] Production.INFO: ==6925== Releasing lock... [2024-12-24 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:54:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:55:04 [end_date_ymd] => 2024-12-24 16:55:04 [RateCDR] => 1 ) [2024-12-24 16:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 13:55:04' and `end` < '2024-12-24 16:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 16:55:17] Production.INFO: count ==2855 [2024-12-24 16:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:55:04 - End Time 2024-12-24 16:55:04 [2024-12-24 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093541', 'tblTempUsageDetail_20' ) start [2024-12-24 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093541', 'tblTempUsageDetail_20' ) end [2024-12-24 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093541', 'tblTempVendorCDR_20' ) start [2024-12-24 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093541', 'tblTempVendorCDR_20' ) end [2024-12-24 16:55:18] Production.INFO: ProcessCDR(1,14093541,1,1,2) [2024-12-24 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093541', 'tblTempUsageDetail_20' ) start [2024-12-24 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093541', 'tblTempUsageDetail_20' ) end [2024-12-24 16:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:55:22] Production.INFO: ==7000== Releasing lock... [2024-12-24 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:55:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:56:05 [end_date_ymd] => 2024-12-24 16:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:56:23] Production.INFO: count ==2850 [2024-12-24 16:56:24] Production.ERROR: pbx CDR StartTime 2024-12-24 13:56:05 - End Time 2024-12-24 16:56:05 [2024-12-24 16:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093546', 'tblTempUsageDetail_20' ) start [2024-12-24 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093546', 'tblTempUsageDetail_20' ) end [2024-12-24 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093546', 'tblTempVendorCDR_20' ) start [2024-12-24 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093546', 'tblTempVendorCDR_20' ) end [2024-12-24 16:56:24] Production.INFO: ProcessCDR(1,14093546,1,1,2) [2024-12-24 16:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093546', 'tblTempUsageDetail_20' ) start [2024-12-24 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093546', 'tblTempUsageDetail_20' ) end [2024-12-24 16:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:56:28] Production.INFO: ==7074== Releasing lock... [2024-12-24 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:56:28] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:57:04 [end_date_ymd] => 2024-12-24 16:57:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:57:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:57:19] Production.INFO: count ==2865 [2024-12-24 16:57:20] Production.ERROR: pbx CDR StartTime 2024-12-24 13:57:04 - End Time 2024-12-24 16:57:04 [2024-12-24 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093551', 'tblTempUsageDetail_20' ) start [2024-12-24 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093551', 'tblTempUsageDetail_20' ) end [2024-12-24 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093551', 'tblTempVendorCDR_20' ) start [2024-12-24 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093551', 'tblTempVendorCDR_20' ) end [2024-12-24 16:57:20] Production.INFO: ProcessCDR(1,14093551,1,1,2) [2024-12-24 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093551', 'tblTempUsageDetail_20' ) start [2024-12-24 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093551', 'tblTempUsageDetail_20' ) end [2024-12-24 16:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:57:23] Production.INFO: ==7149== Releasing lock... [2024-12-24 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:57:23] Production.INFO: 50 MB #Memory Used# [2024-12-24 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:58:05 [end_date_ymd] => 2024-12-24 16:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 13:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 16:58:18] Production.INFO: count ==2870 [2024-12-24 16:58:19] Production.ERROR: pbx CDR StartTime 2024-12-24 13:58:05 - End Time 2024-12-24 16:58:05 [2024-12-24 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093556', 'tblTempUsageDetail_20' ) start [2024-12-24 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093556', 'tblTempUsageDetail_20' ) end [2024-12-24 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093556', 'tblTempVendorCDR_20' ) start [2024-12-24 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093556', 'tblTempVendorCDR_20' ) end [2024-12-24 16:58:19] Production.INFO: ProcessCDR(1,14093556,1,1,2) [2024-12-24 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093556', 'tblTempUsageDetail_20' ) start [2024-12-24 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093556', 'tblTempUsageDetail_20' ) end [2024-12-24 16:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:58:22] Production.INFO: ==7221== Releasing lock... [2024-12-24 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:58:22] Production.INFO: 50 MB #Memory Used# [2024-12-24 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 13:59:04 [end_date_ymd] => 2024-12-24 16:59:04 [RateCDR] => 1 ) [2024-12-24 16: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` >= '2024-12-24 13:59:04' and `end` < '2024-12-24 16: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 ,'') [2024-12-24 16:59:17] Production.INFO: count ==2872 [2024-12-24 16:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 13:59:04 - End Time 2024-12-24 16:59:04 [2024-12-24 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093561', 'tblTempUsageDetail_20' ) start [2024-12-24 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093561', 'tblTempUsageDetail_20' ) end [2024-12-24 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093561', 'tblTempVendorCDR_20' ) start [2024-12-24 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093561', 'tblTempVendorCDR_20' ) end [2024-12-24 16:59:18] Production.INFO: ProcessCDR(1,14093561,1,1,2) [2024-12-24 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 16:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093561', 'tblTempUsageDetail_20' ) start [2024-12-24 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093561', 'tblTempUsageDetail_20' ) end [2024-12-24 16:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 16:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 16:59:22] Production.INFO: ==7295== Releasing lock... [2024-12-24 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 16:59:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:00:06 [end_date_ymd] => 2024-12-24 17:00:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:00:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:00:19] Production.INFO: count ==2885 [2024-12-24 17:00:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:00:06 - End Time 2024-12-24 17:00:06 [2024-12-24 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093567', 'tblTempUsageDetail_20' ) start [2024-12-24 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093567', 'tblTempUsageDetail_20' ) end [2024-12-24 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093567', 'tblTempVendorCDR_20' ) start [2024-12-24 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093567', 'tblTempVendorCDR_20' ) end [2024-12-24 17:00:20] Production.INFO: ProcessCDR(1,14093567,1,1,2) [2024-12-24 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093567', 'tblTempUsageDetail_20' ) start [2024-12-24 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093567', 'tblTempUsageDetail_20' ) end [2024-12-24 17:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:00:24] Production.INFO: ==7414== Releasing lock... [2024-12-24 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:00:24] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:01:05 [end_date_ymd] => 2024-12-24 17:01:05 [RateCDR] => 1 ) [2024-12-24 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:01:05' and `end` < '2024-12-24 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:01:18] Production.INFO: count ==2909 [2024-12-24 17:01:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:01:05 - End Time 2024-12-24 17:01:05 [2024-12-24 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093572', 'tblTempUsageDetail_20' ) start [2024-12-24 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093572', 'tblTempUsageDetail_20' ) end [2024-12-24 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093572', 'tblTempVendorCDR_20' ) start [2024-12-24 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093572', 'tblTempVendorCDR_20' ) end [2024-12-24 17:01:19] Production.INFO: ProcessCDR(1,14093572,1,1,2) [2024-12-24 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093572', 'tblTempUsageDetail_20' ) start [2024-12-24 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093572', 'tblTempUsageDetail_20' ) end [2024-12-24 17:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:01:22] Production.INFO: ==7501== Releasing lock... [2024-12-24 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:01:22] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:02:05 [end_date_ymd] => 2024-12-24 17:02:05 [RateCDR] => 1 ) [2024-12-24 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:02:05' and `end` < '2024-12-24 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:02:18] Production.INFO: count ==2916 [2024-12-24 17:02:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:02:05 - End Time 2024-12-24 17:02:05 [2024-12-24 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093577', 'tblTempUsageDetail_20' ) start [2024-12-24 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093577', 'tblTempUsageDetail_20' ) end [2024-12-24 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093577', 'tblTempVendorCDR_20' ) start [2024-12-24 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093577', 'tblTempVendorCDR_20' ) end [2024-12-24 17:02:19] Production.INFO: ProcessCDR(1,14093577,1,1,2) [2024-12-24 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093577', 'tblTempUsageDetail_20' ) start [2024-12-24 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093577', 'tblTempUsageDetail_20' ) end [2024-12-24 17:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:02:24] Production.INFO: ==7580== Releasing lock... [2024-12-24 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:02:24] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:03:05 [end_date_ymd] => 2024-12-24 17:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:03:18] Production.INFO: count ==2982 [2024-12-24 17:03:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:03:05 - End Time 2024-12-24 17:03:05 [2024-12-24 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093582', 'tblTempUsageDetail_20' ) start [2024-12-24 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093582', 'tblTempUsageDetail_20' ) end [2024-12-24 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093582', 'tblTempVendorCDR_20' ) start [2024-12-24 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093582', 'tblTempVendorCDR_20' ) end [2024-12-24 17:03:19] Production.INFO: ProcessCDR(1,14093582,1,1,2) [2024-12-24 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093582', 'tblTempUsageDetail_20' ) start [2024-12-24 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093582', 'tblTempUsageDetail_20' ) end [2024-12-24 17:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:03:24] Production.INFO: ==7654== Releasing lock... [2024-12-24 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:03:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:04:05 [end_date_ymd] => 2024-12-24 17:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:04:18] Production.INFO: count ==2980 [2024-12-24 17:04:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:04:05 - End Time 2024-12-24 17:04:05 [2024-12-24 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093587', 'tblTempUsageDetail_20' ) start [2024-12-24 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093587', 'tblTempUsageDetail_20' ) end [2024-12-24 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093587', 'tblTempVendorCDR_20' ) start [2024-12-24 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093587', 'tblTempVendorCDR_20' ) end [2024-12-24 17:04:20] Production.INFO: ProcessCDR(1,14093587,1,1,2) [2024-12-24 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093587', 'tblTempUsageDetail_20' ) start [2024-12-24 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093587', 'tblTempUsageDetail_20' ) end [2024-12-24 17:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:04:24] Production.INFO: ==7731== Releasing lock... [2024-12-24 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:04:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:05:05 [end_date_ymd] => 2024-12-24 17:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:05:18] Production.INFO: count ==2980 [2024-12-24 17:05:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:05:05 - End Time 2024-12-24 17:05:05 [2024-12-24 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093592', 'tblTempUsageDetail_20' ) start [2024-12-24 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093592', 'tblTempUsageDetail_20' ) end [2024-12-24 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093592', 'tblTempVendorCDR_20' ) start [2024-12-24 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093592', 'tblTempVendorCDR_20' ) end [2024-12-24 17:05:19] Production.INFO: ProcessCDR(1,14093592,1,1,2) [2024-12-24 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093592', 'tblTempUsageDetail_20' ) start [2024-12-24 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093592', 'tblTempUsageDetail_20' ) end [2024-12-24 17:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:05:23] Production.INFO: ==7803== Releasing lock... [2024-12-24 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:05:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:06:05 [end_date_ymd] => 2024-12-24 17:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:06:21] Production.INFO: count ==2970 [2024-12-24 17:06:22] Production.ERROR: pbx CDR StartTime 2024-12-24 14:06:05 - End Time 2024-12-24 17:06:05 [2024-12-24 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093597', 'tblTempUsageDetail_20' ) start [2024-12-24 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093597', 'tblTempUsageDetail_20' ) end [2024-12-24 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093597', 'tblTempVendorCDR_20' ) start [2024-12-24 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093597', 'tblTempVendorCDR_20' ) end [2024-12-24 17:06:22] Production.INFO: ProcessCDR(1,14093597,1,1,2) [2024-12-24 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093597', 'tblTempUsageDetail_20' ) start [2024-12-24 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093597', 'tblTempUsageDetail_20' ) end [2024-12-24 17:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:06:25] Production.INFO: ==7885== Releasing lock... [2024-12-24 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:06:25] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:07:05 [end_date_ymd] => 2024-12-24 17:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:07:18] Production.INFO: count ==2962 [2024-12-24 17:07:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:07:05 - End Time 2024-12-24 17:07:05 [2024-12-24 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093602', 'tblTempUsageDetail_20' ) start [2024-12-24 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093602', 'tblTempUsageDetail_20' ) end [2024-12-24 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093602', 'tblTempVendorCDR_20' ) start [2024-12-24 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093602', 'tblTempVendorCDR_20' ) end [2024-12-24 17:07:19] Production.INFO: ProcessCDR(1,14093602,1,1,2) [2024-12-24 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093602', 'tblTempUsageDetail_20' ) start [2024-12-24 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093602', 'tblTempUsageDetail_20' ) end [2024-12-24 17:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:07:23] Production.INFO: ==7961== Releasing lock... [2024-12-24 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:07:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:08:05 [end_date_ymd] => 2024-12-24 17:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:08:18] Production.INFO: count ==2954 [2024-12-24 17:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:08:05 - End Time 2024-12-24 17:08:05 [2024-12-24 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093607', 'tblTempUsageDetail_20' ) start [2024-12-24 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093607', 'tblTempUsageDetail_20' ) end [2024-12-24 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093607', 'tblTempVendorCDR_20' ) start [2024-12-24 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093607', 'tblTempVendorCDR_20' ) end [2024-12-24 17:08:19] Production.INFO: ProcessCDR(1,14093607,1,1,2) [2024-12-24 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093607', 'tblTempUsageDetail_20' ) start [2024-12-24 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093607', 'tblTempUsageDetail_20' ) end [2024-12-24 17:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:08:22] Production.INFO: ==8035== Releasing lock... [2024-12-24 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:08:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:09:04 [end_date_ymd] => 2024-12-24 17:09:04 [RateCDR] => 1 ) [2024-12-24 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:09:04' and `end` < '2024-12-24 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:09:17] Production.INFO: count ==2952 [2024-12-24 17:09:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:09:04 - End Time 2024-12-24 17:09:04 [2024-12-24 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093612', 'tblTempUsageDetail_20' ) start [2024-12-24 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093612', 'tblTempUsageDetail_20' ) end [2024-12-24 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093612', 'tblTempVendorCDR_20' ) start [2024-12-24 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093612', 'tblTempVendorCDR_20' ) end [2024-12-24 17:09:18] Production.INFO: ProcessCDR(1,14093612,1,1,2) [2024-12-24 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093612', 'tblTempUsageDetail_20' ) start [2024-12-24 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093612', 'tblTempUsageDetail_20' ) end [2024-12-24 17:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:09:22] Production.INFO: ==8111== Releasing lock... [2024-12-24 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:09:22] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:10:05 [end_date_ymd] => 2024-12-24 17:10:05 [RateCDR] => 1 ) [2024-12-24 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:10:05' and `end` < '2024-12-24 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:10:18] Production.INFO: count ==2956 [2024-12-24 17:10:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:10:05 - End Time 2024-12-24 17:10:05 [2024-12-24 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093618', 'tblTempUsageDetail_20' ) start [2024-12-24 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093618', 'tblTempUsageDetail_20' ) end [2024-12-24 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093618', 'tblTempVendorCDR_20' ) start [2024-12-24 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093618', 'tblTempVendorCDR_20' ) end [2024-12-24 17:10:20] Production.INFO: ProcessCDR(1,14093618,1,1,2) [2024-12-24 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093618', 'tblTempUsageDetail_20' ) start [2024-12-24 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093618', 'tblTempUsageDetail_20' ) end [2024-12-24 17:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:10:23] Production.INFO: ==8194== Releasing lock... [2024-12-24 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:10:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:11:04 [end_date_ymd] => 2024-12-24 17:11:04 [RateCDR] => 1 ) [2024-12-24 17:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:11:04' and `end` < '2024-12-24 17:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:11:17] Production.INFO: count ==2937 [2024-12-24 17:11:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:11:04 - End Time 2024-12-24 17:11:04 [2024-12-24 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093623', 'tblTempUsageDetail_20' ) start [2024-12-24 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093623', 'tblTempUsageDetail_20' ) end [2024-12-24 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093623', 'tblTempVendorCDR_20' ) start [2024-12-24 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093623', 'tblTempVendorCDR_20' ) end [2024-12-24 17:11:18] Production.INFO: ProcessCDR(1,14093623,1,1,2) [2024-12-24 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093623', 'tblTempUsageDetail_20' ) start [2024-12-24 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093623', 'tblTempUsageDetail_20' ) end [2024-12-24 17:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:11:23] Production.INFO: ==8277== Releasing lock... [2024-12-24 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:11:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:12:05 [end_date_ymd] => 2024-12-24 17:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:12:18] Production.INFO: count ==2931 [2024-12-24 17:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:12:05 - End Time 2024-12-24 17:12:05 [2024-12-24 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093628', 'tblTempUsageDetail_20' ) start [2024-12-24 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093628', 'tblTempUsageDetail_20' ) end [2024-12-24 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093628', 'tblTempVendorCDR_20' ) start [2024-12-24 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093628', 'tblTempVendorCDR_20' ) end [2024-12-24 17:12:19] Production.INFO: ProcessCDR(1,14093628,1,1,2) [2024-12-24 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093628', 'tblTempUsageDetail_20' ) start [2024-12-24 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093628', 'tblTempUsageDetail_20' ) end [2024-12-24 17:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:12:22] Production.INFO: ==8357== Releasing lock... [2024-12-24 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:12:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:13:06 [end_date_ymd] => 2024-12-24 17:13:06 [RateCDR] => 1 ) [2024-12-24 17: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` >= '2024-12-24 14:13:06' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:13:19] Production.INFO: count ==2924 [2024-12-24 17:13:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:13:06 - End Time 2024-12-24 17:13:06 [2024-12-24 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093633', 'tblTempUsageDetail_20' ) start [2024-12-24 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093633', 'tblTempUsageDetail_20' ) end [2024-12-24 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093633', 'tblTempVendorCDR_20' ) start [2024-12-24 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093633', 'tblTempVendorCDR_20' ) end [2024-12-24 17:13:20] Production.INFO: ProcessCDR(1,14093633,1,1,2) [2024-12-24 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093633', 'tblTempUsageDetail_20' ) start [2024-12-24 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093633', 'tblTempUsageDetail_20' ) end [2024-12-24 17:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:13:24] Production.INFO: ==8434== Releasing lock... [2024-12-24 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:13:24] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:14:05 [end_date_ymd] => 2024-12-24 17:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:14:18] Production.INFO: count ==2918 [2024-12-24 17:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:14:05 - End Time 2024-12-24 17:14:05 [2024-12-24 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093638', 'tblTempUsageDetail_20' ) start [2024-12-24 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093638', 'tblTempUsageDetail_20' ) end [2024-12-24 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093638', 'tblTempVendorCDR_20' ) start [2024-12-24 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093638', 'tblTempVendorCDR_20' ) end [2024-12-24 17:14:19] Production.INFO: ProcessCDR(1,14093638,1,1,2) [2024-12-24 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093638', 'tblTempUsageDetail_20' ) start [2024-12-24 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093638', 'tblTempUsageDetail_20' ) end [2024-12-24 17:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:14:22] Production.INFO: ==8509== Releasing lock... [2024-12-24 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:14:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:15:05 [end_date_ymd] => 2024-12-24 17:15:05 [RateCDR] => 1 ) [2024-12-24 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:15:05' and `end` < '2024-12-24 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:15:18] Production.INFO: count ==2909 [2024-12-24 17:15:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:15:05 - End Time 2024-12-24 17:15:05 [2024-12-24 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093643', 'tblTempUsageDetail_20' ) start [2024-12-24 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093643', 'tblTempUsageDetail_20' ) end [2024-12-24 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093643', 'tblTempVendorCDR_20' ) start [2024-12-24 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093643', 'tblTempVendorCDR_20' ) end [2024-12-24 17:15:19] Production.INFO: ProcessCDR(1,14093643,1,1,2) [2024-12-24 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093643', 'tblTempUsageDetail_20' ) start [2024-12-24 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093643', 'tblTempUsageDetail_20' ) end [2024-12-24 17:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:15:22] Production.INFO: ==8624== Releasing lock... [2024-12-24 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:15:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:16:05 [end_date_ymd] => 2024-12-24 17:16:05 [RateCDR] => 1 ) [2024-12-24 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:16:05' and `end` < '2024-12-24 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:16:19] Production.INFO: count ==2910 [2024-12-24 17:16:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:16:05 - End Time 2024-12-24 17:16:05 [2024-12-24 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093648', 'tblTempUsageDetail_20' ) start [2024-12-24 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093648', 'tblTempUsageDetail_20' ) end [2024-12-24 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093648', 'tblTempVendorCDR_20' ) start [2024-12-24 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093648', 'tblTempVendorCDR_20' ) end [2024-12-24 17:16:21] Production.INFO: ProcessCDR(1,14093648,1,1,2) [2024-12-24 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093648', 'tblTempUsageDetail_20' ) start [2024-12-24 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093648', 'tblTempUsageDetail_20' ) end [2024-12-24 17:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:16:25] Production.INFO: ==8705== Releasing lock... [2024-12-24 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:16:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:17:05 [end_date_ymd] => 2024-12-24 17:17:05 [RateCDR] => 1 ) [2024-12-24 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:17:05' and `end` < '2024-12-24 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:17:18] Production.INFO: count ==2903 [2024-12-24 17:17:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:17:05 - End Time 2024-12-24 17:17:05 [2024-12-24 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093653', 'tblTempUsageDetail_20' ) start [2024-12-24 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093653', 'tblTempUsageDetail_20' ) end [2024-12-24 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093653', 'tblTempVendorCDR_20' ) start [2024-12-24 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093653', 'tblTempVendorCDR_20' ) end [2024-12-24 17:17:19] Production.INFO: ProcessCDR(1,14093653,1,1,2) [2024-12-24 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093653', 'tblTempUsageDetail_20' ) start [2024-12-24 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093653', 'tblTempUsageDetail_20' ) end [2024-12-24 17:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:17:22] Production.INFO: ==8782== Releasing lock... [2024-12-24 17:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:17:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:18:05 [end_date_ymd] => 2024-12-24 17:18:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:18:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:18:19] Production.INFO: count ==2905 [2024-12-24 17:18:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:18:05 - End Time 2024-12-24 17:18:05 [2024-12-24 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093658', 'tblTempUsageDetail_20' ) start [2024-12-24 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093658', 'tblTempUsageDetail_20' ) end [2024-12-24 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093658', 'tblTempVendorCDR_20' ) start [2024-12-24 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093658', 'tblTempVendorCDR_20' ) end [2024-12-24 17:18:20] Production.INFO: ProcessCDR(1,14093658,1,1,2) [2024-12-24 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093658', 'tblTempUsageDetail_20' ) start [2024-12-24 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093658', 'tblTempUsageDetail_20' ) end [2024-12-24 17:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:18:23] Production.INFO: ==8862== Releasing lock... [2024-12-24 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:18:23] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:19:04 [end_date_ymd] => 2024-12-24 17:19:04 [RateCDR] => 1 ) [2024-12-24 17: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` >= '2024-12-24 14:19:04' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:19:17] Production.INFO: count ==2907 [2024-12-24 17:19:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:19:04 - End Time 2024-12-24 17:19:04 [2024-12-24 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093663', 'tblTempUsageDetail_20' ) start [2024-12-24 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093663', 'tblTempUsageDetail_20' ) end [2024-12-24 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093663', 'tblTempVendorCDR_20' ) start [2024-12-24 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093663', 'tblTempVendorCDR_20' ) end [2024-12-24 17:19:19] Production.INFO: ProcessCDR(1,14093663,1,1,2) [2024-12-24 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093663', 'tblTempUsageDetail_20' ) start [2024-12-24 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093663', 'tblTempUsageDetail_20' ) end [2024-12-24 17:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:19:22] Production.INFO: ==8942== Releasing lock... [2024-12-24 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:19:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:20:06 [end_date_ymd] => 2024-12-24 17:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:20:20] Production.INFO: count ==2906 [2024-12-24 17:20:21] Production.ERROR: pbx CDR StartTime 2024-12-24 14:20:06 - End Time 2024-12-24 17:20:06 [2024-12-24 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093669', 'tblTempUsageDetail_20' ) start [2024-12-24 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093669', 'tblTempUsageDetail_20' ) end [2024-12-24 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093669', 'tblTempVendorCDR_20' ) start [2024-12-24 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093669', 'tblTempVendorCDR_20' ) end [2024-12-24 17:20:21] Production.INFO: ProcessCDR(1,14093669,1,1,2) [2024-12-24 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093669', 'tblTempUsageDetail_20' ) start [2024-12-24 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093669', 'tblTempUsageDetail_20' ) end [2024-12-24 17:20:26] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:20:26] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:20:26] Production.INFO: ==9022== Releasing lock... [2024-12-24 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:20:26] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:21:05 [end_date_ymd] => 2024-12-24 17:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:21:18] Production.INFO: count ==2916 [2024-12-24 17:21:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:21:05 - End Time 2024-12-24 17:21:05 [2024-12-24 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093674', 'tblTempUsageDetail_20' ) start [2024-12-24 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093674', 'tblTempUsageDetail_20' ) end [2024-12-24 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093674', 'tblTempVendorCDR_20' ) start [2024-12-24 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093674', 'tblTempVendorCDR_20' ) end [2024-12-24 17:21:19] Production.INFO: ProcessCDR(1,14093674,1,1,2) [2024-12-24 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093674', 'tblTempUsageDetail_20' ) start [2024-12-24 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093674', 'tblTempUsageDetail_20' ) end [2024-12-24 17:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:21:22] Production.INFO: ==9109== Releasing lock... [2024-12-24 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:21:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:22:05 [end_date_ymd] => 2024-12-24 17:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:22:19] Production.INFO: count ==2916 [2024-12-24 17:22:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:22:05 - End Time 2024-12-24 17:22:05 [2024-12-24 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093679', 'tblTempUsageDetail_20' ) start [2024-12-24 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093679', 'tblTempUsageDetail_20' ) end [2024-12-24 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093679', 'tblTempVendorCDR_20' ) start [2024-12-24 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093679', 'tblTempVendorCDR_20' ) end [2024-12-24 17:22:20] Production.INFO: ProcessCDR(1,14093679,1,1,2) [2024-12-24 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093679', 'tblTempUsageDetail_20' ) start [2024-12-24 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093679', 'tblTempUsageDetail_20' ) end [2024-12-24 17:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:22:25] Production.INFO: ==9189== Releasing lock... [2024-12-24 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:22:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:23:04 [end_date_ymd] => 2024-12-24 17:23:04 [RateCDR] => 1 ) [2024-12-24 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:23:04' and `end` < '2024-12-24 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:23:17] Production.INFO: count ==2911 [2024-12-24 17:23:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:23:04 - End Time 2024-12-24 17:23:04 [2024-12-24 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093684', 'tblTempUsageDetail_20' ) start [2024-12-24 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093684', 'tblTempUsageDetail_20' ) end [2024-12-24 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093684', 'tblTempVendorCDR_20' ) start [2024-12-24 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093684', 'tblTempVendorCDR_20' ) end [2024-12-24 17:23:19] Production.INFO: ProcessCDR(1,14093684,1,1,2) [2024-12-24 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093684', 'tblTempUsageDetail_20' ) start [2024-12-24 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093684', 'tblTempUsageDetail_20' ) end [2024-12-24 17:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:23:22] Production.INFO: ==9270== Releasing lock... [2024-12-24 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:23:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:24:05 [end_date_ymd] => 2024-12-24 17:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:24:18] Production.INFO: count ==2892 [2024-12-24 17:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:24:05 - End Time 2024-12-24 17:24:05 [2024-12-24 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093689', 'tblTempUsageDetail_20' ) start [2024-12-24 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093689', 'tblTempUsageDetail_20' ) end [2024-12-24 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093689', 'tblTempVendorCDR_20' ) start [2024-12-24 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093689', 'tblTempVendorCDR_20' ) end [2024-12-24 17:24:19] Production.INFO: ProcessCDR(1,14093689,1,1,2) [2024-12-24 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093689', 'tblTempUsageDetail_20' ) start [2024-12-24 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093689', 'tblTempUsageDetail_20' ) end [2024-12-24 17:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:24:22] Production.INFO: ==9353== Releasing lock... [2024-12-24 17:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:24:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:25:05 [end_date_ymd] => 2024-12-24 17:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:25:18] Production.INFO: count ==2890 [2024-12-24 17:25:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:25:05 - End Time 2024-12-24 17:25:05 [2024-12-24 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093693', 'tblTempUsageDetail_20' ) start [2024-12-24 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093693', 'tblTempUsageDetail_20' ) end [2024-12-24 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093693', 'tblTempVendorCDR_20' ) start [2024-12-24 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093693', 'tblTempVendorCDR_20' ) end [2024-12-24 17:25:19] Production.INFO: ProcessCDR(1,14093693,1,1,2) [2024-12-24 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093693', 'tblTempUsageDetail_20' ) start [2024-12-24 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093693', 'tblTempUsageDetail_20' ) end [2024-12-24 17:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:25:22] Production.INFO: ==9431== Releasing lock... [2024-12-24 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:25:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:26:15 [end_date_ymd] => 2024-12-24 17:26:15 [RateCDR] => 1 ) [2024-12-24 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:26:15' and `end` < '2024-12-24 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:26:28] Production.INFO: count ==2886 [2024-12-24 17:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 14:26:15 - End Time 2024-12-24 17:26:15 [2024-12-24 17:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093699', 'tblTempUsageDetail_20' ) start [2024-12-24 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093699', 'tblTempUsageDetail_20' ) end [2024-12-24 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093699', 'tblTempVendorCDR_20' ) start [2024-12-24 17:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093699', 'tblTempVendorCDR_20' ) end [2024-12-24 17:27:23] Production.INFO: ProcessCDR(1,14093699,1,1,2) [2024-12-24 17:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:27:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:27:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093699', 'tblTempUsageDetail_20' ) start [2024-12-24 17:27:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093699', 'tblTempUsageDetail_20' ) end [2024-12-24 17:27:45] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:27:45] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:27:46] Production.INFO: ==9510== Releasing lock... [2024-12-24 17:27:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:27:46] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 17:28:19] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:28:19 [end_date_ymd] => 2024-12-24 17:28:19 [RateCDR] => 1 ) [2024-12-24 17:28:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:28:19' and `end` < '2024-12-24 17:28:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:28:33] Production.INFO: count ==2881 [2024-12-24 17:28:51] Production.ERROR: pbx CDR StartTime 2024-12-24 14:28:19 - End Time 2024-12-24 17:28:19 [2024-12-24 17:28:51] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:28:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093706', 'tblTempUsageDetail_20' ) start [2024-12-24 17:28:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093706', 'tblTempUsageDetail_20' ) end [2024-12-24 17:28:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093706', 'tblTempVendorCDR_20' ) start [2024-12-24 17:28:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093706', 'tblTempVendorCDR_20' ) end [2024-12-24 17:28:53] Production.INFO: ProcessCDR(1,14093706,1,1,2) [2024-12-24 17:28:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:28:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:28:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:29:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:29:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093706', 'tblTempUsageDetail_20' ) start [2024-12-24 17:29:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093706', 'tblTempUsageDetail_20' ) end [2024-12-24 17:29:10] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:29:10] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:29:15] Production.INFO: ==9648== Releasing lock... [2024-12-24 17:29:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:29:15] Production.INFO: 50 MB #Memory Used# [2024-12-24 17:30:17] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:30:17 [end_date_ymd] => 2024-12-24 17:30:17 [RateCDR] => 1 ) [2024-12-24 17:30:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:30:17' and `end` < '2024-12-24 17:30:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:30:31] Production.INFO: count ==2860 [2024-12-24 17:30:46] Production.ERROR: pbx CDR StartTime 2024-12-24 14:30:17 - End Time 2024-12-24 17:30:17 [2024-12-24 17:30:46] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:30:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093715', 'tblTempUsageDetail_20' ) start [2024-12-24 17:30:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093715', 'tblTempUsageDetail_20' ) end [2024-12-24 17:30:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093715', 'tblTempVendorCDR_20' ) start [2024-12-24 17:30:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093715', 'tblTempVendorCDR_20' ) end [2024-12-24 17:30:48] Production.INFO: ProcessCDR(1,14093715,1,1,2) [2024-12-24 17:30:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:30:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:30:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:30:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:30:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093715', 'tblTempUsageDetail_20' ) start [2024-12-24 17:30:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093715', 'tblTempUsageDetail_20' ) end [2024-12-24 17:30:53] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:30:53] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:30:54] Production.INFO: ==9803== Releasing lock... [2024-12-24 17:30:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:30:54] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 17:31:19] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:31:19 [end_date_ymd] => 2024-12-24 17:31:19 [RateCDR] => 1 ) [2024-12-24 17:31: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` >= '2024-12-24 14:31:19' and `end` < '2024-12-24 17:31:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:31:32] Production.INFO: count ==2843 [2024-12-24 17:32:03] Production.ERROR: pbx CDR StartTime 2024-12-24 14:31:19 - End Time 2024-12-24 17:31:19 [2024-12-24 17:32:03] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:32:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093720', 'tblTempUsageDetail_20' ) start [2024-12-24 17:32:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093720', 'tblTempUsageDetail_20' ) end [2024-12-24 17:32:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093720', 'tblTempVendorCDR_20' ) start [2024-12-24 17:32:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093720', 'tblTempVendorCDR_20' ) end [2024-12-24 17:32:03] Production.INFO: ProcessCDR(1,14093720,1,1,2) [2024-12-24 17:32:03] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:32:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:32:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093720', 'tblTempUsageDetail_20' ) start [2024-12-24 17:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093720', 'tblTempUsageDetail_20' ) end [2024-12-24 17:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:32:24] Production.INFO: ==9925== Releasing lock... [2024-12-24 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:32:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 17:33:13] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:33:13 [end_date_ymd] => 2024-12-24 17:33:13 [RateCDR] => 1 ) [2024-12-24 17:33:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:33:13' and `end` < '2024-12-24 17:33:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:33:27] Production.INFO: count ==2825 [2024-12-24 17:33:28] Production.ERROR: pbx CDR StartTime 2024-12-24 14:33:13 - End Time 2024-12-24 17:33:13 [2024-12-24 17:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093728', 'tblTempUsageDetail_20' ) start [2024-12-24 17:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093728', 'tblTempUsageDetail_20' ) end [2024-12-24 17:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093728', 'tblTempVendorCDR_20' ) start [2024-12-24 17:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093728', 'tblTempVendorCDR_20' ) end [2024-12-24 17:33:28] Production.INFO: ProcessCDR(1,14093728,1,1,2) [2024-12-24 17:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093728', 'tblTempUsageDetail_20' ) start [2024-12-24 17:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093728', 'tblTempUsageDetail_20' ) end [2024-12-24 17:33:33] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:33:33] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:33:33] Production.INFO: ==10079== Releasing lock... [2024-12-24 17:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:33:33] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:34:05 [end_date_ymd] => 2024-12-24 17:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:34:18] Production.INFO: count ==2816 [2024-12-24 17:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:34:05 - End Time 2024-12-24 17:34:05 [2024-12-24 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093733', 'tblTempUsageDetail_20' ) start [2024-12-24 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093733', 'tblTempUsageDetail_20' ) end [2024-12-24 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093733', 'tblTempVendorCDR_20' ) start [2024-12-24 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093733', 'tblTempVendorCDR_20' ) end [2024-12-24 17:34:19] Production.INFO: ProcessCDR(1,14093733,1,1,2) [2024-12-24 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093733', 'tblTempUsageDetail_20' ) start [2024-12-24 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093733', 'tblTempUsageDetail_20' ) end [2024-12-24 17:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:34:23] Production.INFO: ==10165== Releasing lock... [2024-12-24 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:34:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 17:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:35:04 [end_date_ymd] => 2024-12-24 17:35:04 [RateCDR] => 1 ) [2024-12-24 17:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:35:04' and `end` < '2024-12-24 17:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:35:17] Production.INFO: count ==2815 [2024-12-24 17:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:35:04 - End Time 2024-12-24 17:35:04 [2024-12-24 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093738', 'tblTempUsageDetail_20' ) start [2024-12-24 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093738', 'tblTempUsageDetail_20' ) end [2024-12-24 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093738', 'tblTempVendorCDR_20' ) start [2024-12-24 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093738', 'tblTempVendorCDR_20' ) end [2024-12-24 17:35:18] Production.INFO: ProcessCDR(1,14093738,1,1,2) [2024-12-24 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093738', 'tblTempUsageDetail_20' ) start [2024-12-24 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093738', 'tblTempUsageDetail_20' ) end [2024-12-24 17:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:35:23] Production.INFO: ==10246== Releasing lock... [2024-12-24 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:35:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:36:05 [end_date_ymd] => 2024-12-24 17:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:36:19] Production.INFO: count ==2814 [2024-12-24 17:36:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:36:05 - End Time 2024-12-24 17:36:05 [2024-12-24 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093743', 'tblTempUsageDetail_20' ) start [2024-12-24 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093743', 'tblTempUsageDetail_20' ) end [2024-12-24 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093743', 'tblTempVendorCDR_20' ) start [2024-12-24 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093743', 'tblTempVendorCDR_20' ) end [2024-12-24 17:36:20] Production.INFO: ProcessCDR(1,14093743,1,1,2) [2024-12-24 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093743', 'tblTempUsageDetail_20' ) start [2024-12-24 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093743', 'tblTempUsageDetail_20' ) end [2024-12-24 17:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:36:23] Production.INFO: ==10346== Releasing lock... [2024-12-24 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:36:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:37:06 [end_date_ymd] => 2024-12-24 17:37:06 [RateCDR] => 1 ) [2024-12-24 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:37:06' and `end` < '2024-12-24 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:37:18] Production.INFO: count ==2797 [2024-12-24 17:37:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:37:06 - End Time 2024-12-24 17:37:06 [2024-12-24 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093748', 'tblTempUsageDetail_20' ) start [2024-12-24 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093748', 'tblTempUsageDetail_20' ) end [2024-12-24 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093748', 'tblTempVendorCDR_20' ) start [2024-12-24 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093748', 'tblTempVendorCDR_20' ) end [2024-12-24 17:37:20] Production.INFO: ProcessCDR(1,14093748,1,1,2) [2024-12-24 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093748', 'tblTempUsageDetail_20' ) start [2024-12-24 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093748', 'tblTempUsageDetail_20' ) end [2024-12-24 17:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:37:23] Production.INFO: ==10451== Releasing lock... [2024-12-24 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:37:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:38:04 [end_date_ymd] => 2024-12-24 17:38:04 [RateCDR] => 1 ) [2024-12-24 17: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` >= '2024-12-24 14:38:04' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:38:18] Production.INFO: count ==2798 [2024-12-24 17:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:38:04 - End Time 2024-12-24 17:38:04 [2024-12-24 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093753', 'tblTempUsageDetail_20' ) start [2024-12-24 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093753', 'tblTempUsageDetail_20' ) end [2024-12-24 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093753', 'tblTempVendorCDR_20' ) start [2024-12-24 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093753', 'tblTempVendorCDR_20' ) end [2024-12-24 17:38:19] Production.INFO: ProcessCDR(1,14093753,1,1,2) [2024-12-24 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093753', 'tblTempUsageDetail_20' ) start [2024-12-24 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093753', 'tblTempUsageDetail_20' ) end [2024-12-24 17:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:38:22] Production.INFO: ==10552== Releasing lock... [2024-12-24 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:38:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:39:05 [end_date_ymd] => 2024-12-24 17:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:39:18] Production.INFO: count ==2793 [2024-12-24 17:39:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:39:05 - End Time 2024-12-24 17:39:05 [2024-12-24 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093758', 'tblTempUsageDetail_20' ) start [2024-12-24 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093758', 'tblTempUsageDetail_20' ) end [2024-12-24 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093758', 'tblTempVendorCDR_20' ) start [2024-12-24 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093758', 'tblTempVendorCDR_20' ) end [2024-12-24 17:39:19] Production.INFO: ProcessCDR(1,14093758,1,1,2) [2024-12-24 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093758', 'tblTempUsageDetail_20' ) start [2024-12-24 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093758', 'tblTempUsageDetail_20' ) end [2024-12-24 17:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:39:23] Production.INFO: ==10649== Releasing lock... [2024-12-24 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:39:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:40:05 [end_date_ymd] => 2024-12-24 17:40:05 [RateCDR] => 1 ) [2024-12-24 17: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` >= '2024-12-24 14:40:05' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:40:21] Production.INFO: count ==2792 [2024-12-24 17:40:22] Production.ERROR: pbx CDR StartTime 2024-12-24 14:40:05 - End Time 2024-12-24 17:40:05 [2024-12-24 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093764', 'tblTempUsageDetail_20' ) start [2024-12-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093764', 'tblTempUsageDetail_20' ) end [2024-12-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093764', 'tblTempVendorCDR_20' ) start [2024-12-24 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093764', 'tblTempVendorCDR_20' ) end [2024-12-24 17:40:22] Production.INFO: ProcessCDR(1,14093764,1,1,2) [2024-12-24 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093764', 'tblTempUsageDetail_20' ) start [2024-12-24 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093764', 'tblTempUsageDetail_20' ) end [2024-12-24 17:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:40:25] Production.INFO: ==10751== Releasing lock... [2024-12-24 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:40:25] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:41:05 [end_date_ymd] => 2024-12-24 17:41:05 [RateCDR] => 1 ) [2024-12-24 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:41:05' and `end` < '2024-12-24 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:41:19] Production.INFO: count ==2804 [2024-12-24 17:41:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:41:05 - End Time 2024-12-24 17:41:05 [2024-12-24 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093769', 'tblTempUsageDetail_20' ) start [2024-12-24 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093769', 'tblTempUsageDetail_20' ) end [2024-12-24 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093769', 'tblTempVendorCDR_20' ) start [2024-12-24 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093769', 'tblTempVendorCDR_20' ) end [2024-12-24 17:41:21] Production.INFO: ProcessCDR(1,14093769,1,1,2) [2024-12-24 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093769', 'tblTempUsageDetail_20' ) start [2024-12-24 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093769', 'tblTempUsageDetail_20' ) end [2024-12-24 17:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:41:24] Production.INFO: ==10853== Releasing lock... [2024-12-24 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:41:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:42:05 [end_date_ymd] => 2024-12-24 17:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:42:17] Production.INFO: count ==2800 [2024-12-24 17:42:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:42:05 - End Time 2024-12-24 17:42:05 [2024-12-24 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093774', 'tblTempUsageDetail_20' ) start [2024-12-24 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093774', 'tblTempUsageDetail_20' ) end [2024-12-24 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093774', 'tblTempVendorCDR_20' ) start [2024-12-24 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093774', 'tblTempVendorCDR_20' ) end [2024-12-24 17:42:19] Production.INFO: ProcessCDR(1,14093774,1,1,2) [2024-12-24 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093774', 'tblTempUsageDetail_20' ) start [2024-12-24 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093774', 'tblTempUsageDetail_20' ) end [2024-12-24 17:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:42:22] Production.INFO: ==10958== Releasing lock... [2024-12-24 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:42:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:43:05 [end_date_ymd] => 2024-12-24 17:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:43:19] Production.INFO: count ==2801 [2024-12-24 17:43:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:43:05 - End Time 2024-12-24 17:43:05 [2024-12-24 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093779', 'tblTempUsageDetail_20' ) start [2024-12-24 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093779', 'tblTempUsageDetail_20' ) end [2024-12-24 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093779', 'tblTempVendorCDR_20' ) start [2024-12-24 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093779', 'tblTempVendorCDR_20' ) end [2024-12-24 17:43:20] Production.INFO: ProcessCDR(1,14093779,1,1,2) [2024-12-24 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093779', 'tblTempUsageDetail_20' ) start [2024-12-24 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093779', 'tblTempUsageDetail_20' ) end [2024-12-24 17:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:43:24] Production.INFO: ==11059== Releasing lock... [2024-12-24 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:43:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:44:04 [end_date_ymd] => 2024-12-24 17:44:04 [RateCDR] => 1 ) [2024-12-24 17: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` >= '2024-12-24 14:44:04' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:44:17] Production.INFO: count ==2814 [2024-12-24 17:44:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:44:04 - End Time 2024-12-24 17:44:04 [2024-12-24 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093784', 'tblTempUsageDetail_20' ) start [2024-12-24 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093784', 'tblTempUsageDetail_20' ) end [2024-12-24 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093784', 'tblTempVendorCDR_20' ) start [2024-12-24 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093784', 'tblTempVendorCDR_20' ) end [2024-12-24 17:44:18] Production.INFO: ProcessCDR(1,14093784,1,1,2) [2024-12-24 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093784', 'tblTempUsageDetail_20' ) start [2024-12-24 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093784', 'tblTempUsageDetail_20' ) end [2024-12-24 17:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:44:21] Production.INFO: ==11159== Releasing lock... [2024-12-24 17:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:44:21] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:45:05 [end_date_ymd] => 2024-12-24 17:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:45:18] Production.INFO: count ==2815 [2024-12-24 17:45:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:45:05 - End Time 2024-12-24 17:45:05 [2024-12-24 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093789', 'tblTempUsageDetail_20' ) start [2024-12-24 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093789', 'tblTempUsageDetail_20' ) end [2024-12-24 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093789', 'tblTempVendorCDR_20' ) start [2024-12-24 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093789', 'tblTempVendorCDR_20' ) end [2024-12-24 17:45:19] Production.INFO: ProcessCDR(1,14093789,1,1,2) [2024-12-24 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093789', 'tblTempUsageDetail_20' ) start [2024-12-24 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093789', 'tblTempUsageDetail_20' ) end [2024-12-24 17:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:45:22] Production.INFO: ==11264== Releasing lock... [2024-12-24 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:45:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:46:04 [end_date_ymd] => 2024-12-24 17:46:04 [RateCDR] => 1 ) [2024-12-24 17:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:46:04' and `end` < '2024-12-24 17:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:46:17] Production.INFO: count ==2807 [2024-12-24 17:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:46:04 - End Time 2024-12-24 17:46:04 [2024-12-24 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093794', 'tblTempUsageDetail_20' ) start [2024-12-24 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093794', 'tblTempUsageDetail_20' ) end [2024-12-24 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093794', 'tblTempVendorCDR_20' ) start [2024-12-24 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093794', 'tblTempVendorCDR_20' ) end [2024-12-24 17:46:19] Production.INFO: ProcessCDR(1,14093794,1,1,2) [2024-12-24 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093794', 'tblTempUsageDetail_20' ) start [2024-12-24 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093794', 'tblTempUsageDetail_20' ) end [2024-12-24 17:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:46:22] Production.INFO: ==11362== Releasing lock... [2024-12-24 17:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:46:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:47:05 [end_date_ymd] => 2024-12-24 17:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:47:18] Production.INFO: count ==2785 [2024-12-24 17:47:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:47:05 - End Time 2024-12-24 17:47:05 [2024-12-24 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093799', 'tblTempUsageDetail_20' ) start [2024-12-24 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093799', 'tblTempUsageDetail_20' ) end [2024-12-24 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093799', 'tblTempVendorCDR_20' ) start [2024-12-24 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093799', 'tblTempVendorCDR_20' ) end [2024-12-24 17:47:19] Production.INFO: ProcessCDR(1,14093799,1,1,2) [2024-12-24 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093799', 'tblTempUsageDetail_20' ) start [2024-12-24 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093799', 'tblTempUsageDetail_20' ) end [2024-12-24 17:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:47:22] Production.INFO: ==11506== Releasing lock... [2024-12-24 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:47:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:48:05 [end_date_ymd] => 2024-12-24 17:48:05 [RateCDR] => 1 ) [2024-12-24 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:48:05' and `end` < '2024-12-24 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:48:18] Production.INFO: count ==2760 [2024-12-24 17:48:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:48:05 - End Time 2024-12-24 17:48:05 [2024-12-24 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093804', 'tblTempUsageDetail_20' ) start [2024-12-24 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093804', 'tblTempUsageDetail_20' ) end [2024-12-24 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093804', 'tblTempVendorCDR_20' ) start [2024-12-24 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093804', 'tblTempVendorCDR_20' ) end [2024-12-24 17:48:19] Production.INFO: ProcessCDR(1,14093804,1,1,2) [2024-12-24 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093804', 'tblTempUsageDetail_20' ) start [2024-12-24 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093804', 'tblTempUsageDetail_20' ) end [2024-12-24 17:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:48:23] Production.INFO: ==11611== Releasing lock... [2024-12-24 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:48:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:49:04 [end_date_ymd] => 2024-12-24 17:49:04 [RateCDR] => 1 ) [2024-12-24 17: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` >= '2024-12-24 14:49:04' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:49:17] Production.INFO: count ==2738 [2024-12-24 17:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:49:04 - End Time 2024-12-24 17:49:04 [2024-12-24 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093809', 'tblTempUsageDetail_20' ) start [2024-12-24 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093809', 'tblTempUsageDetail_20' ) end [2024-12-24 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093809', 'tblTempVendorCDR_20' ) start [2024-12-24 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093809', 'tblTempVendorCDR_20' ) end [2024-12-24 17:49:18] Production.INFO: ProcessCDR(1,14093809,1,1,2) [2024-12-24 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093809', 'tblTempUsageDetail_20' ) start [2024-12-24 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093809', 'tblTempUsageDetail_20' ) end [2024-12-24 17:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:49:21] Production.INFO: ==11712== Releasing lock... [2024-12-24 17:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:49:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:50:05 [end_date_ymd] => 2024-12-24 17:50:05 [RateCDR] => 1 ) [2024-12-24 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:50:05' and `end` < '2024-12-24 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:50:18] Production.INFO: count ==2720 [2024-12-24 17:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:50:05 - End Time 2024-12-24 17:50:05 [2024-12-24 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093814', 'tblTempUsageDetail_20' ) start [2024-12-24 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093814', 'tblTempUsageDetail_20' ) end [2024-12-24 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093814', 'tblTempVendorCDR_20' ) start [2024-12-24 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093814', 'tblTempVendorCDR_20' ) end [2024-12-24 17:50:19] Production.INFO: ProcessCDR(1,14093814,1,1,2) [2024-12-24 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093814', 'tblTempUsageDetail_20' ) start [2024-12-24 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093814', 'tblTempUsageDetail_20' ) end [2024-12-24 17:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:50:22] Production.INFO: ==11820== Releasing lock... [2024-12-24 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:50:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:51:05 [end_date_ymd] => 2024-12-24 17:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:51:18] Production.INFO: count ==2754 [2024-12-24 17:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:51:05 - End Time 2024-12-24 17:51:05 [2024-12-24 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093820', 'tblTempUsageDetail_20' ) start [2024-12-24 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093820', 'tblTempUsageDetail_20' ) end [2024-12-24 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093820', 'tblTempVendorCDR_20' ) start [2024-12-24 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093820', 'tblTempVendorCDR_20' ) end [2024-12-24 17:51:19] Production.INFO: ProcessCDR(1,14093820,1,1,2) [2024-12-24 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093820', 'tblTempUsageDetail_20' ) start [2024-12-24 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093820', 'tblTempUsageDetail_20' ) end [2024-12-24 17:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:51:23] Production.INFO: ==11927== Releasing lock... [2024-12-24 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:51:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:52:05 [end_date_ymd] => 2024-12-24 17:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:52:19] Production.INFO: count ==2738 [2024-12-24 17:52:20] Production.ERROR: pbx CDR StartTime 2024-12-24 14:52:05 - End Time 2024-12-24 17:52:05 [2024-12-24 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093825', 'tblTempUsageDetail_20' ) start [2024-12-24 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093825', 'tblTempUsageDetail_20' ) end [2024-12-24 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093825', 'tblTempVendorCDR_20' ) start [2024-12-24 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093825', 'tblTempVendorCDR_20' ) end [2024-12-24 17:52:20] Production.INFO: ProcessCDR(1,14093825,1,1,2) [2024-12-24 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093825', 'tblTempUsageDetail_20' ) start [2024-12-24 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093825', 'tblTempUsageDetail_20' ) end [2024-12-24 17:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:52:23] Production.INFO: ==12028== Releasing lock... [2024-12-24 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:52:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:53:05 [end_date_ymd] => 2024-12-24 17:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:53:18] Production.INFO: count ==2737 [2024-12-24 17:53:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:53:05 - End Time 2024-12-24 17:53:05 [2024-12-24 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093830', 'tblTempUsageDetail_20' ) start [2024-12-24 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093830', 'tblTempUsageDetail_20' ) end [2024-12-24 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093830', 'tblTempVendorCDR_20' ) start [2024-12-24 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093830', 'tblTempVendorCDR_20' ) end [2024-12-24 17:53:19] Production.INFO: ProcessCDR(1,14093830,1,1,2) [2024-12-24 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093830', 'tblTempUsageDetail_20' ) start [2024-12-24 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093830', 'tblTempUsageDetail_20' ) end [2024-12-24 17:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:53:23] Production.INFO: ==12129== Releasing lock... [2024-12-24 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:53:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:54:05 [end_date_ymd] => 2024-12-24 17:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:54:18] Production.INFO: count ==2736 [2024-12-24 17:54:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:54:05 - End Time 2024-12-24 17:54:05 [2024-12-24 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093835', 'tblTempUsageDetail_20' ) start [2024-12-24 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093835', 'tblTempUsageDetail_20' ) end [2024-12-24 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093835', 'tblTempVendorCDR_20' ) start [2024-12-24 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093835', 'tblTempVendorCDR_20' ) end [2024-12-24 17:54:19] Production.INFO: ProcessCDR(1,14093835,1,1,2) [2024-12-24 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093835', 'tblTempUsageDetail_20' ) start [2024-12-24 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093835', 'tblTempUsageDetail_20' ) end [2024-12-24 17:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:54:24] Production.INFO: ==12231== Releasing lock... [2024-12-24 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:54:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:55:05 [end_date_ymd] => 2024-12-24 17:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:55:18] Production.INFO: count ==2732 [2024-12-24 17:55:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:55:05 - End Time 2024-12-24 17:55:05 [2024-12-24 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093840', 'tblTempUsageDetail_20' ) start [2024-12-24 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093840', 'tblTempUsageDetail_20' ) end [2024-12-24 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093840', 'tblTempVendorCDR_20' ) start [2024-12-24 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093840', 'tblTempVendorCDR_20' ) end [2024-12-24 17:55:19] Production.INFO: ProcessCDR(1,14093840,1,1,2) [2024-12-24 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093840', 'tblTempUsageDetail_20' ) start [2024-12-24 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093840', 'tblTempUsageDetail_20' ) end [2024-12-24 17:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:55:22] Production.INFO: ==12330== Releasing lock... [2024-12-24 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:55:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:56:04 [end_date_ymd] => 2024-12-24 17:56:04 [RateCDR] => 1 ) [2024-12-24 17: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` >= '2024-12-24 14:56:04' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:56:17] Production.INFO: count ==2727 [2024-12-24 17:56:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:56:04 - End Time 2024-12-24 17:56:04 [2024-12-24 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093845', 'tblTempUsageDetail_20' ) start [2024-12-24 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093845', 'tblTempUsageDetail_20' ) end [2024-12-24 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093845', 'tblTempVendorCDR_20' ) start [2024-12-24 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093845', 'tblTempVendorCDR_20' ) end [2024-12-24 17:56:18] Production.INFO: ProcessCDR(1,14093845,1,1,2) [2024-12-24 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093845', 'tblTempUsageDetail_20' ) start [2024-12-24 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093845', 'tblTempUsageDetail_20' ) end [2024-12-24 17:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:56:21] Production.INFO: ==12439== Releasing lock... [2024-12-24 17:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:56:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:57:05 [end_date_ymd] => 2024-12-24 17:57:05 [RateCDR] => 1 ) [2024-12-24 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:57:05' and `end` < '2024-12-24 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 17:57:18] Production.INFO: count ==2722 [2024-12-24 17:57:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:57:05 - End Time 2024-12-24 17:57:05 [2024-12-24 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093850', 'tblTempUsageDetail_20' ) start [2024-12-24 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093850', 'tblTempUsageDetail_20' ) end [2024-12-24 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093850', 'tblTempVendorCDR_20' ) start [2024-12-24 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093850', 'tblTempVendorCDR_20' ) end [2024-12-24 17:57:19] Production.INFO: ProcessCDR(1,14093850,1,1,2) [2024-12-24 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093850', 'tblTempUsageDetail_20' ) start [2024-12-24 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093850', 'tblTempUsageDetail_20' ) end [2024-12-24 17:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:57:22] Production.INFO: ==12536== Releasing lock... [2024-12-24 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:57:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:58:04 [end_date_ymd] => 2024-12-24 17:58:04 [RateCDR] => 1 ) [2024-12-24 17:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 14:58:04' and `end` < '2024-12-24 17: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 ,'') [2024-12-24 17:58:17] Production.INFO: count ==2765 [2024-12-24 17:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 14:58:04 - End Time 2024-12-24 17:58:04 [2024-12-24 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093855', 'tblTempUsageDetail_20' ) start [2024-12-24 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093855', 'tblTempUsageDetail_20' ) end [2024-12-24 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093855', 'tblTempVendorCDR_20' ) start [2024-12-24 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093855', 'tblTempVendorCDR_20' ) end [2024-12-24 17:58:18] Production.INFO: ProcessCDR(1,14093855,1,1,2) [2024-12-24 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093855', 'tblTempUsageDetail_20' ) start [2024-12-24 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093855', 'tblTempUsageDetail_20' ) end [2024-12-24 17:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:58:22] Production.INFO: ==12638== Releasing lock... [2024-12-24 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:58:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 14:59:05 [end_date_ymd] => 2024-12-24 17:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 14:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 17:59:18] Production.INFO: count ==2795 [2024-12-24 17:59:19] Production.ERROR: pbx CDR StartTime 2024-12-24 14:59:05 - End Time 2024-12-24 17:59:05 [2024-12-24 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093860', 'tblTempUsageDetail_20' ) start [2024-12-24 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093860', 'tblTempUsageDetail_20' ) end [2024-12-24 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093860', 'tblTempVendorCDR_20' ) start [2024-12-24 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093860', 'tblTempVendorCDR_20' ) end [2024-12-24 17:59:19] Production.INFO: ProcessCDR(1,14093860,1,1,2) [2024-12-24 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093860', 'tblTempUsageDetail_20' ) start [2024-12-24 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093860', 'tblTempUsageDetail_20' ) end [2024-12-24 17:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 17:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 17:59:22] Production.INFO: ==12742== Releasing lock... [2024-12-24 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 17:59:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:00:05 [end_date_ymd] => 2024-12-24 18:00:05 [RateCDR] => 1 ) [2024-12-24 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:00:05' and `end` < '2024-12-24 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:00:20] Production.INFO: count ==2795 [2024-12-24 18:00:21] Production.ERROR: pbx CDR StartTime 2024-12-24 15:00:05 - End Time 2024-12-24 18:00:05 [2024-12-24 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093866', 'tblTempUsageDetail_20' ) start [2024-12-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093866', 'tblTempUsageDetail_20' ) end [2024-12-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093866', 'tblTempVendorCDR_20' ) start [2024-12-24 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093866', 'tblTempVendorCDR_20' ) end [2024-12-24 18:00:21] Production.INFO: ProcessCDR(1,14093866,1,1,2) [2024-12-24 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093866', 'tblTempUsageDetail_20' ) start [2024-12-24 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093866', 'tblTempUsageDetail_20' ) end [2024-12-24 18:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:00:24] Production.INFO: ==12861== Releasing lock... [2024-12-24 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:00:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:01:05 [end_date_ymd] => 2024-12-24 18:01:05 [RateCDR] => 1 ) [2024-12-24 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:01:05' and `end` < '2024-12-24 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:01:18] Production.INFO: count ==2812 [2024-12-24 18:01:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:01:05 - End Time 2024-12-24 18:01:05 [2024-12-24 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093871', 'tblTempUsageDetail_20' ) start [2024-12-24 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093871', 'tblTempUsageDetail_20' ) end [2024-12-24 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093871', 'tblTempVendorCDR_20' ) start [2024-12-24 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093871', 'tblTempVendorCDR_20' ) end [2024-12-24 18:01:19] Production.INFO: ProcessCDR(1,14093871,1,1,2) [2024-12-24 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093871', 'tblTempUsageDetail_20' ) start [2024-12-24 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093871', 'tblTempUsageDetail_20' ) end [2024-12-24 18:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:01:24] Production.INFO: ==13019== Releasing lock... [2024-12-24 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:01:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:02:05 [end_date_ymd] => 2024-12-24 18:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:02:18] Production.INFO: count ==2815 [2024-12-24 18:02:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:02:05 - End Time 2024-12-24 18:02:05 [2024-12-24 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093876', 'tblTempUsageDetail_20' ) start [2024-12-24 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093876', 'tblTempUsageDetail_20' ) end [2024-12-24 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093876', 'tblTempVendorCDR_20' ) start [2024-12-24 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093876', 'tblTempVendorCDR_20' ) end [2024-12-24 18:02:19] Production.INFO: ProcessCDR(1,14093876,1,1,2) [2024-12-24 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093876', 'tblTempUsageDetail_20' ) start [2024-12-24 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093876', 'tblTempUsageDetail_20' ) end [2024-12-24 18:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:02:22] Production.INFO: ==13176== Releasing lock... [2024-12-24 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:02:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:03:04 [end_date_ymd] => 2024-12-24 18:03:04 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:03:04' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:03:17] Production.INFO: count ==2805 [2024-12-24 18:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:03:04 - End Time 2024-12-24 18:03:04 [2024-12-24 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093881', 'tblTempUsageDetail_20' ) start [2024-12-24 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093881', 'tblTempUsageDetail_20' ) end [2024-12-24 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093881', 'tblTempVendorCDR_20' ) start [2024-12-24 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093881', 'tblTempVendorCDR_20' ) end [2024-12-24 18:03:18] Production.INFO: ProcessCDR(1,14093881,1,1,2) [2024-12-24 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093881', 'tblTempUsageDetail_20' ) start [2024-12-24 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093881', 'tblTempUsageDetail_20' ) end [2024-12-24 18:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:03:22] Production.INFO: ==13277== Releasing lock... [2024-12-24 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:03:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:04:04 [end_date_ymd] => 2024-12-24 18:04:04 [RateCDR] => 1 ) [2024-12-24 18:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:04:04' and `end` < '2024-12-24 18:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:04:18] Production.INFO: count ==2791 [2024-12-24 18:04:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:04:04 - End Time 2024-12-24 18:04:04 [2024-12-24 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093886', 'tblTempUsageDetail_20' ) start [2024-12-24 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093886', 'tblTempUsageDetail_20' ) end [2024-12-24 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093886', 'tblTempVendorCDR_20' ) start [2024-12-24 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093886', 'tblTempVendorCDR_20' ) end [2024-12-24 18:04:19] Production.INFO: ProcessCDR(1,14093886,1,1,2) [2024-12-24 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093886', 'tblTempUsageDetail_20' ) start [2024-12-24 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093886', 'tblTempUsageDetail_20' ) end [2024-12-24 18:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:04:22] Production.INFO: ==13373== Releasing lock... [2024-12-24 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:04:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:05:04 [end_date_ymd] => 2024-12-24 18:05:04 [RateCDR] => 1 ) [2024-12-24 18:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:05:04' and `end` < '2024-12-24 18:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:05:17] Production.INFO: count ==2778 [2024-12-24 18:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:05:04 - End Time 2024-12-24 18:05:04 [2024-12-24 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093891', 'tblTempUsageDetail_20' ) start [2024-12-24 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093891', 'tblTempUsageDetail_20' ) end [2024-12-24 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093891', 'tblTempVendorCDR_20' ) start [2024-12-24 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093891', 'tblTempVendorCDR_20' ) end [2024-12-24 18:05:18] Production.INFO: ProcessCDR(1,14093891,1,1,2) [2024-12-24 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093891', 'tblTempUsageDetail_20' ) start [2024-12-24 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093891', 'tblTempUsageDetail_20' ) end [2024-12-24 18:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:05:23] Production.INFO: ==13476== Releasing lock... [2024-12-24 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:05:23] Production.INFO: 49 MB #Memory Used# [2024-12-24 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:06:05 [end_date_ymd] => 2024-12-24 18:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:06:18] Production.INFO: count ==2764 [2024-12-24 18:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:06:05 - End Time 2024-12-24 18:06:05 [2024-12-24 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093896', 'tblTempUsageDetail_20' ) start [2024-12-24 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093896', 'tblTempUsageDetail_20' ) end [2024-12-24 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093896', 'tblTempVendorCDR_20' ) start [2024-12-24 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093896', 'tblTempVendorCDR_20' ) end [2024-12-24 18:06:19] Production.INFO: ProcessCDR(1,14093896,1,1,2) [2024-12-24 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093896', 'tblTempUsageDetail_20' ) start [2024-12-24 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093896', 'tblTempUsageDetail_20' ) end [2024-12-24 18:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:06:24] Production.INFO: ==13579== Releasing lock... [2024-12-24 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:06:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:07:05 [end_date_ymd] => 2024-12-24 18:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:07:17] Production.INFO: count ==2762 [2024-12-24 18:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:07:05 - End Time 2024-12-24 18:07:05 [2024-12-24 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093901', 'tblTempUsageDetail_20' ) start [2024-12-24 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093901', 'tblTempUsageDetail_20' ) end [2024-12-24 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093901', 'tblTempVendorCDR_20' ) start [2024-12-24 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093901', 'tblTempVendorCDR_20' ) end [2024-12-24 18:07:19] Production.INFO: ProcessCDR(1,14093901,1,1,2) [2024-12-24 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093901', 'tblTempUsageDetail_20' ) start [2024-12-24 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093901', 'tblTempUsageDetail_20' ) end [2024-12-24 18:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:07:22] Production.INFO: ==13672== Releasing lock... [2024-12-24 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:07:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:08:05 [end_date_ymd] => 2024-12-24 18:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:08:17] Production.INFO: count ==2761 [2024-12-24 18:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:08:05 - End Time 2024-12-24 18:08:05 [2024-12-24 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093906', 'tblTempUsageDetail_20' ) start [2024-12-24 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093906', 'tblTempUsageDetail_20' ) end [2024-12-24 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093906', 'tblTempVendorCDR_20' ) start [2024-12-24 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093906', 'tblTempVendorCDR_20' ) end [2024-12-24 18:08:18] Production.INFO: ProcessCDR(1,14093906,1,1,2) [2024-12-24 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093906', 'tblTempUsageDetail_20' ) start [2024-12-24 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093906', 'tblTempUsageDetail_20' ) end [2024-12-24 18:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:08:21] Production.INFO: ==13771== Releasing lock... [2024-12-24 18:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:08:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:09:05 [end_date_ymd] => 2024-12-24 18:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:09:18] Production.INFO: count ==2749 [2024-12-24 18:09:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:09:05 - End Time 2024-12-24 18:09:05 [2024-12-24 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093911', 'tblTempUsageDetail_20' ) start [2024-12-24 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093911', 'tblTempUsageDetail_20' ) end [2024-12-24 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093911', 'tblTempVendorCDR_20' ) start [2024-12-24 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093911', 'tblTempVendorCDR_20' ) end [2024-12-24 18:09:19] Production.INFO: ProcessCDR(1,14093911,1,1,2) [2024-12-24 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093911', 'tblTempUsageDetail_20' ) start [2024-12-24 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093911', 'tblTempUsageDetail_20' ) end [2024-12-24 18:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:09:22] Production.INFO: ==13872== Releasing lock... [2024-12-24 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:09:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:10:05 [end_date_ymd] => 2024-12-24 18:10:05 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:10:05' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:10:18] Production.INFO: count ==2739 [2024-12-24 18:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:10:05 - End Time 2024-12-24 18:10:05 [2024-12-24 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093916', 'tblTempUsageDetail_20' ) start [2024-12-24 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093916', 'tblTempUsageDetail_20' ) end [2024-12-24 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093916', 'tblTempVendorCDR_20' ) start [2024-12-24 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093916', 'tblTempVendorCDR_20' ) end [2024-12-24 18:10:19] Production.INFO: ProcessCDR(1,14093916,1,1,2) [2024-12-24 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093916', 'tblTempUsageDetail_20' ) start [2024-12-24 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093916', 'tblTempUsageDetail_20' ) end [2024-12-24 18:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:10:24] Production.INFO: ==13967== Releasing lock... [2024-12-24 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:10:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:11:05 [end_date_ymd] => 2024-12-24 18:11:05 [RateCDR] => 1 ) [2024-12-24 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:11:05' and `end` < '2024-12-24 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:11:18] Production.INFO: count ==2731 [2024-12-24 18:11:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:11:05 - End Time 2024-12-24 18:11:05 [2024-12-24 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093922', 'tblTempUsageDetail_20' ) start [2024-12-24 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093922', 'tblTempUsageDetail_20' ) end [2024-12-24 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093922', 'tblTempVendorCDR_20' ) start [2024-12-24 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093922', 'tblTempVendorCDR_20' ) end [2024-12-24 18:11:19] Production.INFO: ProcessCDR(1,14093922,1,1,2) [2024-12-24 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093922', 'tblTempUsageDetail_20' ) start [2024-12-24 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093922', 'tblTempUsageDetail_20' ) end [2024-12-24 18:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:11:23] Production.INFO: ==14065== Releasing lock... [2024-12-24 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:11:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:12:04 [end_date_ymd] => 2024-12-24 18:12:04 [RateCDR] => 1 ) [2024-12-24 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:12:04' and `end` < '2024-12-24 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:12:18] Production.INFO: count ==2722 [2024-12-24 18:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:12:04 - End Time 2024-12-24 18:12:04 [2024-12-24 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093927', 'tblTempUsageDetail_20' ) start [2024-12-24 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093927', 'tblTempUsageDetail_20' ) end [2024-12-24 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093927', 'tblTempVendorCDR_20' ) start [2024-12-24 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093927', 'tblTempVendorCDR_20' ) end [2024-12-24 18:12:19] Production.INFO: ProcessCDR(1,14093927,1,1,2) [2024-12-24 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093927', 'tblTempUsageDetail_20' ) start [2024-12-24 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093927', 'tblTempUsageDetail_20' ) end [2024-12-24 18:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:12:22] Production.INFO: ==14164== Releasing lock... [2024-12-24 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:12:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:13:04 [end_date_ymd] => 2024-12-24 18:13:04 [RateCDR] => 1 ) [2024-12-24 18:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:13:04' and `end` < '2024-12-24 18:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:13:17] Production.INFO: count ==2721 [2024-12-24 18:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:13:04 - End Time 2024-12-24 18:13:04 [2024-12-24 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093932', 'tblTempUsageDetail_20' ) start [2024-12-24 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093932', 'tblTempUsageDetail_20' ) end [2024-12-24 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093932', 'tblTempVendorCDR_20' ) start [2024-12-24 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093932', 'tblTempVendorCDR_20' ) end [2024-12-24 18:13:18] Production.INFO: ProcessCDR(1,14093932,1,1,2) [2024-12-24 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093932', 'tblTempUsageDetail_20' ) start [2024-12-24 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093932', 'tblTempUsageDetail_20' ) end [2024-12-24 18:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:13:23] Production.INFO: ==14260== Releasing lock... [2024-12-24 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:13:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:14:05 [end_date_ymd] => 2024-12-24 18:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:14:18] Production.INFO: count ==2720 [2024-12-24 18:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:14:05 - End Time 2024-12-24 18:14:05 [2024-12-24 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093937', 'tblTempUsageDetail_20' ) start [2024-12-24 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093937', 'tblTempUsageDetail_20' ) end [2024-12-24 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093937', 'tblTempVendorCDR_20' ) start [2024-12-24 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093937', 'tblTempVendorCDR_20' ) end [2024-12-24 18:14:19] Production.INFO: ProcessCDR(1,14093937,1,1,2) [2024-12-24 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093937', 'tblTempUsageDetail_20' ) start [2024-12-24 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093937', 'tblTempUsageDetail_20' ) end [2024-12-24 18:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:14:22] Production.INFO: ==14363== Releasing lock... [2024-12-24 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:14:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:15:05 [end_date_ymd] => 2024-12-24 18:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:15:18] Production.INFO: count ==2717 [2024-12-24 18:15:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:15:05 - End Time 2024-12-24 18:15:05 [2024-12-24 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093942', 'tblTempUsageDetail_20' ) start [2024-12-24 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093942', 'tblTempUsageDetail_20' ) end [2024-12-24 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093942', 'tblTempVendorCDR_20' ) start [2024-12-24 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093942', 'tblTempVendorCDR_20' ) end [2024-12-24 18:15:19] Production.INFO: ProcessCDR(1,14093942,1,1,2) [2024-12-24 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093942', 'tblTempUsageDetail_20' ) start [2024-12-24 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093942', 'tblTempUsageDetail_20' ) end [2024-12-24 18:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:15:22] Production.INFO: ==14466== Releasing lock... [2024-12-24 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:15:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:16:05 [end_date_ymd] => 2024-12-24 18:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:16:18] Production.INFO: count ==2705 [2024-12-24 18:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:16:05 - End Time 2024-12-24 18:16:05 [2024-12-24 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093947', 'tblTempUsageDetail_20' ) start [2024-12-24 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093947', 'tblTempUsageDetail_20' ) end [2024-12-24 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093947', 'tblTempVendorCDR_20' ) start [2024-12-24 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093947', 'tblTempVendorCDR_20' ) end [2024-12-24 18:16:19] Production.INFO: ProcessCDR(1,14093947,1,1,2) [2024-12-24 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093947', 'tblTempUsageDetail_20' ) start [2024-12-24 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093947', 'tblTempUsageDetail_20' ) end [2024-12-24 18:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:16:22] Production.INFO: ==14561== Releasing lock... [2024-12-24 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:16:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:17:04 [end_date_ymd] => 2024-12-24 18:17:04 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:17:04' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:17:18] Production.INFO: count ==2698 [2024-12-24 18:17:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:17:04 - End Time 2024-12-24 18:17:04 [2024-12-24 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093952', 'tblTempUsageDetail_20' ) start [2024-12-24 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093952', 'tblTempUsageDetail_20' ) end [2024-12-24 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093952', 'tblTempVendorCDR_20' ) start [2024-12-24 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093952', 'tblTempVendorCDR_20' ) end [2024-12-24 18:17:19] Production.INFO: ProcessCDR(1,14093952,1,1,2) [2024-12-24 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093952', 'tblTempUsageDetail_20' ) start [2024-12-24 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093952', 'tblTempUsageDetail_20' ) end [2024-12-24 18:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:17:22] Production.INFO: ==14660== Releasing lock... [2024-12-24 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:17:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:18:04 [end_date_ymd] => 2024-12-24 18:18:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:18:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:18:18] Production.INFO: count ==2680 [2024-12-24 18:18:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:18:04 - End Time 2024-12-24 18:18:04 [2024-12-24 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093957', 'tblTempUsageDetail_20' ) start [2024-12-24 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093957', 'tblTempUsageDetail_20' ) end [2024-12-24 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093957', 'tblTempVendorCDR_20' ) start [2024-12-24 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093957', 'tblTempVendorCDR_20' ) end [2024-12-24 18:18:19] Production.INFO: ProcessCDR(1,14093957,1,1,2) [2024-12-24 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093957', 'tblTempUsageDetail_20' ) start [2024-12-24 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093957', 'tblTempUsageDetail_20' ) end [2024-12-24 18:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:18:22] Production.INFO: ==14795== Releasing lock... [2024-12-24 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:18:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:19:04 [end_date_ymd] => 2024-12-24 18:19:04 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:19:04' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:19:17] Production.INFO: count ==2656 [2024-12-24 18:19:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:19:04 - End Time 2024-12-24 18:19:04 [2024-12-24 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093962', 'tblTempUsageDetail_20' ) start [2024-12-24 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093962', 'tblTempUsageDetail_20' ) end [2024-12-24 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093962', 'tblTempVendorCDR_20' ) start [2024-12-24 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093962', 'tblTempVendorCDR_20' ) end [2024-12-24 18:19:18] Production.INFO: ProcessCDR(1,14093962,1,1,2) [2024-12-24 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093962', 'tblTempUsageDetail_20' ) start [2024-12-24 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093962', 'tblTempUsageDetail_20' ) end [2024-12-24 18:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:19:21] Production.INFO: ==14892== Releasing lock... [2024-12-24 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:19:21] Production.INFO: 48 MB #Memory Used# [2024-12-24 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:20:06 [end_date_ymd] => 2024-12-24 18:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:20:19] Production.INFO: count ==2630 [2024-12-24 18:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:20:06 - End Time 2024-12-24 18:20:06 [2024-12-24 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093968', 'tblTempUsageDetail_20' ) start [2024-12-24 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093968', 'tblTempUsageDetail_20' ) end [2024-12-24 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093968', 'tblTempVendorCDR_20' ) start [2024-12-24 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093968', 'tblTempVendorCDR_20' ) end [2024-12-24 18:20:19] Production.INFO: ProcessCDR(1,14093968,1,1,2) [2024-12-24 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093968', 'tblTempUsageDetail_20' ) start [2024-12-24 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093968', 'tblTempUsageDetail_20' ) end [2024-12-24 18:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:20:23] Production.INFO: ==14993== Releasing lock... [2024-12-24 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:20:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:21:06 [end_date_ymd] => 2024-12-24 18:21:06 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:21:06' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:21:19] Production.INFO: count ==2612 [2024-12-24 18:21:20] Production.ERROR: pbx CDR StartTime 2024-12-24 15:21:06 - End Time 2024-12-24 18:21:06 [2024-12-24 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093973', 'tblTempUsageDetail_20' ) start [2024-12-24 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093973', 'tblTempUsageDetail_20' ) end [2024-12-24 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093973', 'tblTempVendorCDR_20' ) start [2024-12-24 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093973', 'tblTempVendorCDR_20' ) end [2024-12-24 18:21:20] Production.INFO: ProcessCDR(1,14093973,1,1,2) [2024-12-24 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093973', 'tblTempUsageDetail_20' ) start [2024-12-24 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093973', 'tblTempUsageDetail_20' ) end [2024-12-24 18:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:21:23] Production.INFO: ==15098== Releasing lock... [2024-12-24 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:21:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:22:05 [end_date_ymd] => 2024-12-24 18:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:22:19] Production.INFO: count ==2582 [2024-12-24 18:22:20] Production.ERROR: pbx CDR StartTime 2024-12-24 15:22:05 - End Time 2024-12-24 18:22:05 [2024-12-24 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093978', 'tblTempUsageDetail_20' ) start [2024-12-24 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093978', 'tblTempUsageDetail_20' ) end [2024-12-24 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093978', 'tblTempVendorCDR_20' ) start [2024-12-24 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093978', 'tblTempVendorCDR_20' ) end [2024-12-24 18:22:20] Production.INFO: ProcessCDR(1,14093978,1,1,2) [2024-12-24 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093978', 'tblTempUsageDetail_20' ) start [2024-12-24 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093978', 'tblTempUsageDetail_20' ) end [2024-12-24 18:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:22:25] Production.INFO: ==15198== Releasing lock... [2024-12-24 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:22:25] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:23:06 [end_date_ymd] => 2024-12-24 18:23:06 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:23:06' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:23:19] Production.INFO: count ==2557 [2024-12-24 18:23:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:23:06 - End Time 2024-12-24 18:23:06 [2024-12-24 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093983', 'tblTempUsageDetail_20' ) start [2024-12-24 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093983', 'tblTempUsageDetail_20' ) end [2024-12-24 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093983', 'tblTempVendorCDR_20' ) start [2024-12-24 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093983', 'tblTempVendorCDR_20' ) end [2024-12-24 18:23:19] Production.INFO: ProcessCDR(1,14093983,1,1,2) [2024-12-24 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093983', 'tblTempUsageDetail_20' ) start [2024-12-24 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093983', 'tblTempUsageDetail_20' ) end [2024-12-24 18:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:23:22] Production.INFO: ==15298== Releasing lock... [2024-12-24 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:23:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:24:05 [end_date_ymd] => 2024-12-24 18:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:24:18] Production.INFO: count ==2566 [2024-12-24 18:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:24:05 - End Time 2024-12-24 18:24:05 [2024-12-24 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093988', 'tblTempUsageDetail_20' ) start [2024-12-24 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093988', 'tblTempUsageDetail_20' ) end [2024-12-24 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093988', 'tblTempVendorCDR_20' ) start [2024-12-24 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093988', 'tblTempVendorCDR_20' ) end [2024-12-24 18:24:19] Production.INFO: ProcessCDR(1,14093988,1,1,2) [2024-12-24 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093988', 'tblTempUsageDetail_20' ) start [2024-12-24 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093988', 'tblTempUsageDetail_20' ) end [2024-12-24 18:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:24:24] Production.INFO: ==15396== Releasing lock... [2024-12-24 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:24:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:25:05 [end_date_ymd] => 2024-12-24 18:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:25:18] Production.INFO: count ==2559 [2024-12-24 18:25:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:25:05 - End Time 2024-12-24 18:25:05 [2024-12-24 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093993', 'tblTempUsageDetail_20' ) start [2024-12-24 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093993', 'tblTempUsageDetail_20' ) end [2024-12-24 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093993', 'tblTempVendorCDR_20' ) start [2024-12-24 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093993', 'tblTempVendorCDR_20' ) end [2024-12-24 18:25:19] Production.INFO: ProcessCDR(1,14093993,1,1,2) [2024-12-24 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093993', 'tblTempUsageDetail_20' ) start [2024-12-24 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093993', 'tblTempUsageDetail_20' ) end [2024-12-24 18:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:25:22] Production.INFO: ==15491== Releasing lock... [2024-12-24 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:25:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:26:05 [end_date_ymd] => 2024-12-24 18:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:26:18] Production.INFO: count ==2550 [2024-12-24 18:26:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:26:05 - End Time 2024-12-24 18:26:05 [2024-12-24 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093998', 'tblTempUsageDetail_20' ) start [2024-12-24 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14093998', 'tblTempUsageDetail_20' ) end [2024-12-24 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093998', 'tblTempVendorCDR_20' ) start [2024-12-24 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14093998', 'tblTempVendorCDR_20' ) end [2024-12-24 18:26:19] Production.INFO: ProcessCDR(1,14093998,1,1,2) [2024-12-24 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14093998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14093998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14093998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14093998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093998', 'tblTempUsageDetail_20' ) start [2024-12-24 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14093998', 'tblTempUsageDetail_20' ) end [2024-12-24 18:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:26:24] Production.INFO: ==15589== Releasing lock... [2024-12-24 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:26:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:27:05 [end_date_ymd] => 2024-12-24 18:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:27:18] Production.INFO: count ==2525 [2024-12-24 18:27:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:27:05 - End Time 2024-12-24 18:27:05 [2024-12-24 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094003', 'tblTempUsageDetail_20' ) start [2024-12-24 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094003', 'tblTempUsageDetail_20' ) end [2024-12-24 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094003', 'tblTempVendorCDR_20' ) start [2024-12-24 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094003', 'tblTempVendorCDR_20' ) end [2024-12-24 18:27:19] Production.INFO: ProcessCDR(1,14094003,1,1,2) [2024-12-24 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094003', 'tblTempUsageDetail_20' ) start [2024-12-24 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094003', 'tblTempUsageDetail_20' ) end [2024-12-24 18:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:27:22] Production.INFO: ==15684== Releasing lock... [2024-12-24 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:27:22] Production.INFO: 47 MB #Memory Used# [2024-12-24 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:28:05 [end_date_ymd] => 2024-12-24 18:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:28:19] Production.INFO: count ==2488 [2024-12-24 18:28:20] Production.ERROR: pbx CDR StartTime 2024-12-24 15:28:05 - End Time 2024-12-24 18:28:05 [2024-12-24 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094008', 'tblTempUsageDetail_20' ) start [2024-12-24 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094008', 'tblTempUsageDetail_20' ) end [2024-12-24 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094008', 'tblTempVendorCDR_20' ) start [2024-12-24 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094008', 'tblTempVendorCDR_20' ) end [2024-12-24 18:28:20] Production.INFO: ProcessCDR(1,14094008,1,1,2) [2024-12-24 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094008', 'tblTempUsageDetail_20' ) start [2024-12-24 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094008', 'tblTempUsageDetail_20' ) end [2024-12-24 18:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:28:25] Production.INFO: ==15782== Releasing lock... [2024-12-24 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:28:25] Production.INFO: 46.75 MB #Memory Used# [2024-12-24 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:29:05 [end_date_ymd] => 2024-12-24 18:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:29:17] Production.INFO: count ==2460 [2024-12-24 18:29:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:29:05 - End Time 2024-12-24 18:29:05 [2024-12-24 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094013', 'tblTempUsageDetail_20' ) start [2024-12-24 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094013', 'tblTempUsageDetail_20' ) end [2024-12-24 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094013', 'tblTempVendorCDR_20' ) start [2024-12-24 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094013', 'tblTempVendorCDR_20' ) end [2024-12-24 18:29:18] Production.INFO: ProcessCDR(1,14094013,1,1,2) [2024-12-24 18:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094013', 'tblTempUsageDetail_20' ) start [2024-12-24 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094013', 'tblTempUsageDetail_20' ) end [2024-12-24 18:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:29:21] Production.INFO: ==15878== Releasing lock... [2024-12-24 18:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:29:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-24 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:30:05 [end_date_ymd] => 2024-12-24 18:30:05 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:30:05' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:30:18] Production.INFO: count ==2437 [2024-12-24 18:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:30:05 - End Time 2024-12-24 18:30:05 [2024-12-24 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094018', 'tblTempUsageDetail_20' ) start [2024-12-24 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094018', 'tblTempUsageDetail_20' ) end [2024-12-24 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094018', 'tblTempVendorCDR_20' ) start [2024-12-24 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094018', 'tblTempVendorCDR_20' ) end [2024-12-24 18:30:19] Production.INFO: ProcessCDR(1,14094018,1,1,2) [2024-12-24 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094018', 'tblTempUsageDetail_20' ) start [2024-12-24 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094018', 'tblTempUsageDetail_20' ) end [2024-12-24 18:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:30:22] Production.INFO: ==15950== Releasing lock... [2024-12-24 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:30:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-24 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:31:05 [end_date_ymd] => 2024-12-24 18:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:31:17] Production.INFO: count ==2483 [2024-12-24 18:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:31:05 - End Time 2024-12-24 18:31:05 [2024-12-24 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094024', 'tblTempUsageDetail_20' ) start [2024-12-24 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094024', 'tblTempUsageDetail_20' ) end [2024-12-24 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094024', 'tblTempVendorCDR_20' ) start [2024-12-24 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094024', 'tblTempVendorCDR_20' ) end [2024-12-24 18:31:18] Production.INFO: ProcessCDR(1,14094024,1,1,2) [2024-12-24 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094024', 'tblTempUsageDetail_20' ) start [2024-12-24 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094024', 'tblTempUsageDetail_20' ) end [2024-12-24 18:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:31:21] Production.INFO: ==16030== Releasing lock... [2024-12-24 18:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:31:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-24 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:32:05 [end_date_ymd] => 2024-12-24 18:32:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:32:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:32:17] Production.INFO: count ==2452 [2024-12-24 18:32:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:32:05 - End Time 2024-12-24 18:32:05 [2024-12-24 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094029', 'tblTempUsageDetail_20' ) start [2024-12-24 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094029', 'tblTempUsageDetail_20' ) end [2024-12-24 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094029', 'tblTempVendorCDR_20' ) start [2024-12-24 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094029', 'tblTempVendorCDR_20' ) end [2024-12-24 18:32:18] Production.INFO: ProcessCDR(1,14094029,1,1,2) [2024-12-24 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094029', 'tblTempUsageDetail_20' ) start [2024-12-24 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094029', 'tblTempUsageDetail_20' ) end [2024-12-24 18:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:32:21] Production.INFO: ==16103== Releasing lock... [2024-12-24 18:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:32:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-24 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:33:04 [end_date_ymd] => 2024-12-24 18:33:04 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:33:04' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:33:17] Production.INFO: count ==2432 [2024-12-24 18:33:17] Production.ERROR: pbx CDR StartTime 2024-12-24 15:33:04 - End Time 2024-12-24 18:33:04 [2024-12-24 18:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094034', 'tblTempUsageDetail_20' ) start [2024-12-24 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094034', 'tblTempUsageDetail_20' ) end [2024-12-24 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094034', 'tblTempVendorCDR_20' ) start [2024-12-24 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094034', 'tblTempVendorCDR_20' ) end [2024-12-24 18:33:17] Production.INFO: ProcessCDR(1,14094034,1,1,2) [2024-12-24 18:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094034', 'tblTempUsageDetail_20' ) start [2024-12-24 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094034', 'tblTempUsageDetail_20' ) end [2024-12-24 18:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:33:21] Production.INFO: ==16177== Releasing lock... [2024-12-24 18:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:33:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-24 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:34:05 [end_date_ymd] => 2024-12-24 18:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:34:18] Production.INFO: count ==2420 [2024-12-24 18:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:34:05 - End Time 2024-12-24 18:34:05 [2024-12-24 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094039', 'tblTempUsageDetail_20' ) start [2024-12-24 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094039', 'tblTempUsageDetail_20' ) end [2024-12-24 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094039', 'tblTempVendorCDR_20' ) start [2024-12-24 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094039', 'tblTempVendorCDR_20' ) end [2024-12-24 18:34:18] Production.INFO: ProcessCDR(1,14094039,1,1,2) [2024-12-24 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094039', 'tblTempUsageDetail_20' ) start [2024-12-24 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094039', 'tblTempUsageDetail_20' ) end [2024-12-24 18:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:34:22] Production.INFO: ==16293== Releasing lock... [2024-12-24 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:34:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-24 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:35:04 [end_date_ymd] => 2024-12-24 18:35:04 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:35:04' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:35:18] Production.INFO: count ==2423 [2024-12-24 18:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:35:04 - End Time 2024-12-24 18:35:04 [2024-12-24 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094044', 'tblTempUsageDetail_20' ) start [2024-12-24 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094044', 'tblTempUsageDetail_20' ) end [2024-12-24 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094044', 'tblTempVendorCDR_20' ) start [2024-12-24 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094044', 'tblTempVendorCDR_20' ) end [2024-12-24 18:35:18] Production.INFO: ProcessCDR(1,14094044,1,1,2) [2024-12-24 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094044', 'tblTempUsageDetail_20' ) start [2024-12-24 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094044', 'tblTempUsageDetail_20' ) end [2024-12-24 18:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:35:21] Production.INFO: ==16368== Releasing lock... [2024-12-24 18:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:35:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-24 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:36:05 [end_date_ymd] => 2024-12-24 18:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:36:18] Production.INFO: count ==2419 [2024-12-24 18:36:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:36:05 - End Time 2024-12-24 18:36:05 [2024-12-24 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094049', 'tblTempUsageDetail_20' ) start [2024-12-24 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094049', 'tblTempUsageDetail_20' ) end [2024-12-24 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094049', 'tblTempVendorCDR_20' ) start [2024-12-24 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094049', 'tblTempVendorCDR_20' ) end [2024-12-24 18:36:18] Production.INFO: ProcessCDR(1,14094049,1,1,2) [2024-12-24 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094049', 'tblTempUsageDetail_20' ) start [2024-12-24 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094049', 'tblTempUsageDetail_20' ) end [2024-12-24 18:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:36:23] Production.INFO: ==16440== Releasing lock... [2024-12-24 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:36:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-24 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:37:05 [end_date_ymd] => 2024-12-24 18:37:05 [RateCDR] => 1 ) [2024-12-24 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:37:05' and `end` < '2024-12-24 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:37:17] Production.INFO: count ==2415 [2024-12-24 18:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:37:05 - End Time 2024-12-24 18:37:05 [2024-12-24 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094054', 'tblTempUsageDetail_20' ) start [2024-12-24 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094054', 'tblTempUsageDetail_20' ) end [2024-12-24 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094054', 'tblTempVendorCDR_20' ) start [2024-12-24 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094054', 'tblTempVendorCDR_20' ) end [2024-12-24 18:37:18] Production.INFO: ProcessCDR(1,14094054,1,1,2) [2024-12-24 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094054', 'tblTempUsageDetail_20' ) start [2024-12-24 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094054', 'tblTempUsageDetail_20' ) end [2024-12-24 18:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:37:23] Production.INFO: ==16517== Releasing lock... [2024-12-24 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:37:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-24 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:38:05 [end_date_ymd] => 2024-12-24 18:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:38:19] Production.INFO: count ==2386 [2024-12-24 18:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:38:05 - End Time 2024-12-24 18:38:05 [2024-12-24 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094059', 'tblTempUsageDetail_20' ) start [2024-12-24 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094059', 'tblTempUsageDetail_20' ) end [2024-12-24 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094059', 'tblTempVendorCDR_20' ) start [2024-12-24 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094059', 'tblTempVendorCDR_20' ) end [2024-12-24 18:38:19] Production.INFO: ProcessCDR(1,14094059,1,1,2) [2024-12-24 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094059', 'tblTempUsageDetail_20' ) start [2024-12-24 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094059', 'tblTempUsageDetail_20' ) end [2024-12-24 18:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:38:24] Production.INFO: ==16594== Releasing lock... [2024-12-24 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:38:24] Production.INFO: 46 MB #Memory Used# [2024-12-24 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:39:04 [end_date_ymd] => 2024-12-24 18:39:04 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:39:04' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:39:17] Production.INFO: count ==2387 [2024-12-24 18:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:39:04 - End Time 2024-12-24 18:39:04 [2024-12-24 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094064', 'tblTempUsageDetail_20' ) start [2024-12-24 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094064', 'tblTempUsageDetail_20' ) end [2024-12-24 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094064', 'tblTempVendorCDR_20' ) start [2024-12-24 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094064', 'tblTempVendorCDR_20' ) end [2024-12-24 18:39:18] Production.INFO: ProcessCDR(1,14094064,1,1,2) [2024-12-24 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094064', 'tblTempUsageDetail_20' ) start [2024-12-24 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094064', 'tblTempUsageDetail_20' ) end [2024-12-24 18:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:39:21] Production.INFO: ==16665== Releasing lock... [2024-12-24 18:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:39:21] Production.INFO: 46 MB #Memory Used# [2024-12-24 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:40:05 [end_date_ymd] => 2024-12-24 18:40:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:40:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:40:18] Production.INFO: count ==2380 [2024-12-24 18:40:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:40:05 - End Time 2024-12-24 18:40:05 [2024-12-24 18:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094069', 'tblTempUsageDetail_20' ) start [2024-12-24 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094069', 'tblTempUsageDetail_20' ) end [2024-12-24 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094069', 'tblTempVendorCDR_20' ) start [2024-12-24 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094069', 'tblTempVendorCDR_20' ) end [2024-12-24 18:40:18] Production.INFO: ProcessCDR(1,14094069,1,1,2) [2024-12-24 18:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094069', 'tblTempUsageDetail_20' ) start [2024-12-24 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094069', 'tblTempUsageDetail_20' ) end [2024-12-24 18:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:40:23] Production.INFO: ==16741== Releasing lock... [2024-12-24 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:40:23] Production.INFO: 46 MB #Memory Used# [2024-12-24 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:41:05 [end_date_ymd] => 2024-12-24 18:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:41:18] Production.INFO: count ==2368 [2024-12-24 18:41:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:41:05 - End Time 2024-12-24 18:41:05 [2024-12-24 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094075', 'tblTempUsageDetail_20' ) start [2024-12-24 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094075', 'tblTempUsageDetail_20' ) end [2024-12-24 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094075', 'tblTempVendorCDR_20' ) start [2024-12-24 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094075', 'tblTempVendorCDR_20' ) end [2024-12-24 18:41:19] Production.INFO: ProcessCDR(1,14094075,1,1,2) [2024-12-24 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094075', 'tblTempUsageDetail_20' ) start [2024-12-24 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094075', 'tblTempUsageDetail_20' ) end [2024-12-24 18:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:41:22] Production.INFO: ==16819== Releasing lock... [2024-12-24 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:41:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:42:04 [end_date_ymd] => 2024-12-24 18:42:04 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:42:04' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:42:18] Production.INFO: count ==2355 [2024-12-24 18:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:42:04 - End Time 2024-12-24 18:42:04 [2024-12-24 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094080', 'tblTempUsageDetail_20' ) start [2024-12-24 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094080', 'tblTempUsageDetail_20' ) end [2024-12-24 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094080', 'tblTempVendorCDR_20' ) start [2024-12-24 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094080', 'tblTempVendorCDR_20' ) end [2024-12-24 18:42:18] Production.INFO: ProcessCDR(1,14094080,1,1,2) [2024-12-24 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094080', 'tblTempUsageDetail_20' ) start [2024-12-24 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094080', 'tblTempUsageDetail_20' ) end [2024-12-24 18:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:42:21] Production.INFO: ==16891== Releasing lock... [2024-12-24 18:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:42:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:43:05 [end_date_ymd] => 2024-12-24 18:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:43:17] Production.INFO: count ==2350 [2024-12-24 18:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:43:05 - End Time 2024-12-24 18:43:05 [2024-12-24 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094085', 'tblTempUsageDetail_20' ) start [2024-12-24 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094085', 'tblTempUsageDetail_20' ) end [2024-12-24 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094085', 'tblTempVendorCDR_20' ) start [2024-12-24 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094085', 'tblTempVendorCDR_20' ) end [2024-12-24 18:43:18] Production.INFO: ProcessCDR(1,14094085,1,1,2) [2024-12-24 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094085', 'tblTempUsageDetail_20' ) start [2024-12-24 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094085', 'tblTempUsageDetail_20' ) end [2024-12-24 18:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:43:23] Production.INFO: ==16964== Releasing lock... [2024-12-24 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:43:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:44:05 [end_date_ymd] => 2024-12-24 18:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:44:17] Production.INFO: count ==2349 [2024-12-24 18:44:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:44:05 - End Time 2024-12-24 18:44:05 [2024-12-24 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094090', 'tblTempUsageDetail_20' ) start [2024-12-24 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094090', 'tblTempUsageDetail_20' ) end [2024-12-24 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094090', 'tblTempVendorCDR_20' ) start [2024-12-24 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094090', 'tblTempVendorCDR_20' ) end [2024-12-24 18:44:18] Production.INFO: ProcessCDR(1,14094090,1,1,2) [2024-12-24 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094090', 'tblTempUsageDetail_20' ) start [2024-12-24 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094090', 'tblTempUsageDetail_20' ) end [2024-12-24 18:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:44:21] Production.INFO: ==17035== Releasing lock... [2024-12-24 18:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:44:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:45:05 [end_date_ymd] => 2024-12-24 18:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:45:18] Production.INFO: count ==2345 [2024-12-24 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:45:05 - End Time 2024-12-24 18:45:05 [2024-12-24 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094095', 'tblTempUsageDetail_20' ) start [2024-12-24 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094095', 'tblTempUsageDetail_20' ) end [2024-12-24 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094095', 'tblTempVendorCDR_20' ) start [2024-12-24 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094095', 'tblTempVendorCDR_20' ) end [2024-12-24 18:45:19] Production.INFO: ProcessCDR(1,14094095,1,1,2) [2024-12-24 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094095', 'tblTempUsageDetail_20' ) start [2024-12-24 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094095', 'tblTempUsageDetail_20' ) end [2024-12-24 18:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:45:22] Production.INFO: ==17110== Releasing lock... [2024-12-24 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:45:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:46:05 [end_date_ymd] => 2024-12-24 18:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:46:17] Production.INFO: count ==2343 [2024-12-24 18:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:46:05 - End Time 2024-12-24 18:46:05 [2024-12-24 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094100', 'tblTempUsageDetail_20' ) start [2024-12-24 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094100', 'tblTempUsageDetail_20' ) end [2024-12-24 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094100', 'tblTempVendorCDR_20' ) start [2024-12-24 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094100', 'tblTempVendorCDR_20' ) end [2024-12-24 18:46:18] Production.INFO: ProcessCDR(1,14094100,1,1,2) [2024-12-24 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094100', 'tblTempUsageDetail_20' ) start [2024-12-24 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094100', 'tblTempUsageDetail_20' ) end [2024-12-24 18:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:46:21] Production.INFO: ==17183== Releasing lock... [2024-12-24 18:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:46:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:47:05 [end_date_ymd] => 2024-12-24 18:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:47:18] Production.INFO: count ==2344 [2024-12-24 18:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:47:05 - End Time 2024-12-24 18:47:05 [2024-12-24 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094105', 'tblTempUsageDetail_20' ) start [2024-12-24 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094105', 'tblTempUsageDetail_20' ) end [2024-12-24 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094105', 'tblTempVendorCDR_20' ) start [2024-12-24 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094105', 'tblTempVendorCDR_20' ) end [2024-12-24 18:47:19] Production.INFO: ProcessCDR(1,14094105,1,1,2) [2024-12-24 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094105', 'tblTempUsageDetail_20' ) start [2024-12-24 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094105', 'tblTempUsageDetail_20' ) end [2024-12-24 18:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:47:22] Production.INFO: ==17255== Releasing lock... [2024-12-24 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:47:22] Production.INFO: 46 MB #Memory Used# [2024-12-24 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:48:05 [end_date_ymd] => 2024-12-24 18:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:48:17] Production.INFO: count ==2357 [2024-12-24 18:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:48:05 - End Time 2024-12-24 18:48:05 [2024-12-24 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094110', 'tblTempUsageDetail_20' ) start [2024-12-24 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094110', 'tblTempUsageDetail_20' ) end [2024-12-24 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094110', 'tblTempVendorCDR_20' ) start [2024-12-24 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094110', 'tblTempVendorCDR_20' ) end [2024-12-24 18:48:18] Production.INFO: ProcessCDR(1,14094110,1,1,2) [2024-12-24 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094110', 'tblTempUsageDetail_20' ) start [2024-12-24 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094110', 'tblTempUsageDetail_20' ) end [2024-12-24 18:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:48:21] Production.INFO: ==17330== Releasing lock... [2024-12-24 18:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:48:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:49:05 [end_date_ymd] => 2024-12-24 18:49:05 [RateCDR] => 1 ) [2024-12-24 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:49:17] Production.INFO: count ==2371 [2024-12-24 18:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:49:05 - End Time 2024-12-24 18:49:05 [2024-12-24 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094115', 'tblTempUsageDetail_20' ) start [2024-12-24 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094115', 'tblTempUsageDetail_20' ) end [2024-12-24 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094115', 'tblTempVendorCDR_20' ) start [2024-12-24 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094115', 'tblTempVendorCDR_20' ) end [2024-12-24 18:49:18] Production.INFO: ProcessCDR(1,14094115,1,1,2) [2024-12-24 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094115', 'tblTempUsageDetail_20' ) start [2024-12-24 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094115', 'tblTempUsageDetail_20' ) end [2024-12-24 18:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:49:23] Production.INFO: ==17443== Releasing lock... [2024-12-24 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:49:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:50:05 [end_date_ymd] => 2024-12-24 18:50:05 [RateCDR] => 1 ) [2024-12-24 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:50:05' and `end` < '2024-12-24 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:50:18] Production.INFO: count ==2366 [2024-12-24 18:50:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:50:05 - End Time 2024-12-24 18:50:05 [2024-12-24 18:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094121', 'tblTempUsageDetail_20' ) start [2024-12-24 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094121', 'tblTempUsageDetail_20' ) end [2024-12-24 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094121', 'tblTempVendorCDR_20' ) start [2024-12-24 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094121', 'tblTempVendorCDR_20' ) end [2024-12-24 18:50:18] Production.INFO: ProcessCDR(1,14094121,1,1,2) [2024-12-24 18:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094121', 'tblTempUsageDetail_20' ) start [2024-12-24 18:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094121', 'tblTempUsageDetail_20' ) end [2024-12-24 18:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:50:21] Production.INFO: ==17521== Releasing lock... [2024-12-24 18:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:50:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:51:04 [end_date_ymd] => 2024-12-24 18:51:04 [RateCDR] => 1 ) [2024-12-24 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:51:04' and `end` < '2024-12-24 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:51:17] Production.INFO: count ==2377 [2024-12-24 18:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:51:04 - End Time 2024-12-24 18:51:04 [2024-12-24 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094126', 'tblTempUsageDetail_20' ) start [2024-12-24 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094126', 'tblTempUsageDetail_20' ) end [2024-12-24 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094126', 'tblTempVendorCDR_20' ) start [2024-12-24 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094126', 'tblTempVendorCDR_20' ) end [2024-12-24 18:51:18] Production.INFO: ProcessCDR(1,14094126,1,1,2) [2024-12-24 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094126', 'tblTempUsageDetail_20' ) start [2024-12-24 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094126', 'tblTempUsageDetail_20' ) end [2024-12-24 18:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:51:21] Production.INFO: ==17598== Releasing lock... [2024-12-24 18:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:51:21] Production.INFO: 46 MB #Memory Used# [2024-12-24 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:52:05 [end_date_ymd] => 2024-12-24 18:52:05 [RateCDR] => 1 ) [2024-12-24 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:52:05' and `end` < '2024-12-24 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:52:17] Production.INFO: count ==2368 [2024-12-24 18:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:52:05 - End Time 2024-12-24 18:52:05 [2024-12-24 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094129', 'tblTempUsageDetail_20' ) start [2024-12-24 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094129', 'tblTempUsageDetail_20' ) end [2024-12-24 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094129', 'tblTempVendorCDR_20' ) start [2024-12-24 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094129', 'tblTempVendorCDR_20' ) end [2024-12-24 18:52:18] Production.INFO: ProcessCDR(1,14094129,1,1,2) [2024-12-24 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094129', 'tblTempUsageDetail_20' ) start [2024-12-24 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094129', 'tblTempUsageDetail_20' ) end [2024-12-24 18:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:52:21] Production.INFO: ==17667== Releasing lock... [2024-12-24 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:52:21] Production.INFO: 46 MB #Memory Used# [2024-12-24 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:53:04 [end_date_ymd] => 2024-12-24 18:53:04 [RateCDR] => 1 ) [2024-12-24 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:53:04' and `end` < '2024-12-24 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:53:17] Production.INFO: count ==2364 [2024-12-24 18:53:17] Production.ERROR: pbx CDR StartTime 2024-12-24 15:53:04 - End Time 2024-12-24 18:53:04 [2024-12-24 18:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094136', 'tblTempUsageDetail_20' ) start [2024-12-24 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094136', 'tblTempUsageDetail_20' ) end [2024-12-24 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094136', 'tblTempVendorCDR_20' ) start [2024-12-24 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094136', 'tblTempVendorCDR_20' ) end [2024-12-24 18:53:17] Production.INFO: ProcessCDR(1,14094136,1,1,2) [2024-12-24 18:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094136', 'tblTempUsageDetail_20' ) start [2024-12-24 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094136', 'tblTempUsageDetail_20' ) end [2024-12-24 18:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:53:22] Production.INFO: ==17741== Releasing lock... [2024-12-24 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:53:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:54:05 [end_date_ymd] => 2024-12-24 18:54:05 [RateCDR] => 1 ) [2024-12-24 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:54:05' and `end` < '2024-12-24 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:54:19] Production.INFO: count ==2362 [2024-12-24 18:54:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:54:05 - End Time 2024-12-24 18:54:05 [2024-12-24 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094141', 'tblTempUsageDetail_20' ) start [2024-12-24 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094141', 'tblTempUsageDetail_20' ) end [2024-12-24 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094141', 'tblTempVendorCDR_20' ) start [2024-12-24 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094141', 'tblTempVendorCDR_20' ) end [2024-12-24 18:54:19] Production.INFO: ProcessCDR(1,14094141,1,1,2) [2024-12-24 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094141', 'tblTempUsageDetail_20' ) start [2024-12-24 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094141', 'tblTempUsageDetail_20' ) end [2024-12-24 18:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:54:22] Production.INFO: ==17816== Releasing lock... [2024-12-24 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:54:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:55:04 [end_date_ymd] => 2024-12-24 18:55:04 [RateCDR] => 1 ) [2024-12-24 18:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:55:04' and `end` < '2024-12-24 18:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:55:18] Production.INFO: count ==2363 [2024-12-24 18:55:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:55:04 - End Time 2024-12-24 18:55:04 [2024-12-24 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094146', 'tblTempUsageDetail_20' ) start [2024-12-24 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094146', 'tblTempUsageDetail_20' ) end [2024-12-24 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094146', 'tblTempVendorCDR_20' ) start [2024-12-24 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094146', 'tblTempVendorCDR_20' ) end [2024-12-24 18:55:19] Production.INFO: ProcessCDR(1,14094146,1,1,2) [2024-12-24 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094146', 'tblTempUsageDetail_20' ) start [2024-12-24 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094146', 'tblTempUsageDetail_20' ) end [2024-12-24 18:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:55:24] Production.INFO: ==17889== Releasing lock... [2024-12-24 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:55:24] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:56:05 [end_date_ymd] => 2024-12-24 18:56:05 [RateCDR] => 1 ) [2024-12-24 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 15:56:05' and `end` < '2024-12-24 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 18:56:18] Production.INFO: count ==2352 [2024-12-24 18:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:56:05 - End Time 2024-12-24 18:56:05 [2024-12-24 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094151', 'tblTempUsageDetail_20' ) start [2024-12-24 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094151', 'tblTempUsageDetail_20' ) end [2024-12-24 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094151', 'tblTempVendorCDR_20' ) start [2024-12-24 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094151', 'tblTempVendorCDR_20' ) end [2024-12-24 18:56:19] Production.INFO: ProcessCDR(1,14094151,1,1,2) [2024-12-24 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094151', 'tblTempUsageDetail_20' ) start [2024-12-24 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094151', 'tblTempUsageDetail_20' ) end [2024-12-24 18:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:56:23] Production.INFO: ==17965== Releasing lock... [2024-12-24 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:56:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:57:05 [end_date_ymd] => 2024-12-24 18:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:57:18] Production.INFO: count ==2352 [2024-12-24 18:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 15:57:05 - End Time 2024-12-24 18:57:05 [2024-12-24 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094156', 'tblTempUsageDetail_20' ) start [2024-12-24 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094156', 'tblTempUsageDetail_20' ) end [2024-12-24 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094156', 'tblTempVendorCDR_20' ) start [2024-12-24 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094156', 'tblTempVendorCDR_20' ) end [2024-12-24 18:57:18] Production.INFO: ProcessCDR(1,14094156,1,1,2) [2024-12-24 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094156', 'tblTempUsageDetail_20' ) start [2024-12-24 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094156', 'tblTempUsageDetail_20' ) end [2024-12-24 18:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:57:22] Production.INFO: ==18039== Releasing lock... [2024-12-24 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:57:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:58:05 [end_date_ymd] => 2024-12-24 18:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 15:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 18:58:18] Production.INFO: count ==2353 [2024-12-24 18:58:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:58:05 - End Time 2024-12-24 18:58:05 [2024-12-24 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094161', 'tblTempUsageDetail_20' ) start [2024-12-24 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094161', 'tblTempUsageDetail_20' ) end [2024-12-24 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094161', 'tblTempVendorCDR_20' ) start [2024-12-24 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094161', 'tblTempVendorCDR_20' ) end [2024-12-24 18:58:19] Production.INFO: ProcessCDR(1,14094161,1,1,2) [2024-12-24 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094161', 'tblTempUsageDetail_20' ) start [2024-12-24 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094161', 'tblTempUsageDetail_20' ) end [2024-12-24 18:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:58:22] Production.INFO: ==18110== Releasing lock... [2024-12-24 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:58:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 15:59:06 [end_date_ymd] => 2024-12-24 18:59:06 [RateCDR] => 1 ) [2024-12-24 18: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` >= '2024-12-24 15:59:06' and `end` < '2024-12-24 18: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 ,'') [2024-12-24 18:59:18] Production.INFO: count ==2353 [2024-12-24 18:59:19] Production.ERROR: pbx CDR StartTime 2024-12-24 15:59:06 - End Time 2024-12-24 18:59:06 [2024-12-24 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094166', 'tblTempUsageDetail_20' ) start [2024-12-24 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094166', 'tblTempUsageDetail_20' ) end [2024-12-24 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094166', 'tblTempVendorCDR_20' ) start [2024-12-24 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094166', 'tblTempVendorCDR_20' ) end [2024-12-24 18:59:19] Production.INFO: ProcessCDR(1,14094166,1,1,2) [2024-12-24 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094166', 'tblTempUsageDetail_20' ) start [2024-12-24 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094166', 'tblTempUsageDetail_20' ) end [2024-12-24 18:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 18:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 18:59:24] Production.INFO: ==18182== Releasing lock... [2024-12-24 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 18:59:24] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:00:05 [end_date_ymd] => 2024-12-24 19:00:05 [RateCDR] => 1 ) [2024-12-24 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:00:05' and `end` < '2024-12-24 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:00:19] Production.INFO: count ==2338 [2024-12-24 19:00:20] Production.ERROR: pbx CDR StartTime 2024-12-24 16:00:05 - End Time 2024-12-24 19:00:05 [2024-12-24 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094171', 'tblTempUsageDetail_20' ) start [2024-12-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094171', 'tblTempUsageDetail_20' ) end [2024-12-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094171', 'tblTempVendorCDR_20' ) start [2024-12-24 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094171', 'tblTempVendorCDR_20' ) end [2024-12-24 19:00:20] Production.INFO: ProcessCDR(1,14094171,1,1,2) [2024-12-24 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094171', 'tblTempUsageDetail_20' ) start [2024-12-24 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094171', 'tblTempUsageDetail_20' ) end [2024-12-24 19:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:00:23] Production.INFO: ==18253== Releasing lock... [2024-12-24 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:00:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:01:04 [end_date_ymd] => 2024-12-24 19:01:04 [RateCDR] => 1 ) [2024-12-24 19:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:01:04' and `end` < '2024-12-24 19:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:01:17] Production.INFO: count ==2342 [2024-12-24 19:01:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:01:04 - End Time 2024-12-24 19:01:04 [2024-12-24 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094176', 'tblTempUsageDetail_20' ) start [2024-12-24 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094176', 'tblTempUsageDetail_20' ) end [2024-12-24 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094176', 'tblTempVendorCDR_20' ) start [2024-12-24 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094176', 'tblTempVendorCDR_20' ) end [2024-12-24 19:01:18] Production.INFO: ProcessCDR(1,14094176,1,1,2) [2024-12-24 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094176', 'tblTempUsageDetail_20' ) start [2024-12-24 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094176', 'tblTempUsageDetail_20' ) end [2024-12-24 19:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:01:21] Production.INFO: ==18418== Releasing lock... [2024-12-24 19:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:01:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:02:04 [end_date_ymd] => 2024-12-24 19:02:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:02:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:02:17] Production.INFO: count ==2303 [2024-12-24 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:02:04 - End Time 2024-12-24 19:02:04 [2024-12-24 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094182', 'tblTempUsageDetail_20' ) start [2024-12-24 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094182', 'tblTempUsageDetail_20' ) end [2024-12-24 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094182', 'tblTempVendorCDR_20' ) start [2024-12-24 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094182', 'tblTempVendorCDR_20' ) end [2024-12-24 19:02:18] Production.INFO: ProcessCDR(1,14094182,1,1,2) [2024-12-24 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094182', 'tblTempUsageDetail_20' ) start [2024-12-24 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094182', 'tblTempUsageDetail_20' ) end [2024-12-24 19:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:02:22] Production.INFO: ==18490== Releasing lock... [2024-12-24 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:02:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:03:05 [end_date_ymd] => 2024-12-24 19:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:03:18] Production.INFO: count ==2287 [2024-12-24 19:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:03:05 - End Time 2024-12-24 19:03:05 [2024-12-24 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094187', 'tblTempUsageDetail_20' ) start [2024-12-24 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094187', 'tblTempUsageDetail_20' ) end [2024-12-24 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094187', 'tblTempVendorCDR_20' ) start [2024-12-24 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094187', 'tblTempVendorCDR_20' ) end [2024-12-24 19:03:19] Production.INFO: ProcessCDR(1,14094187,1,1,2) [2024-12-24 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094187', 'tblTempUsageDetail_20' ) start [2024-12-24 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094187', 'tblTempUsageDetail_20' ) end [2024-12-24 19:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:03:22] Production.INFO: ==18561== Releasing lock... [2024-12-24 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:03:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:04:04 [end_date_ymd] => 2024-12-24 19:04:04 [RateCDR] => 1 ) [2024-12-24 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:04:04' and `end` < '2024-12-24 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:04:17] Production.INFO: count ==2255 [2024-12-24 19:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:04:04 - End Time 2024-12-24 19:04:04 [2024-12-24 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094192', 'tblTempUsageDetail_20' ) start [2024-12-24 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094192', 'tblTempUsageDetail_20' ) end [2024-12-24 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094192', 'tblTempVendorCDR_20' ) start [2024-12-24 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094192', 'tblTempVendorCDR_20' ) end [2024-12-24 19:04:18] Production.INFO: ProcessCDR(1,14094192,1,1,2) [2024-12-24 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094192', 'tblTempUsageDetail_20' ) start [2024-12-24 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094192', 'tblTempUsageDetail_20' ) end [2024-12-24 19:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:04:21] Production.INFO: ==18636== Releasing lock... [2024-12-24 19:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:04:21] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:05:05 [end_date_ymd] => 2024-12-24 19:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:05:20] Production.INFO: count ==2252 [2024-12-24 19:05:20] Production.ERROR: pbx CDR StartTime 2024-12-24 16:05:05 - End Time 2024-12-24 19:05:05 [2024-12-24 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094197', 'tblTempUsageDetail_20' ) start [2024-12-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094197', 'tblTempUsageDetail_20' ) end [2024-12-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094197', 'tblTempVendorCDR_20' ) start [2024-12-24 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094197', 'tblTempVendorCDR_20' ) end [2024-12-24 19:05:20] Production.INFO: ProcessCDR(1,14094197,1,1,2) [2024-12-24 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094197', 'tblTempUsageDetail_20' ) start [2024-12-24 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094197', 'tblTempUsageDetail_20' ) end [2024-12-24 19:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:05:23] Production.INFO: ==18828== Releasing lock... [2024-12-24 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:05:23] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:06:04 [end_date_ymd] => 2024-12-24 19:06:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:06:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:06:18] Production.INFO: count ==2259 [2024-12-24 19:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:06:04 - End Time 2024-12-24 19:06:04 [2024-12-24 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094202', 'tblTempUsageDetail_20' ) start [2024-12-24 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094202', 'tblTempUsageDetail_20' ) end [2024-12-24 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094202', 'tblTempVendorCDR_20' ) start [2024-12-24 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094202', 'tblTempVendorCDR_20' ) end [2024-12-24 19:06:19] Production.INFO: ProcessCDR(1,14094202,1,1,2) [2024-12-24 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094202', 'tblTempUsageDetail_20' ) start [2024-12-24 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094202', 'tblTempUsageDetail_20' ) end [2024-12-24 19:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:06:23] Production.INFO: ==18904== Releasing lock... [2024-12-24 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:06:23] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:07:05 [end_date_ymd] => 2024-12-24 19:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:07:18] Production.INFO: count ==2258 [2024-12-24 19:07:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:07:05 - End Time 2024-12-24 19:07:05 [2024-12-24 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094207', 'tblTempUsageDetail_20' ) start [2024-12-24 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094207', 'tblTempUsageDetail_20' ) end [2024-12-24 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094207', 'tblTempVendorCDR_20' ) start [2024-12-24 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094207', 'tblTempVendorCDR_20' ) end [2024-12-24 19:07:19] Production.INFO: ProcessCDR(1,14094207,1,1,2) [2024-12-24 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094207', 'tblTempUsageDetail_20' ) start [2024-12-24 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094207', 'tblTempUsageDetail_20' ) end [2024-12-24 19:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:07:23] Production.INFO: ==18978== Releasing lock... [2024-12-24 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:07:23] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:08:05 [end_date_ymd] => 2024-12-24 19:08:05 [RateCDR] => 1 ) [2024-12-24 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:08:05' and `end` < '2024-12-24 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:08:17] Production.INFO: count ==2264 [2024-12-24 19:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:08:05 - End Time 2024-12-24 19:08:05 [2024-12-24 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094212', 'tblTempUsageDetail_20' ) start [2024-12-24 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094212', 'tblTempUsageDetail_20' ) end [2024-12-24 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094212', 'tblTempVendorCDR_20' ) start [2024-12-24 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094212', 'tblTempVendorCDR_20' ) end [2024-12-24 19:08:18] Production.INFO: ProcessCDR(1,14094212,1,1,2) [2024-12-24 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094212', 'tblTempUsageDetail_20' ) start [2024-12-24 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094212', 'tblTempUsageDetail_20' ) end [2024-12-24 19:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:08:21] Production.INFO: ==19126== Releasing lock... [2024-12-24 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:08:21] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:09:05 [end_date_ymd] => 2024-12-24 19:09:05 [RateCDR] => 1 ) [2024-12-24 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:09:18] Production.INFO: count ==2265 [2024-12-24 19:09:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:09:05 - End Time 2024-12-24 19:09:05 [2024-12-24 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094217', 'tblTempUsageDetail_20' ) start [2024-12-24 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094217', 'tblTempUsageDetail_20' ) end [2024-12-24 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094217', 'tblTempVendorCDR_20' ) start [2024-12-24 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094217', 'tblTempVendorCDR_20' ) end [2024-12-24 19:09:18] Production.INFO: ProcessCDR(1,14094217,1,1,2) [2024-12-24 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094217', 'tblTempUsageDetail_20' ) start [2024-12-24 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094217', 'tblTempUsageDetail_20' ) end [2024-12-24 19:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:09:21] Production.INFO: ==19197== Releasing lock... [2024-12-24 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:09:21] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:10:06 [end_date_ymd] => 2024-12-24 19:10:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:10:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:10:19] Production.INFO: count ==2268 [2024-12-24 19:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:10:06 - End Time 2024-12-24 19:10:06 [2024-12-24 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094223', 'tblTempUsageDetail_20' ) start [2024-12-24 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094223', 'tblTempUsageDetail_20' ) end [2024-12-24 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094223', 'tblTempVendorCDR_20' ) start [2024-12-24 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094223', 'tblTempVendorCDR_20' ) end [2024-12-24 19:10:19] Production.INFO: ProcessCDR(1,14094223,1,1,2) [2024-12-24 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094223', 'tblTempUsageDetail_20' ) start [2024-12-24 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094223', 'tblTempUsageDetail_20' ) end [2024-12-24 19:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:10:24] Production.INFO: ==19274== Releasing lock... [2024-12-24 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:10:24] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:11:04 [end_date_ymd] => 2024-12-24 19:11:04 [RateCDR] => 1 ) [2024-12-24 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:11:04' and `end` < '2024-12-24 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:11:18] Production.INFO: count ==2286 [2024-12-24 19:11:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:11:04 - End Time 2024-12-24 19:11:04 [2024-12-24 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094228', 'tblTempUsageDetail_20' ) start [2024-12-24 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094228', 'tblTempUsageDetail_20' ) end [2024-12-24 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094228', 'tblTempVendorCDR_20' ) start [2024-12-24 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094228', 'tblTempVendorCDR_20' ) end [2024-12-24 19:11:18] Production.INFO: ProcessCDR(1,14094228,1,1,2) [2024-12-24 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094228', 'tblTempUsageDetail_20' ) start [2024-12-24 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094228', 'tblTempUsageDetail_20' ) end [2024-12-24 19:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:11:23] Production.INFO: ==19348== Releasing lock... [2024-12-24 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:11:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:12:05 [end_date_ymd] => 2024-12-24 19:12:05 [RateCDR] => 1 ) [2024-12-24 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:12:05' and `end` < '2024-12-24 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:12:18] Production.INFO: count ==2289 [2024-12-24 19:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:12:05 - End Time 2024-12-24 19:12:05 [2024-12-24 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094233', 'tblTempUsageDetail_20' ) start [2024-12-24 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094233', 'tblTempUsageDetail_20' ) end [2024-12-24 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094233', 'tblTempVendorCDR_20' ) start [2024-12-24 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094233', 'tblTempVendorCDR_20' ) end [2024-12-24 19:12:18] Production.INFO: ProcessCDR(1,14094233,1,1,2) [2024-12-24 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094233', 'tblTempUsageDetail_20' ) start [2024-12-24 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094233', 'tblTempUsageDetail_20' ) end [2024-12-24 19:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:12:23] Production.INFO: ==19499== Releasing lock... [2024-12-24 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:12:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:13:05 [end_date_ymd] => 2024-12-24 19:13:05 [RateCDR] => 1 ) [2024-12-24 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:13:05' and `end` < '2024-12-24 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:13:17] Production.INFO: count ==2291 [2024-12-24 19:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:13:05 - End Time 2024-12-24 19:13:05 [2024-12-24 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094238', 'tblTempUsageDetail_20' ) start [2024-12-24 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094238', 'tblTempUsageDetail_20' ) end [2024-12-24 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094238', 'tblTempVendorCDR_20' ) start [2024-12-24 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094238', 'tblTempVendorCDR_20' ) end [2024-12-24 19:13:18] Production.INFO: ProcessCDR(1,14094238,1,1,2) [2024-12-24 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094238', 'tblTempUsageDetail_20' ) start [2024-12-24 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094238', 'tblTempUsageDetail_20' ) end [2024-12-24 19:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:13:21] Production.INFO: ==19569== Releasing lock... [2024-12-24 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:13:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:14:05 [end_date_ymd] => 2024-12-24 19:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:14:18] Production.INFO: count ==2280 [2024-12-24 19:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:14:05 - End Time 2024-12-24 19:14:05 [2024-12-24 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094243', 'tblTempUsageDetail_20' ) start [2024-12-24 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094243', 'tblTempUsageDetail_20' ) end [2024-12-24 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094243', 'tblTempVendorCDR_20' ) start [2024-12-24 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094243', 'tblTempVendorCDR_20' ) end [2024-12-24 19:14:18] Production.INFO: ProcessCDR(1,14094243,1,1,2) [2024-12-24 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094243', 'tblTempUsageDetail_20' ) start [2024-12-24 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094243', 'tblTempUsageDetail_20' ) end [2024-12-24 19:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:14:22] Production.INFO: ==19638== Releasing lock... [2024-12-24 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:14:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:15:05 [end_date_ymd] => 2024-12-24 19:15:05 [RateCDR] => 1 ) [2024-12-24 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:15:05' and `end` < '2024-12-24 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:15:17] Production.INFO: count ==2282 [2024-12-24 19:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:15:05 - End Time 2024-12-24 19:15:05 [2024-12-24 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094248', 'tblTempUsageDetail_20' ) start [2024-12-24 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094248', 'tblTempUsageDetail_20' ) end [2024-12-24 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094248', 'tblTempVendorCDR_20' ) start [2024-12-24 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094248', 'tblTempVendorCDR_20' ) end [2024-12-24 19:15:18] Production.INFO: ProcessCDR(1,14094248,1,1,2) [2024-12-24 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094248', 'tblTempUsageDetail_20' ) start [2024-12-24 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094248', 'tblTempUsageDetail_20' ) end [2024-12-24 19:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:15:21] Production.INFO: ==19786== Releasing lock... [2024-12-24 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:15:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:16:05 [end_date_ymd] => 2024-12-24 19:16:05 [RateCDR] => 1 ) [2024-12-24 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:16:05' and `end` < '2024-12-24 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:16:18] Production.INFO: count ==2286 [2024-12-24 19:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:16:05 - End Time 2024-12-24 19:16:05 [2024-12-24 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094253', 'tblTempUsageDetail_20' ) start [2024-12-24 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094253', 'tblTempUsageDetail_20' ) end [2024-12-24 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094253', 'tblTempVendorCDR_20' ) start [2024-12-24 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094253', 'tblTempVendorCDR_20' ) end [2024-12-24 19:16:19] Production.INFO: ProcessCDR(1,14094253,1,1,2) [2024-12-24 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094253', 'tblTempUsageDetail_20' ) start [2024-12-24 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094253', 'tblTempUsageDetail_20' ) end [2024-12-24 19:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:16:22] Production.INFO: ==19857== Releasing lock... [2024-12-24 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:16:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:17:04 [end_date_ymd] => 2024-12-24 19:17:04 [RateCDR] => 1 ) [2024-12-24 19:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:17:04' and `end` < '2024-12-24 19:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:17:17] Production.INFO: count ==2293 [2024-12-24 19:17:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:17:04 - End Time 2024-12-24 19:17:04 [2024-12-24 19:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094258', 'tblTempUsageDetail_20' ) start [2024-12-24 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094258', 'tblTempUsageDetail_20' ) end [2024-12-24 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094258', 'tblTempVendorCDR_20' ) start [2024-12-24 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094258', 'tblTempVendorCDR_20' ) end [2024-12-24 19:17:17] Production.INFO: ProcessCDR(1,14094258,1,1,2) [2024-12-24 19:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094258', 'tblTempUsageDetail_20' ) start [2024-12-24 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094258', 'tblTempUsageDetail_20' ) end [2024-12-24 19:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:17:21] Production.INFO: ==19932== Releasing lock... [2024-12-24 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:17:21] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:18:05 [end_date_ymd] => 2024-12-24 19:18:05 [RateCDR] => 1 ) [2024-12-24 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:18:05' and `end` < '2024-12-24 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:18:18] Production.INFO: count ==2309 [2024-12-24 19:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:18:05 - End Time 2024-12-24 19:18:05 [2024-12-24 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094263', 'tblTempUsageDetail_20' ) start [2024-12-24 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094263', 'tblTempUsageDetail_20' ) end [2024-12-24 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094263', 'tblTempVendorCDR_20' ) start [2024-12-24 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094263', 'tblTempVendorCDR_20' ) end [2024-12-24 19:18:18] Production.INFO: ProcessCDR(1,14094263,1,1,2) [2024-12-24 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094263', 'tblTempUsageDetail_20' ) start [2024-12-24 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094263', 'tblTempUsageDetail_20' ) end [2024-12-24 19:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:18:23] Production.INFO: ==20003== Releasing lock... [2024-12-24 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:18:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:19:06 [end_date_ymd] => 2024-12-24 19:19:06 [RateCDR] => 1 ) [2024-12-24 19:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:19:06' and `end` < '2024-12-24 19:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:19:18] Production.INFO: count ==2311 [2024-12-24 19:19:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:19:06 - End Time 2024-12-24 19:19:06 [2024-12-24 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094268', 'tblTempUsageDetail_20' ) start [2024-12-24 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094268', 'tblTempUsageDetail_20' ) end [2024-12-24 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094268', 'tblTempVendorCDR_20' ) start [2024-12-24 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094268', 'tblTempVendorCDR_20' ) end [2024-12-24 19:19:19] Production.INFO: ProcessCDR(1,14094268,1,1,2) [2024-12-24 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094268', 'tblTempUsageDetail_20' ) start [2024-12-24 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094268', 'tblTempUsageDetail_20' ) end [2024-12-24 19:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:19:22] Production.INFO: ==20074== Releasing lock... [2024-12-24 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:19:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:20:05 [end_date_ymd] => 2024-12-24 19:20:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:20:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:20:19] Production.INFO: count ==2322 [2024-12-24 19:20:20] Production.ERROR: pbx CDR StartTime 2024-12-24 16:20:05 - End Time 2024-12-24 19:20:05 [2024-12-24 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094274', 'tblTempUsageDetail_20' ) start [2024-12-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094274', 'tblTempUsageDetail_20' ) end [2024-12-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094274', 'tblTempVendorCDR_20' ) start [2024-12-24 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094274', 'tblTempVendorCDR_20' ) end [2024-12-24 19:20:20] Production.INFO: ProcessCDR(1,14094274,1,1,2) [2024-12-24 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094274', 'tblTempUsageDetail_20' ) start [2024-12-24 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094274', 'tblTempUsageDetail_20' ) end [2024-12-24 19:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:20:23] Production.INFO: ==20147== Releasing lock... [2024-12-24 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:20:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:21:04 [end_date_ymd] => 2024-12-24 19:21:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:21:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:21:18] Production.INFO: count ==2288 [2024-12-24 19:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:21:04 - End Time 2024-12-24 19:21:04 [2024-12-24 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094279', 'tblTempUsageDetail_20' ) start [2024-12-24 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094279', 'tblTempUsageDetail_20' ) end [2024-12-24 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094279', 'tblTempVendorCDR_20' ) start [2024-12-24 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094279', 'tblTempVendorCDR_20' ) end [2024-12-24 19:21:19] Production.INFO: ProcessCDR(1,14094279,1,1,2) [2024-12-24 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094279', 'tblTempUsageDetail_20' ) start [2024-12-24 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094279', 'tblTempUsageDetail_20' ) end [2024-12-24 19:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:21:22] Production.INFO: ==20260== Releasing lock... [2024-12-24 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:21:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:22:05 [end_date_ymd] => 2024-12-24 19:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:22:17] Production.INFO: count ==2286 [2024-12-24 19:22:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:22:05 - End Time 2024-12-24 19:22:05 [2024-12-24 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094284', 'tblTempUsageDetail_20' ) start [2024-12-24 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094284', 'tblTempUsageDetail_20' ) end [2024-12-24 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094284', 'tblTempVendorCDR_20' ) start [2024-12-24 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094284', 'tblTempVendorCDR_20' ) end [2024-12-24 19:22:18] Production.INFO: ProcessCDR(1,14094284,1,1,2) [2024-12-24 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094284', 'tblTempUsageDetail_20' ) start [2024-12-24 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094284', 'tblTempUsageDetail_20' ) end [2024-12-24 19:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:22:21] Production.INFO: ==20336== Releasing lock... [2024-12-24 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:22:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:23:05 [end_date_ymd] => 2024-12-24 19:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:23:18] Production.INFO: count ==2286 [2024-12-24 19:23:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:23:05 - End Time 2024-12-24 19:23:05 [2024-12-24 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094289', 'tblTempUsageDetail_20' ) start [2024-12-24 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094289', 'tblTempUsageDetail_20' ) end [2024-12-24 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094289', 'tblTempVendorCDR_20' ) start [2024-12-24 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094289', 'tblTempVendorCDR_20' ) end [2024-12-24 19:23:19] Production.INFO: ProcessCDR(1,14094289,1,1,2) [2024-12-24 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094289', 'tblTempUsageDetail_20' ) start [2024-12-24 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094289', 'tblTempUsageDetail_20' ) end [2024-12-24 19:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:23:22] Production.INFO: ==20407== Releasing lock... [2024-12-24 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:23:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:24:04 [end_date_ymd] => 2024-12-24 19:24:04 [RateCDR] => 1 ) [2024-12-24 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:24:04' and `end` < '2024-12-24 19:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:24:17] Production.INFO: count ==2295 [2024-12-24 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:24:04 - End Time 2024-12-24 19:24:04 [2024-12-24 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094294', 'tblTempUsageDetail_20' ) start [2024-12-24 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094294', 'tblTempUsageDetail_20' ) end [2024-12-24 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094294', 'tblTempVendorCDR_20' ) start [2024-12-24 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094294', 'tblTempVendorCDR_20' ) end [2024-12-24 19:24:18] Production.INFO: ProcessCDR(1,14094294,1,1,2) [2024-12-24 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094294', 'tblTempUsageDetail_20' ) start [2024-12-24 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094294', 'tblTempUsageDetail_20' ) end [2024-12-24 19:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:24:23] Production.INFO: ==20476== Releasing lock... [2024-12-24 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:24:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:25:05 [end_date_ymd] => 2024-12-24 19:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:25:18] Production.INFO: count ==2296 [2024-12-24 19:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:25:05 - End Time 2024-12-24 19:25:05 [2024-12-24 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094299', 'tblTempUsageDetail_20' ) start [2024-12-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094299', 'tblTempUsageDetail_20' ) end [2024-12-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094299', 'tblTempVendorCDR_20' ) start [2024-12-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094299', 'tblTempVendorCDR_20' ) end [2024-12-24 19:25:18] Production.INFO: ProcessCDR(1,14094299,1,1,2) [2024-12-24 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094299', 'tblTempUsageDetail_20' ) start [2024-12-24 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094299', 'tblTempUsageDetail_20' ) end [2024-12-24 19:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:25:23] Production.INFO: ==20550== Releasing lock... [2024-12-24 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:25:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:26:05 [end_date_ymd] => 2024-12-24 19:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:26:17] Production.INFO: count ==2292 [2024-12-24 19:26:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:26:05 - End Time 2024-12-24 19:26:05 [2024-12-24 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094304', 'tblTempUsageDetail_20' ) start [2024-12-24 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094304', 'tblTempUsageDetail_20' ) end [2024-12-24 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094304', 'tblTempVendorCDR_20' ) start [2024-12-24 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094304', 'tblTempVendorCDR_20' ) end [2024-12-24 19:26:18] Production.INFO: ProcessCDR(1,14094304,1,1,2) [2024-12-24 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094304', 'tblTempUsageDetail_20' ) start [2024-12-24 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094304', 'tblTempUsageDetail_20' ) end [2024-12-24 19:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:26:23] Production.INFO: ==20625== Releasing lock... [2024-12-24 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:26:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:27:04 [end_date_ymd] => 2024-12-24 19:27:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:27:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:27:18] Production.INFO: count ==2301 [2024-12-24 19:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:27:04 - End Time 2024-12-24 19:27:04 [2024-12-24 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094309', 'tblTempUsageDetail_20' ) start [2024-12-24 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094309', 'tblTempUsageDetail_20' ) end [2024-12-24 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094309', 'tblTempVendorCDR_20' ) start [2024-12-24 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094309', 'tblTempVendorCDR_20' ) end [2024-12-24 19:27:18] Production.INFO: ProcessCDR(1,14094309,1,1,2) [2024-12-24 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094309', 'tblTempUsageDetail_20' ) start [2024-12-24 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094309', 'tblTempUsageDetail_20' ) end [2024-12-24 19:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:27:21] Production.INFO: ==20700== Releasing lock... [2024-12-24 19:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:27:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:28:04 [end_date_ymd] => 2024-12-24 19:28:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:28:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:28:17] Production.INFO: count ==2302 [2024-12-24 19:28:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:28:04 - End Time 2024-12-24 19:28:04 [2024-12-24 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094314', 'tblTempUsageDetail_20' ) start [2024-12-24 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094314', 'tblTempUsageDetail_20' ) end [2024-12-24 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094314', 'tblTempVendorCDR_20' ) start [2024-12-24 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094314', 'tblTempVendorCDR_20' ) end [2024-12-24 19:28:18] Production.INFO: ProcessCDR(1,14094314,1,1,2) [2024-12-24 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094314', 'tblTempUsageDetail_20' ) start [2024-12-24 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094314', 'tblTempUsageDetail_20' ) end [2024-12-24 19:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:28:21] Production.INFO: ==20773== Releasing lock... [2024-12-24 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:28:21] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:29:05 [end_date_ymd] => 2024-12-24 19:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:29:18] Production.INFO: count ==2306 [2024-12-24 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:29:05 - End Time 2024-12-24 19:29:05 [2024-12-24 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094319', 'tblTempUsageDetail_20' ) start [2024-12-24 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094319', 'tblTempUsageDetail_20' ) end [2024-12-24 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094319', 'tblTempVendorCDR_20' ) start [2024-12-24 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094319', 'tblTempVendorCDR_20' ) end [2024-12-24 19:29:19] Production.INFO: ProcessCDR(1,14094319,1,1,2) [2024-12-24 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094319', 'tblTempUsageDetail_20' ) start [2024-12-24 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094319', 'tblTempUsageDetail_20' ) end [2024-12-24 19:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:29:22] Production.INFO: ==20844== Releasing lock... [2024-12-24 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:29:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:30:06 [end_date_ymd] => 2024-12-24 19:30:06 [RateCDR] => 1 ) [2024-12-24 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:30:06' and `end` < '2024-12-24 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:30:19] Production.INFO: count ==2303 [2024-12-24 19:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:30:06 - End Time 2024-12-24 19:30:06 [2024-12-24 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094324', 'tblTempUsageDetail_20' ) start [2024-12-24 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094324', 'tblTempUsageDetail_20' ) end [2024-12-24 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094324', 'tblTempVendorCDR_20' ) start [2024-12-24 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094324', 'tblTempVendorCDR_20' ) end [2024-12-24 19:30:19] Production.INFO: ProcessCDR(1,14094324,1,1,2) [2024-12-24 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094324', 'tblTempUsageDetail_20' ) start [2024-12-24 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094324', 'tblTempUsageDetail_20' ) end [2024-12-24 19:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:30:23] Production.INFO: ==20922== Releasing lock... [2024-12-24 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:30:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:31:05 [end_date_ymd] => 2024-12-24 19:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:31:19] Production.INFO: count ==2347 [2024-12-24 19:31:20] Production.ERROR: pbx CDR StartTime 2024-12-24 16:31:05 - End Time 2024-12-24 19:31:05 [2024-12-24 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094330', 'tblTempUsageDetail_20' ) start [2024-12-24 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094330', 'tblTempUsageDetail_20' ) end [2024-12-24 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094330', 'tblTempVendorCDR_20' ) start [2024-12-24 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094330', 'tblTempVendorCDR_20' ) end [2024-12-24 19:31:20] Production.INFO: ProcessCDR(1,14094330,1,1,2) [2024-12-24 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094330', 'tblTempUsageDetail_20' ) start [2024-12-24 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094330', 'tblTempUsageDetail_20' ) end [2024-12-24 19:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:31:23] Production.INFO: ==20996== Releasing lock... [2024-12-24 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:31:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:32:06 [end_date_ymd] => 2024-12-24 19:32:06 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:32:06' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:32:19] Production.INFO: count ==2355 [2024-12-24 19:32:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:32:06 - End Time 2024-12-24 19:32:06 [2024-12-24 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094335', 'tblTempUsageDetail_20' ) start [2024-12-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094335', 'tblTempUsageDetail_20' ) end [2024-12-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094335', 'tblTempVendorCDR_20' ) start [2024-12-24 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094335', 'tblTempVendorCDR_20' ) end [2024-12-24 19:32:19] Production.INFO: ProcessCDR(1,14094335,1,1,2) [2024-12-24 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094335', 'tblTempUsageDetail_20' ) start [2024-12-24 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094335', 'tblTempUsageDetail_20' ) end [2024-12-24 19:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:32:23] Production.INFO: ==21071== Releasing lock... [2024-12-24 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:32:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:33:05 [end_date_ymd] => 2024-12-24 19:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:33:17] Production.INFO: count ==2346 [2024-12-24 19:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:33:05 - End Time 2024-12-24 19:33:05 [2024-12-24 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094340', 'tblTempUsageDetail_20' ) start [2024-12-24 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094340', 'tblTempUsageDetail_20' ) end [2024-12-24 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094340', 'tblTempVendorCDR_20' ) start [2024-12-24 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094340', 'tblTempVendorCDR_20' ) end [2024-12-24 19:33:18] Production.INFO: ProcessCDR(1,14094340,1,1,2) [2024-12-24 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094340', 'tblTempUsageDetail_20' ) start [2024-12-24 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094340', 'tblTempUsageDetail_20' ) end [2024-12-24 19:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:33:21] Production.INFO: ==21143== Releasing lock... [2024-12-24 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:33:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:34:05 [end_date_ymd] => 2024-12-24 19:34:05 [RateCDR] => 1 ) [2024-12-24 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:34:05' and `end` < '2024-12-24 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:34:18] Production.INFO: count ==2323 [2024-12-24 19:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:34:05 - End Time 2024-12-24 19:34:05 [2024-12-24 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094345', 'tblTempUsageDetail_20' ) start [2024-12-24 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094345', 'tblTempUsageDetail_20' ) end [2024-12-24 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094345', 'tblTempVendorCDR_20' ) start [2024-12-24 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094345', 'tblTempVendorCDR_20' ) end [2024-12-24 19:34:18] Production.INFO: ProcessCDR(1,14094345,1,1,2) [2024-12-24 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094345', 'tblTempUsageDetail_20' ) start [2024-12-24 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094345', 'tblTempUsageDetail_20' ) end [2024-12-24 19:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:34:22] Production.INFO: ==21223== Releasing lock... [2024-12-24 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:34:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-24 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:35:05 [end_date_ymd] => 2024-12-24 19:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:35:17] Production.INFO: count ==2279 [2024-12-24 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:35:05 - End Time 2024-12-24 19:35:05 [2024-12-24 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094350', 'tblTempUsageDetail_20' ) start [2024-12-24 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094350', 'tblTempUsageDetail_20' ) end [2024-12-24 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094350', 'tblTempVendorCDR_20' ) start [2024-12-24 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094350', 'tblTempVendorCDR_20' ) end [2024-12-24 19:35:18] Production.INFO: ProcessCDR(1,14094350,1,1,2) [2024-12-24 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094350', 'tblTempUsageDetail_20' ) start [2024-12-24 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094350', 'tblTempUsageDetail_20' ) end [2024-12-24 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:35:21] Production.INFO: ==21295== Releasing lock... [2024-12-24 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:35:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:36:05 [end_date_ymd] => 2024-12-24 19:36:05 [RateCDR] => 1 ) [2024-12-24 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:36:05' and `end` < '2024-12-24 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:36:18] Production.INFO: count ==2260 [2024-12-24 19:36:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:36:05 - End Time 2024-12-24 19:36:05 [2024-12-24 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094355', 'tblTempUsageDetail_20' ) start [2024-12-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094355', 'tblTempUsageDetail_20' ) end [2024-12-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094355', 'tblTempVendorCDR_20' ) start [2024-12-24 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094355', 'tblTempVendorCDR_20' ) end [2024-12-24 19:36:19] Production.INFO: ProcessCDR(1,14094355,1,1,2) [2024-12-24 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094355', 'tblTempUsageDetail_20' ) start [2024-12-24 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094355', 'tblTempUsageDetail_20' ) end [2024-12-24 19:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:36:23] Production.INFO: ==21409== Releasing lock... [2024-12-24 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:36:23] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:37:05 [end_date_ymd] => 2024-12-24 19:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:37:17] Production.INFO: count ==2259 [2024-12-24 19:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:37:05 - End Time 2024-12-24 19:37:05 [2024-12-24 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094360', 'tblTempUsageDetail_20' ) start [2024-12-24 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094360', 'tblTempUsageDetail_20' ) end [2024-12-24 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094360', 'tblTempVendorCDR_20' ) start [2024-12-24 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094360', 'tblTempVendorCDR_20' ) end [2024-12-24 19:37:18] Production.INFO: ProcessCDR(1,14094360,1,1,2) [2024-12-24 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094360', 'tblTempUsageDetail_20' ) start [2024-12-24 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094360', 'tblTempUsageDetail_20' ) end [2024-12-24 19:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:37:22] Production.INFO: ==21485== Releasing lock... [2024-12-24 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:37:22] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:38:05 [end_date_ymd] => 2024-12-24 19:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:38:18] Production.INFO: count ==2256 [2024-12-24 19:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:38:05 - End Time 2024-12-24 19:38:05 [2024-12-24 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094365', 'tblTempUsageDetail_20' ) start [2024-12-24 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094365', 'tblTempUsageDetail_20' ) end [2024-12-24 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094365', 'tblTempVendorCDR_20' ) start [2024-12-24 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094365', 'tblTempVendorCDR_20' ) end [2024-12-24 19:38:18] Production.INFO: ProcessCDR(1,14094365,1,1,2) [2024-12-24 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094365', 'tblTempUsageDetail_20' ) start [2024-12-24 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094365', 'tblTempUsageDetail_20' ) end [2024-12-24 19:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:38:21] Production.INFO: ==21558== Releasing lock... [2024-12-24 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:38:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:39:05 [end_date_ymd] => 2024-12-24 19:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:39:17] Production.INFO: count ==2251 [2024-12-24 19:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:39:05 - End Time 2024-12-24 19:39:05 [2024-12-24 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094370', 'tblTempUsageDetail_20' ) start [2024-12-24 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094370', 'tblTempUsageDetail_20' ) end [2024-12-24 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094370', 'tblTempVendorCDR_20' ) start [2024-12-24 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094370', 'tblTempVendorCDR_20' ) end [2024-12-24 19:39:18] Production.INFO: ProcessCDR(1,14094370,1,1,2) [2024-12-24 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094370', 'tblTempUsageDetail_20' ) start [2024-12-24 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094370', 'tblTempUsageDetail_20' ) end [2024-12-24 19:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:39:21] Production.INFO: ==21639== Releasing lock... [2024-12-24 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:39:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:40:06 [end_date_ymd] => 2024-12-24 19:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:40:18] Production.INFO: count ==2246 [2024-12-24 19:40:19] Production.ERROR: pbx CDR StartTime 2024-12-24 16:40:06 - End Time 2024-12-24 19:40:06 [2024-12-24 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094375', 'tblTempUsageDetail_20' ) start [2024-12-24 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094375', 'tblTempUsageDetail_20' ) end [2024-12-24 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094375', 'tblTempVendorCDR_20' ) start [2024-12-24 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094375', 'tblTempVendorCDR_20' ) end [2024-12-24 19:40:19] Production.INFO: ProcessCDR(1,14094375,1,1,2) [2024-12-24 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094375', 'tblTempUsageDetail_20' ) start [2024-12-24 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094375', 'tblTempUsageDetail_20' ) end [2024-12-24 19:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:40:22] Production.INFO: ==21715== Releasing lock... [2024-12-24 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:40:22] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:41:05 [end_date_ymd] => 2024-12-24 19:41:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:41:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:41:18] Production.INFO: count ==2258 [2024-12-24 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:41:05 - End Time 2024-12-24 19:41:05 [2024-12-24 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094381', 'tblTempUsageDetail_20' ) start [2024-12-24 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094381', 'tblTempUsageDetail_20' ) end [2024-12-24 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094381', 'tblTempVendorCDR_20' ) start [2024-12-24 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094381', 'tblTempVendorCDR_20' ) end [2024-12-24 19:41:18] Production.INFO: ProcessCDR(1,14094381,1,1,2) [2024-12-24 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094381', 'tblTempUsageDetail_20' ) start [2024-12-24 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094381', 'tblTempUsageDetail_20' ) end [2024-12-24 19:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:41:21] Production.INFO: ==21789== Releasing lock... [2024-12-24 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:41:21] Production.INFO: 45 MB #Memory Used# [2024-12-24 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:42:05 [end_date_ymd] => 2024-12-24 19:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:42:17] Production.INFO: count ==2242 [2024-12-24 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:42:05 - End Time 2024-12-24 19:42:05 [2024-12-24 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094386', 'tblTempUsageDetail_20' ) start [2024-12-24 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094386', 'tblTempUsageDetail_20' ) end [2024-12-24 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094386', 'tblTempVendorCDR_20' ) start [2024-12-24 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094386', 'tblTempVendorCDR_20' ) end [2024-12-24 19:42:18] Production.INFO: ProcessCDR(1,14094386,1,1,2) [2024-12-24 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094386', 'tblTempUsageDetail_20' ) start [2024-12-24 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094386', 'tblTempUsageDetail_20' ) end [2024-12-24 19:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:42:21] Production.INFO: ==21866== Releasing lock... [2024-12-24 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:42:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-24 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:43:04 [end_date_ymd] => 2024-12-24 19:43:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:43:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:43:17] Production.INFO: count ==2214 [2024-12-24 19:43:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:43:04 - End Time 2024-12-24 19:43:04 [2024-12-24 19:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094391', 'tblTempUsageDetail_20' ) start [2024-12-24 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094391', 'tblTempUsageDetail_20' ) end [2024-12-24 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094391', 'tblTempVendorCDR_20' ) start [2024-12-24 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094391', 'tblTempVendorCDR_20' ) end [2024-12-24 19:43:17] Production.INFO: ProcessCDR(1,14094391,1,1,2) [2024-12-24 19:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094391', 'tblTempUsageDetail_20' ) start [2024-12-24 19:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094391', 'tblTempUsageDetail_20' ) end [2024-12-24 19:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:43:20] Production.INFO: ==21945== Releasing lock... [2024-12-24 19:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:43:20] Production.INFO: 44.75 MB #Memory Used# [2024-12-24 19:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:44:04 [end_date_ymd] => 2024-12-24 19:44:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:44:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:44:17] Production.INFO: count ==2178 [2024-12-24 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:44:04 - End Time 2024-12-24 19:44:04 [2024-12-24 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094396', 'tblTempUsageDetail_20' ) start [2024-12-24 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094396', 'tblTempUsageDetail_20' ) end [2024-12-24 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094396', 'tblTempVendorCDR_20' ) start [2024-12-24 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094396', 'tblTempVendorCDR_20' ) end [2024-12-24 19:44:18] Production.INFO: ProcessCDR(1,14094396,1,1,2) [2024-12-24 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094396', 'tblTempUsageDetail_20' ) start [2024-12-24 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094396', 'tblTempUsageDetail_20' ) end [2024-12-24 19:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:44:21] Production.INFO: ==22021== Releasing lock... [2024-12-24 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:44:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-24 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:45:05 [end_date_ymd] => 2024-12-24 19:45:05 [RateCDR] => 1 ) [2024-12-24 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:45:05' and `end` < '2024-12-24 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:45:18] Production.INFO: count ==2146 [2024-12-24 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:45:05 - End Time 2024-12-24 19:45:05 [2024-12-24 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094401', 'tblTempUsageDetail_20' ) start [2024-12-24 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094401', 'tblTempUsageDetail_20' ) end [2024-12-24 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094401', 'tblTempVendorCDR_20' ) start [2024-12-24 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094401', 'tblTempVendorCDR_20' ) end [2024-12-24 19:45:18] Production.INFO: ProcessCDR(1,14094401,1,1,2) [2024-12-24 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094401', 'tblTempUsageDetail_20' ) start [2024-12-24 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094401', 'tblTempUsageDetail_20' ) end [2024-12-24 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:45:21] Production.INFO: ==22099== Releasing lock... [2024-12-24 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:45:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-24 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:46:04 [end_date_ymd] => 2024-12-24 19:46:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:46:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:46:17] Production.INFO: count ==2112 [2024-12-24 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:46:04 - End Time 2024-12-24 19:46:04 [2024-12-24 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094406', 'tblTempUsageDetail_20' ) start [2024-12-24 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094406', 'tblTempUsageDetail_20' ) end [2024-12-24 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094406', 'tblTempVendorCDR_20' ) start [2024-12-24 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094406', 'tblTempVendorCDR_20' ) end [2024-12-24 19:46:18] Production.INFO: ProcessCDR(1,14094406,1,1,2) [2024-12-24 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094406', 'tblTempUsageDetail_20' ) start [2024-12-24 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094406', 'tblTempUsageDetail_20' ) end [2024-12-24 19:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:46:21] Production.INFO: ==22172== Releasing lock... [2024-12-24 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:46:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-24 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:47:05 [end_date_ymd] => 2024-12-24 19:47:05 [RateCDR] => 1 ) [2024-12-24 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:47:05' and `end` < '2024-12-24 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:47:18] Production.INFO: count ==2094 [2024-12-24 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:47:05 - End Time 2024-12-24 19:47:05 [2024-12-24 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094411', 'tblTempUsageDetail_20' ) start [2024-12-24 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094411', 'tblTempUsageDetail_20' ) end [2024-12-24 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094411', 'tblTempVendorCDR_20' ) start [2024-12-24 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094411', 'tblTempVendorCDR_20' ) end [2024-12-24 19:47:18] Production.INFO: ProcessCDR(1,14094411,1,1,2) [2024-12-24 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094411', 'tblTempUsageDetail_20' ) start [2024-12-24 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094411', 'tblTempUsageDetail_20' ) end [2024-12-24 19:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:47:23] Production.INFO: ==22248== Releasing lock... [2024-12-24 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:47:23] Production.INFO: 44 MB #Memory Used# [2024-12-24 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:48:04 [end_date_ymd] => 2024-12-24 19:48:04 [RateCDR] => 1 ) [2024-12-24 19:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:48:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:48:17] Production.INFO: count ==2088 [2024-12-24 19:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:48:04 - End Time 2024-12-24 19:48:04 [2024-12-24 19:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094416', 'tblTempUsageDetail_20' ) start [2024-12-24 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094416', 'tblTempUsageDetail_20' ) end [2024-12-24 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094416', 'tblTempVendorCDR_20' ) start [2024-12-24 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094416', 'tblTempVendorCDR_20' ) end [2024-12-24 19:48:17] Production.INFO: ProcessCDR(1,14094416,1,1,2) [2024-12-24 19:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094416', 'tblTempUsageDetail_20' ) start [2024-12-24 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094416', 'tblTempUsageDetail_20' ) end [2024-12-24 19:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:48:20] Production.INFO: ==22321== Releasing lock... [2024-12-24 19:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:48:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-24 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:49:05 [end_date_ymd] => 2024-12-24 19:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:49:17] Production.INFO: count ==2056 [2024-12-24 19:49:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:49:05 - End Time 2024-12-24 19:49:05 [2024-12-24 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094421', 'tblTempUsageDetail_20' ) start [2024-12-24 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094421', 'tblTempUsageDetail_20' ) end [2024-12-24 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094421', 'tblTempVendorCDR_20' ) start [2024-12-24 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094421', 'tblTempVendorCDR_20' ) end [2024-12-24 19:49:17] Production.INFO: ProcessCDR(1,14094421,1,1,2) [2024-12-24 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094421', 'tblTempUsageDetail_20' ) start [2024-12-24 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094421', 'tblTempUsageDetail_20' ) end [2024-12-24 19:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:49:20] Production.INFO: ==22395== Releasing lock... [2024-12-24 19:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:49:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-24 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:50:05 [end_date_ymd] => 2024-12-24 19:50:05 [RateCDR] => 1 ) [2024-12-24 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:50:05' and `end` < '2024-12-24 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:50:17] Production.INFO: count ==2033 [2024-12-24 19:50:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:50:05 - End Time 2024-12-24 19:50:05 [2024-12-24 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094427', 'tblTempUsageDetail_20' ) start [2024-12-24 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094427', 'tblTempUsageDetail_20' ) end [2024-12-24 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094427', 'tblTempVendorCDR_20' ) start [2024-12-24 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094427', 'tblTempVendorCDR_20' ) end [2024-12-24 19:50:18] Production.INFO: ProcessCDR(1,14094427,1,1,2) [2024-12-24 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094427', 'tblTempUsageDetail_20' ) start [2024-12-24 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094427', 'tblTempUsageDetail_20' ) end [2024-12-24 19:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:50:21] Production.INFO: ==22471== Releasing lock... [2024-12-24 19:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:50:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:51:05 [end_date_ymd] => 2024-12-24 19:51:05 [RateCDR] => 1 ) [2024-12-24 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:51:05' and `end` < '2024-12-24 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:51:18] Production.INFO: count ==1990 [2024-12-24 19:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:51:05 - End Time 2024-12-24 19:51:05 [2024-12-24 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094432', 'tblTempUsageDetail_20' ) start [2024-12-24 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094432', 'tblTempUsageDetail_20' ) end [2024-12-24 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094432', 'tblTempVendorCDR_20' ) start [2024-12-24 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094432', 'tblTempVendorCDR_20' ) end [2024-12-24 19:51:18] Production.INFO: ProcessCDR(1,14094432,1,1,2) [2024-12-24 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094432', 'tblTempUsageDetail_20' ) start [2024-12-24 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094432', 'tblTempUsageDetail_20' ) end [2024-12-24 19:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:51:21] Production.INFO: ==22549== Releasing lock... [2024-12-24 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:51:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:52:05 [end_date_ymd] => 2024-12-24 19:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:52:17] Production.INFO: count ==1953 [2024-12-24 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:52:05 - End Time 2024-12-24 19:52:05 [2024-12-24 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094437', 'tblTempUsageDetail_20' ) start [2024-12-24 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094437', 'tblTempUsageDetail_20' ) end [2024-12-24 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094437', 'tblTempVendorCDR_20' ) start [2024-12-24 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094437', 'tblTempVendorCDR_20' ) end [2024-12-24 19:52:18] Production.INFO: ProcessCDR(1,14094437,1,1,2) [2024-12-24 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094437', 'tblTempUsageDetail_20' ) start [2024-12-24 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094437', 'tblTempUsageDetail_20' ) end [2024-12-24 19:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:52:22] Production.INFO: ==22661== Releasing lock... [2024-12-24 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:52:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:53:04 [end_date_ymd] => 2024-12-24 19:53:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:53:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:53:17] Production.INFO: count ==1921 [2024-12-24 19:53:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:53:04 - End Time 2024-12-24 19:53:04 [2024-12-24 19:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094442', 'tblTempUsageDetail_20' ) start [2024-12-24 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094442', 'tblTempUsageDetail_20' ) end [2024-12-24 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094442', 'tblTempVendorCDR_20' ) start [2024-12-24 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094442', 'tblTempVendorCDR_20' ) end [2024-12-24 19:53:17] Production.INFO: ProcessCDR(1,14094442,1,1,2) [2024-12-24 19:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094442', 'tblTempUsageDetail_20' ) start [2024-12-24 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094442', 'tblTempUsageDetail_20' ) end [2024-12-24 19:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:53:21] Production.INFO: ==22735== Releasing lock... [2024-12-24 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:53:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:54:05 [end_date_ymd] => 2024-12-24 19:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:54:17] Production.INFO: count ==1913 [2024-12-24 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:54:05 - End Time 2024-12-24 19:54:05 [2024-12-24 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094447', 'tblTempUsageDetail_20' ) start [2024-12-24 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094447', 'tblTempUsageDetail_20' ) end [2024-12-24 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094447', 'tblTempVendorCDR_20' ) start [2024-12-24 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094447', 'tblTempVendorCDR_20' ) end [2024-12-24 19:54:18] Production.INFO: ProcessCDR(1,14094447,1,1,2) [2024-12-24 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094447', 'tblTempUsageDetail_20' ) start [2024-12-24 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094447', 'tblTempUsageDetail_20' ) end [2024-12-24 19:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:54:21] Production.INFO: ==22816== Releasing lock... [2024-12-24 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:54:21] Production.INFO: 42 MB #Memory Used# [2024-12-24 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:55:04 [end_date_ymd] => 2024-12-24 19:55:04 [RateCDR] => 1 ) [2024-12-24 19:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 16:55:04' and `end` < '2024-12-24 19:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 19:55:17] Production.INFO: count ==1908 [2024-12-24 19:55:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:55:04 - End Time 2024-12-24 19:55:04 [2024-12-24 19:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094452', 'tblTempUsageDetail_20' ) start [2024-12-24 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094452', 'tblTempUsageDetail_20' ) end [2024-12-24 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094452', 'tblTempVendorCDR_20' ) start [2024-12-24 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094452', 'tblTempVendorCDR_20' ) end [2024-12-24 19:55:17] Production.INFO: ProcessCDR(1,14094452,1,1,2) [2024-12-24 19:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094452', 'tblTempUsageDetail_20' ) start [2024-12-24 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094452', 'tblTempUsageDetail_20' ) end [2024-12-24 19:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:55:21] Production.INFO: ==22889== Releasing lock... [2024-12-24 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:55:21] Production.INFO: 42 MB #Memory Used# [2024-12-24 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:56:06 [end_date_ymd] => 2024-12-24 19:56:06 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:56:06' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:56:19] Production.INFO: count ==1903 [2024-12-24 19:56:20] Production.ERROR: pbx CDR StartTime 2024-12-24 16:56:06 - End Time 2024-12-24 19:56:06 [2024-12-24 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094457', 'tblTempUsageDetail_20' ) start [2024-12-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094457', 'tblTempUsageDetail_20' ) end [2024-12-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094457', 'tblTempVendorCDR_20' ) start [2024-12-24 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094457', 'tblTempVendorCDR_20' ) end [2024-12-24 19:56:20] Production.INFO: ProcessCDR(1,14094457,1,1,2) [2024-12-24 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094457', 'tblTempUsageDetail_20' ) start [2024-12-24 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094457', 'tblTempUsageDetail_20' ) end [2024-12-24 19:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:56:23] Production.INFO: ==22964== Releasing lock... [2024-12-24 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:56:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-24 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:57:05 [end_date_ymd] => 2024-12-24 19:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:57:17] Production.INFO: count ==1905 [2024-12-24 19:57:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:57:05 - End Time 2024-12-24 19:57:05 [2024-12-24 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094462', 'tblTempUsageDetail_20' ) start [2024-12-24 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094462', 'tblTempUsageDetail_20' ) end [2024-12-24 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094462', 'tblTempVendorCDR_20' ) start [2024-12-24 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094462', 'tblTempVendorCDR_20' ) end [2024-12-24 19:57:17] Production.INFO: ProcessCDR(1,14094462,1,1,2) [2024-12-24 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094462', 'tblTempUsageDetail_20' ) start [2024-12-24 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094462', 'tblTempUsageDetail_20' ) end [2024-12-24 19:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:57:21] Production.INFO: ==23038== Releasing lock... [2024-12-24 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:57:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-24 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:58:05 [end_date_ymd] => 2024-12-24 19:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 16:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 19:58:17] Production.INFO: count ==1889 [2024-12-24 19:58:17] Production.ERROR: pbx CDR StartTime 2024-12-24 16:58:05 - End Time 2024-12-24 19:58:05 [2024-12-24 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094467', 'tblTempUsageDetail_20' ) start [2024-12-24 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094467', 'tblTempUsageDetail_20' ) end [2024-12-24 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094467', 'tblTempVendorCDR_20' ) start [2024-12-24 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094467', 'tblTempVendorCDR_20' ) end [2024-12-24 19:58:17] Production.INFO: ProcessCDR(1,14094467,1,1,2) [2024-12-24 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094467', 'tblTempUsageDetail_20' ) start [2024-12-24 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094467', 'tblTempUsageDetail_20' ) end [2024-12-24 19:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:58:21] Production.INFO: ==23114== Releasing lock... [2024-12-24 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:58:21] Production.INFO: 42 MB #Memory Used# [2024-12-24 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 16:59:04 [end_date_ymd] => 2024-12-24 19:59:04 [RateCDR] => 1 ) [2024-12-24 19: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` >= '2024-12-24 16:59:04' and `end` < '2024-12-24 19: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 ,'') [2024-12-24 19:59:18] Production.INFO: count ==1875 [2024-12-24 19:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 16:59:04 - End Time 2024-12-24 19:59:04 [2024-12-24 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094472', 'tblTempUsageDetail_20' ) start [2024-12-24 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094472', 'tblTempUsageDetail_20' ) end [2024-12-24 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094472', 'tblTempVendorCDR_20' ) start [2024-12-24 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094472', 'tblTempVendorCDR_20' ) end [2024-12-24 19:59:18] Production.INFO: ProcessCDR(1,14094472,1,1,2) [2024-12-24 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094472', 'tblTempUsageDetail_20' ) start [2024-12-24 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094472', 'tblTempUsageDetail_20' ) end [2024-12-24 19:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 19:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 19:59:22] Production.INFO: ==23187== Releasing lock... [2024-12-24 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 19:59:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-24 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:00:05 [end_date_ymd] => 2024-12-24 20:00:05 [RateCDR] => 1 ) [2024-12-24 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:00:05' and `end` < '2024-12-24 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:00:17] Production.INFO: count ==1843 [2024-12-24 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:00:05 - End Time 2024-12-24 20:00:05 [2024-12-24 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094478', 'tblTempUsageDetail_20' ) start [2024-12-24 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094478', 'tblTempUsageDetail_20' ) end [2024-12-24 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094478', 'tblTempVendorCDR_20' ) start [2024-12-24 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094478', 'tblTempVendorCDR_20' ) end [2024-12-24 20:00:18] Production.INFO: ProcessCDR(1,14094478,1,1,2) [2024-12-24 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094478', 'tblTempUsageDetail_20' ) start [2024-12-24 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094478', 'tblTempUsageDetail_20' ) end [2024-12-24 20:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:00:21] Production.INFO: ==23264== Releasing lock... [2024-12-24 20:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:00:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-24 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:01:04 [end_date_ymd] => 2024-12-24 20:01:04 [RateCDR] => 1 ) [2024-12-24 20:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:01:04' and `end` < '2024-12-24 20:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:01:17] Production.INFO: count ==1805 [2024-12-24 20:01:17] Production.ERROR: pbx CDR StartTime 2024-12-24 17:01:04 - End Time 2024-12-24 20:01:04 [2024-12-24 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094483', 'tblTempUsageDetail_20' ) start [2024-12-24 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094483', 'tblTempUsageDetail_20' ) end [2024-12-24 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094483', 'tblTempVendorCDR_20' ) start [2024-12-24 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094483', 'tblTempVendorCDR_20' ) end [2024-12-24 20:01:17] Production.INFO: ProcessCDR(1,14094483,1,1,2) [2024-12-24 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094483', 'tblTempUsageDetail_20' ) start [2024-12-24 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094483', 'tblTempUsageDetail_20' ) end [2024-12-24 20:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:01:20] Production.INFO: ==23393== Releasing lock... [2024-12-24 20:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:01:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-24 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:02:05 [end_date_ymd] => 2024-12-24 20:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:02:17] Production.INFO: count ==1782 [2024-12-24 20:02:17] Production.ERROR: pbx CDR StartTime 2024-12-24 17:02:05 - End Time 2024-12-24 20:02:05 [2024-12-24 20:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094488', 'tblTempUsageDetail_20' ) start [2024-12-24 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094488', 'tblTempUsageDetail_20' ) end [2024-12-24 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094488', 'tblTempVendorCDR_20' ) start [2024-12-24 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094488', 'tblTempVendorCDR_20' ) end [2024-12-24 20:02:17] Production.INFO: ProcessCDR(1,14094488,1,1,2) [2024-12-24 20:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094488', 'tblTempUsageDetail_20' ) start [2024-12-24 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094488', 'tblTempUsageDetail_20' ) end [2024-12-24 20:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:02:20] Production.INFO: ==23468== Releasing lock... [2024-12-24 20:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:02:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-24 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:03:05 [end_date_ymd] => 2024-12-24 20:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:03:18] Production.INFO: count ==1780 [2024-12-24 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:03:05 - End Time 2024-12-24 20:03:05 [2024-12-24 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094493', 'tblTempUsageDetail_20' ) start [2024-12-24 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094493', 'tblTempUsageDetail_20' ) end [2024-12-24 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094493', 'tblTempVendorCDR_20' ) start [2024-12-24 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094493', 'tblTempVendorCDR_20' ) end [2024-12-24 20:03:18] Production.INFO: ProcessCDR(1,14094493,1,1,2) [2024-12-24 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094493', 'tblTempUsageDetail_20' ) start [2024-12-24 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094493', 'tblTempUsageDetail_20' ) end [2024-12-24 20:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:03:21] Production.INFO: ==23542== Releasing lock... [2024-12-24 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:03:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-24 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:04:05 [end_date_ymd] => 2024-12-24 20:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:04:18] Production.INFO: count ==1786 [2024-12-24 20:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:04:05 - End Time 2024-12-24 20:04:05 [2024-12-24 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094498', 'tblTempUsageDetail_20' ) start [2024-12-24 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094498', 'tblTempUsageDetail_20' ) end [2024-12-24 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094498', 'tblTempVendorCDR_20' ) start [2024-12-24 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094498', 'tblTempVendorCDR_20' ) end [2024-12-24 20:04:18] Production.INFO: ProcessCDR(1,14094498,1,1,2) [2024-12-24 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094498', 'tblTempUsageDetail_20' ) start [2024-12-24 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094498', 'tblTempUsageDetail_20' ) end [2024-12-24 20:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:04:21] Production.INFO: ==23617== Releasing lock... [2024-12-24 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:04:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-24 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:05:05 [end_date_ymd] => 2024-12-24 20:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:05:17] Production.INFO: count ==1769 [2024-12-24 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:05:05 - End Time 2024-12-24 20:05:05 [2024-12-24 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094503', 'tblTempUsageDetail_20' ) start [2024-12-24 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094503', 'tblTempUsageDetail_20' ) end [2024-12-24 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094503', 'tblTempVendorCDR_20' ) start [2024-12-24 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094503', 'tblTempVendorCDR_20' ) end [2024-12-24 20:05:18] Production.INFO: ProcessCDR(1,14094503,1,1,2) [2024-12-24 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094503', 'tblTempUsageDetail_20' ) start [2024-12-24 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094503', 'tblTempUsageDetail_20' ) end [2024-12-24 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:05:21] Production.INFO: ==23689== Releasing lock... [2024-12-24 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:05:21] Production.INFO: 41 MB #Memory Used# [2024-12-24 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:06:04 [end_date_ymd] => 2024-12-24 20:06:04 [RateCDR] => 1 ) [2024-12-24 20:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:06:04' and `end` < '2024-12-24 20:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:06:17] Production.INFO: count ==1768 [2024-12-24 20:06:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:06:04 - End Time 2024-12-24 20:06:04 [2024-12-24 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094508', 'tblTempUsageDetail_20' ) start [2024-12-24 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094508', 'tblTempUsageDetail_20' ) end [2024-12-24 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094508', 'tblTempVendorCDR_20' ) start [2024-12-24 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094508', 'tblTempVendorCDR_20' ) end [2024-12-24 20:06:18] Production.INFO: ProcessCDR(1,14094508,1,1,2) [2024-12-24 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094508', 'tblTempUsageDetail_20' ) start [2024-12-24 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094508', 'tblTempUsageDetail_20' ) end [2024-12-24 20:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:06:21] Production.INFO: ==23766== Releasing lock... [2024-12-24 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:06:21] Production.INFO: 41 MB #Memory Used# [2024-12-24 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:07:04 [end_date_ymd] => 2024-12-24 20:07:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:07:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:07:17] Production.INFO: count ==1798 [2024-12-24 20:07:17] Production.ERROR: pbx CDR StartTime 2024-12-24 17:07:04 - End Time 2024-12-24 20:07:04 [2024-12-24 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094513', 'tblTempUsageDetail_20' ) start [2024-12-24 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094513', 'tblTempUsageDetail_20' ) end [2024-12-24 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094513', 'tblTempVendorCDR_20' ) start [2024-12-24 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094513', 'tblTempVendorCDR_20' ) end [2024-12-24 20:07:17] Production.INFO: ProcessCDR(1,14094513,1,1,2) [2024-12-24 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094513', 'tblTempUsageDetail_20' ) start [2024-12-24 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094513', 'tblTempUsageDetail_20' ) end [2024-12-24 20:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:07:20] Production.INFO: ==23839== Releasing lock... [2024-12-24 20:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:07:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-24 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:08:04 [end_date_ymd] => 2024-12-24 20:08:04 [RateCDR] => 1 ) [2024-12-24 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:08:04' and `end` < '2024-12-24 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:08:17] Production.INFO: count ==1865 [2024-12-24 20:08:17] Production.ERROR: pbx CDR StartTime 2024-12-24 17:08:04 - End Time 2024-12-24 20:08:04 [2024-12-24 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094518', 'tblTempUsageDetail_20' ) start [2024-12-24 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094518', 'tblTempUsageDetail_20' ) end [2024-12-24 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094518', 'tblTempVendorCDR_20' ) start [2024-12-24 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094518', 'tblTempVendorCDR_20' ) end [2024-12-24 20:08:17] Production.INFO: ProcessCDR(1,14094518,1,1,2) [2024-12-24 20:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094518', 'tblTempUsageDetail_20' ) start [2024-12-24 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094518', 'tblTempUsageDetail_20' ) end [2024-12-24 20:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:08:20] Production.INFO: ==23953== Releasing lock... [2024-12-24 20:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:08:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-24 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:09:04 [end_date_ymd] => 2024-12-24 20:09:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:09:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:09:17] Production.INFO: count ==1932 [2024-12-24 20:09:17] Production.ERROR: pbx CDR StartTime 2024-12-24 17:09:04 - End Time 2024-12-24 20:09:04 [2024-12-24 20:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094523', 'tblTempUsageDetail_20' ) start [2024-12-24 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094523', 'tblTempUsageDetail_20' ) end [2024-12-24 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094523', 'tblTempVendorCDR_20' ) start [2024-12-24 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094523', 'tblTempVendorCDR_20' ) end [2024-12-24 20:09:17] Production.INFO: ProcessCDR(1,14094523,1,1,2) [2024-12-24 20:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094523', 'tblTempUsageDetail_20' ) start [2024-12-24 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094523', 'tblTempUsageDetail_20' ) end [2024-12-24 20:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:09:22] Production.INFO: ==24027== Releasing lock... [2024-12-24 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:09:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:10:06 [end_date_ymd] => 2024-12-24 20:10:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:10:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:10:22] Production.INFO: count ==1998 [2024-12-24 20:10:22] Production.ERROR: pbx CDR StartTime 2024-12-24 17:10:06 - End Time 2024-12-24 20:10:06 [2024-12-24 20:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094528', 'tblTempUsageDetail_20' ) start [2024-12-24 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094528', 'tblTempUsageDetail_20' ) end [2024-12-24 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094528', 'tblTempVendorCDR_20' ) start [2024-12-24 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094528', 'tblTempVendorCDR_20' ) end [2024-12-24 20:10:22] Production.INFO: ProcessCDR(1,14094528,1,1,2) [2024-12-24 20:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094528', 'tblTempUsageDetail_20' ) start [2024-12-24 20:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094528', 'tblTempUsageDetail_20' ) end [2024-12-24 20:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:10:27] Production.INFO: ==24104== Releasing lock... [2024-12-24 20:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:10:27] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:11:05 [end_date_ymd] => 2024-12-24 20:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:11:17] Production.INFO: count ==2045 [2024-12-24 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:11:05 - End Time 2024-12-24 20:11:05 [2024-12-24 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094534', 'tblTempUsageDetail_20' ) start [2024-12-24 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094534', 'tblTempUsageDetail_20' ) end [2024-12-24 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094534', 'tblTempVendorCDR_20' ) start [2024-12-24 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094534', 'tblTempVendorCDR_20' ) end [2024-12-24 20:11:18] Production.INFO: ProcessCDR(1,14094534,1,1,2) [2024-12-24 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094534', 'tblTempUsageDetail_20' ) start [2024-12-24 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094534', 'tblTempUsageDetail_20' ) end [2024-12-24 20:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:11:21] Production.INFO: ==24184== Releasing lock... [2024-12-24 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:11:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:12:05 [end_date_ymd] => 2024-12-24 20:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:12:19] Production.INFO: count ==2203 [2024-12-24 20:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:12:05 - End Time 2024-12-24 20:12:05 [2024-12-24 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094539', 'tblTempUsageDetail_20' ) start [2024-12-24 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094539', 'tblTempUsageDetail_20' ) end [2024-12-24 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094539', 'tblTempVendorCDR_20' ) start [2024-12-24 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094539', 'tblTempVendorCDR_20' ) end [2024-12-24 20:12:19] Production.INFO: ProcessCDR(1,14094539,1,1,2) [2024-12-24 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094539', 'tblTempUsageDetail_20' ) start [2024-12-24 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094539', 'tblTempUsageDetail_20' ) end [2024-12-24 20:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:12:22] Production.INFO: ==24257== Releasing lock... [2024-12-24 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:12:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-24 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:13:04 [end_date_ymd] => 2024-12-24 20:13:04 [RateCDR] => 1 ) [2024-12-24 20:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:13:04' and `end` < '2024-12-24 20:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:13:18] Production.INFO: count ==2278 [2024-12-24 20:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:13:04 - End Time 2024-12-24 20:13:04 [2024-12-24 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094544', 'tblTempUsageDetail_20' ) start [2024-12-24 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094544', 'tblTempUsageDetail_20' ) end [2024-12-24 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094544', 'tblTempVendorCDR_20' ) start [2024-12-24 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094544', 'tblTempVendorCDR_20' ) end [2024-12-24 20:13:18] Production.INFO: ProcessCDR(1,14094544,1,1,2) [2024-12-24 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094544', 'tblTempUsageDetail_20' ) start [2024-12-24 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094544', 'tblTempUsageDetail_20' ) end [2024-12-24 20:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:13:22] Production.INFO: ==24329== Releasing lock... [2024-12-24 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:13:22] Production.INFO: 45 MB #Memory Used# [2024-12-24 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:14:05 [end_date_ymd] => 2024-12-24 20:14:05 [RateCDR] => 1 ) [2024-12-24 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:14:05' and `end` < '2024-12-24 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:14:19] Production.INFO: count ==2351 [2024-12-24 20:14:20] Production.ERROR: pbx CDR StartTime 2024-12-24 17:14:05 - End Time 2024-12-24 20:14:05 [2024-12-24 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094549', 'tblTempUsageDetail_20' ) start [2024-12-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094549', 'tblTempUsageDetail_20' ) end [2024-12-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094549', 'tblTempVendorCDR_20' ) start [2024-12-24 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094549', 'tblTempVendorCDR_20' ) end [2024-12-24 20:14:20] Production.INFO: ProcessCDR(1,14094549,1,1,2) [2024-12-24 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094549', 'tblTempUsageDetail_20' ) start [2024-12-24 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094549', 'tblTempUsageDetail_20' ) end [2024-12-24 20:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:14:23] Production.INFO: ==24404== Releasing lock... [2024-12-24 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:14:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-24 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:15:04 [end_date_ymd] => 2024-12-24 20:15:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:15:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:15:17] Production.INFO: count ==2419 [2024-12-24 20:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 17:15:04 - End Time 2024-12-24 20:15:04 [2024-12-24 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094554', 'tblTempUsageDetail_20' ) start [2024-12-24 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094554', 'tblTempUsageDetail_20' ) end [2024-12-24 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094554', 'tblTempVendorCDR_20' ) start [2024-12-24 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094554', 'tblTempVendorCDR_20' ) end [2024-12-24 20:15:18] Production.INFO: ProcessCDR(1,14094554,1,1,2) [2024-12-24 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094554', 'tblTempUsageDetail_20' ) start [2024-12-24 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094554', 'tblTempUsageDetail_20' ) end [2024-12-24 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:15:21] Production.INFO: ==24476== Releasing lock... [2024-12-24 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:15:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-24 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:16:05 [end_date_ymd] => 2024-12-24 20:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:16:20] Production.INFO: count ==2811 [2024-12-24 20:16:21] Production.ERROR: pbx CDR StartTime 2024-12-24 17:16:05 - End Time 2024-12-24 20:16:05 [2024-12-24 20:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094559', 'tblTempUsageDetail_20' ) start [2024-12-24 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094559', 'tblTempUsageDetail_20' ) end [2024-12-24 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094559', 'tblTempVendorCDR_20' ) start [2024-12-24 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094559', 'tblTempVendorCDR_20' ) end [2024-12-24 20:16:21] Production.INFO: ProcessCDR(1,14094559,1,1,2) [2024-12-24 20:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094559', 'tblTempUsageDetail_20' ) start [2024-12-24 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094559', 'tblTempUsageDetail_20' ) end [2024-12-24 20:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:16:24] Production.INFO: ==24551== Releasing lock... [2024-12-24 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:16:24] Production.INFO: 49 MB #Memory Used# [2024-12-24 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:17:04 [end_date_ymd] => 2024-12-24 20:17:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:17:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:17:17] Production.INFO: count ==2920 [2024-12-24 20:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:17:04 - End Time 2024-12-24 20:17:04 [2024-12-24 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094561', 'tblTempUsageDetail_20' ) start [2024-12-24 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094561', 'tblTempUsageDetail_20' ) end [2024-12-24 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094561', 'tblTempVendorCDR_20' ) start [2024-12-24 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094561', 'tblTempVendorCDR_20' ) end [2024-12-24 20:17:18] Production.INFO: ProcessCDR(1,14094561,1,1,2) [2024-12-24 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094561', 'tblTempUsageDetail_20' ) start [2024-12-24 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094561', 'tblTempUsageDetail_20' ) end [2024-12-24 20:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:17:21] Production.INFO: ==24633== Releasing lock... [2024-12-24 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:17:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:18:04 [end_date_ymd] => 2024-12-24 20:18:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:18:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:18:17] Production.INFO: count ==2917 [2024-12-24 20:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:18:04 - End Time 2024-12-24 20:18:04 [2024-12-24 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094569', 'tblTempUsageDetail_20' ) start [2024-12-24 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094569', 'tblTempUsageDetail_20' ) end [2024-12-24 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094569', 'tblTempVendorCDR_20' ) start [2024-12-24 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094569', 'tblTempVendorCDR_20' ) end [2024-12-24 20:18:18] Production.INFO: ProcessCDR(1,14094569,1,1,2) [2024-12-24 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094569', 'tblTempUsageDetail_20' ) start [2024-12-24 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094569', 'tblTempUsageDetail_20' ) end [2024-12-24 20:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:18:21] Production.INFO: ==24708== Releasing lock... [2024-12-24 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:18:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:19:05 [end_date_ymd] => 2024-12-24 20:19:05 [RateCDR] => 1 ) [2024-12-24 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:19:05' and `end` < '2024-12-24 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:19:17] Production.INFO: count ==2918 [2024-12-24 20:19:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:19:05 - End Time 2024-12-24 20:19:05 [2024-12-24 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094574', 'tblTempUsageDetail_20' ) start [2024-12-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094574', 'tblTempUsageDetail_20' ) end [2024-12-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094574', 'tblTempVendorCDR_20' ) start [2024-12-24 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094574', 'tblTempVendorCDR_20' ) end [2024-12-24 20:19:18] Production.INFO: ProcessCDR(1,14094574,1,1,2) [2024-12-24 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094574', 'tblTempUsageDetail_20' ) start [2024-12-24 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094574', 'tblTempUsageDetail_20' ) end [2024-12-24 20:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:19:22] Production.INFO: ==24780== Releasing lock... [2024-12-24 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:19:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:20:05 [end_date_ymd] => 2024-12-24 20:20:05 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:20:05' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:20:21] Production.INFO: count ==2912 [2024-12-24 20:20:22] Production.ERROR: pbx CDR StartTime 2024-12-24 17:20:05 - End Time 2024-12-24 20:20:05 [2024-12-24 20:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094580', 'tblTempUsageDetail_20' ) start [2024-12-24 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094580', 'tblTempUsageDetail_20' ) end [2024-12-24 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094580', 'tblTempVendorCDR_20' ) start [2024-12-24 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094580', 'tblTempVendorCDR_20' ) end [2024-12-24 20:20:22] Production.INFO: ProcessCDR(1,14094580,1,1,2) [2024-12-24 20:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094580', 'tblTempUsageDetail_20' ) start [2024-12-24 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094580', 'tblTempUsageDetail_20' ) end [2024-12-24 20:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:20:25] Production.INFO: ==24858== Releasing lock... [2024-12-24 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:20:25] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:21:04 [end_date_ymd] => 2024-12-24 20:21:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:21:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:21:18] Production.INFO: count ==2908 [2024-12-24 20:21:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:21:04 - End Time 2024-12-24 20:21:04 [2024-12-24 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094585', 'tblTempUsageDetail_20' ) start [2024-12-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094585', 'tblTempUsageDetail_20' ) end [2024-12-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094585', 'tblTempVendorCDR_20' ) start [2024-12-24 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094585', 'tblTempVendorCDR_20' ) end [2024-12-24 20:21:19] Production.INFO: ProcessCDR(1,14094585,1,1,2) [2024-12-24 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094585', 'tblTempUsageDetail_20' ) start [2024-12-24 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094585', 'tblTempUsageDetail_20' ) end [2024-12-24 20:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:21:23] Production.INFO: ==24930== Releasing lock... [2024-12-24 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:21:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:22:05 [end_date_ymd] => 2024-12-24 20:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:22:18] Production.INFO: count ==2937 [2024-12-24 20:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:22:05 - End Time 2024-12-24 20:22:05 [2024-12-24 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094590', 'tblTempUsageDetail_20' ) start [2024-12-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094590', 'tblTempUsageDetail_20' ) end [2024-12-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094590', 'tblTempVendorCDR_20' ) start [2024-12-24 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094590', 'tblTempVendorCDR_20' ) end [2024-12-24 20:22:19] Production.INFO: ProcessCDR(1,14094590,1,1,2) [2024-12-24 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094590', 'tblTempUsageDetail_20' ) start [2024-12-24 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094590', 'tblTempUsageDetail_20' ) end [2024-12-24 20:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:22:23] Production.INFO: ==25004== Releasing lock... [2024-12-24 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:22:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:23:05 [end_date_ymd] => 2024-12-24 20:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:23:17] Production.INFO: count ==2937 [2024-12-24 20:23:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:23:05 - End Time 2024-12-24 20:23:05 [2024-12-24 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094595', 'tblTempUsageDetail_20' ) start [2024-12-24 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094595', 'tblTempUsageDetail_20' ) end [2024-12-24 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094595', 'tblTempVendorCDR_20' ) start [2024-12-24 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094595', 'tblTempVendorCDR_20' ) end [2024-12-24 20:23:18] Production.INFO: ProcessCDR(1,14094595,1,1,2) [2024-12-24 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094595', 'tblTempUsageDetail_20' ) start [2024-12-24 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094595', 'tblTempUsageDetail_20' ) end [2024-12-24 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:23:21] Production.INFO: ==25131== Releasing lock... [2024-12-24 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:23:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:24:06 [end_date_ymd] => 2024-12-24 20:24:06 [RateCDR] => 1 ) [2024-12-24 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:24:06' and `end` < '2024-12-24 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:24:19] Production.INFO: count ==2939 [2024-12-24 20:24:20] Production.ERROR: pbx CDR StartTime 2024-12-24 17:24:06 - End Time 2024-12-24 20:24:06 [2024-12-24 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094600', 'tblTempUsageDetail_20' ) start [2024-12-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094600', 'tblTempUsageDetail_20' ) end [2024-12-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094600', 'tblTempVendorCDR_20' ) start [2024-12-24 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094600', 'tblTempVendorCDR_20' ) end [2024-12-24 20:24:20] Production.INFO: ProcessCDR(1,14094600,1,1,2) [2024-12-24 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094600', 'tblTempUsageDetail_20' ) start [2024-12-24 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094600', 'tblTempUsageDetail_20' ) end [2024-12-24 20:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:24:25] Production.INFO: ==25207== Releasing lock... [2024-12-24 20:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:24:25] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:25:04 [end_date_ymd] => 2024-12-24 20:25:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:25:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:25:17] Production.INFO: count ==2940 [2024-12-24 20:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:25:04 - End Time 2024-12-24 20:25:04 [2024-12-24 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094605', 'tblTempUsageDetail_20' ) start [2024-12-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094605', 'tblTempUsageDetail_20' ) end [2024-12-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094605', 'tblTempVendorCDR_20' ) start [2024-12-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094605', 'tblTempVendorCDR_20' ) end [2024-12-24 20:25:18] Production.INFO: ProcessCDR(1,14094605,1,1,2) [2024-12-24 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094605', 'tblTempUsageDetail_20' ) start [2024-12-24 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094605', 'tblTempUsageDetail_20' ) end [2024-12-24 20:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:25:23] Production.INFO: ==25281== Releasing lock... [2024-12-24 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:25:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:26:05 [end_date_ymd] => 2024-12-24 20:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:26:18] Production.INFO: count ==2940 [2024-12-24 20:26:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:26:05 - End Time 2024-12-24 20:26:05 [2024-12-24 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094610', 'tblTempUsageDetail_20' ) start [2024-12-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094610', 'tblTempUsageDetail_20' ) end [2024-12-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094610', 'tblTempVendorCDR_20' ) start [2024-12-24 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094610', 'tblTempVendorCDR_20' ) end [2024-12-24 20:26:19] Production.INFO: ProcessCDR(1,14094610,1,1,2) [2024-12-24 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094610', 'tblTempUsageDetail_20' ) start [2024-12-24 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094610', 'tblTempUsageDetail_20' ) end [2024-12-24 20:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:26:22] Production.INFO: ==25353== Releasing lock... [2024-12-24 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:26:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:27:05 [end_date_ymd] => 2024-12-24 20:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:27:17] Production.INFO: count ==2940 [2024-12-24 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:27:05 - End Time 2024-12-24 20:27:05 [2024-12-24 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094615', 'tblTempUsageDetail_20' ) start [2024-12-24 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094615', 'tblTempUsageDetail_20' ) end [2024-12-24 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094615', 'tblTempVendorCDR_20' ) start [2024-12-24 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094615', 'tblTempVendorCDR_20' ) end [2024-12-24 20:27:18] Production.INFO: ProcessCDR(1,14094615,1,1,2) [2024-12-24 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094615', 'tblTempUsageDetail_20' ) start [2024-12-24 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094615', 'tblTempUsageDetail_20' ) end [2024-12-24 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:27:21] Production.INFO: ==25429== Releasing lock... [2024-12-24 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:27:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:28:05 [end_date_ymd] => 2024-12-24 20:28:05 [RateCDR] => 1 ) [2024-12-24 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:28:05' and `end` < '2024-12-24 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:28:18] Production.INFO: count ==2939 [2024-12-24 20:28:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:28:05 - End Time 2024-12-24 20:28:05 [2024-12-24 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094620', 'tblTempUsageDetail_20' ) start [2024-12-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094620', 'tblTempUsageDetail_20' ) end [2024-12-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094620', 'tblTempVendorCDR_20' ) start [2024-12-24 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094620', 'tblTempVendorCDR_20' ) end [2024-12-24 20:28:19] Production.INFO: ProcessCDR(1,14094620,1,1,2) [2024-12-24 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094620', 'tblTempUsageDetail_20' ) start [2024-12-24 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094620', 'tblTempUsageDetail_20' ) end [2024-12-24 20:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:28:22] Production.INFO: ==25505== Releasing lock... [2024-12-24 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:28:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:29:04 [end_date_ymd] => 2024-12-24 20:29:04 [RateCDR] => 1 ) [2024-12-24 20:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:29:04' and `end` < '2024-12-24 20:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:29:17] Production.INFO: count ==2942 [2024-12-24 20:29:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:29:04 - End Time 2024-12-24 20:29:04 [2024-12-24 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094625', 'tblTempUsageDetail_20' ) start [2024-12-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094625', 'tblTempUsageDetail_20' ) end [2024-12-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094625', 'tblTempVendorCDR_20' ) start [2024-12-24 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094625', 'tblTempVendorCDR_20' ) end [2024-12-24 20:29:18] Production.INFO: ProcessCDR(1,14094625,1,1,2) [2024-12-24 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094625', 'tblTempUsageDetail_20' ) start [2024-12-24 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094625', 'tblTempUsageDetail_20' ) end [2024-12-24 20:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:29:21] Production.INFO: ==25580== Releasing lock... [2024-12-24 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:29:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-24 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:30:05 [end_date_ymd] => 2024-12-24 20:30:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:30:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:30:18] Production.INFO: count ==2945 [2024-12-24 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:30:05 - End Time 2024-12-24 20:30:05 [2024-12-24 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094631', 'tblTempUsageDetail_20' ) start [2024-12-24 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094631', 'tblTempUsageDetail_20' ) end [2024-12-24 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094631', 'tblTempVendorCDR_20' ) start [2024-12-24 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094631', 'tblTempVendorCDR_20' ) end [2024-12-24 20:30:18] Production.INFO: ProcessCDR(1,14094631,1,1,2) [2024-12-24 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094631', 'tblTempUsageDetail_20' ) start [2024-12-24 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094631', 'tblTempUsageDetail_20' ) end [2024-12-24 20:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:30:21] Production.INFO: ==25654== Releasing lock... [2024-12-24 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:30:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:31:05 [end_date_ymd] => 2024-12-24 20:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:31:17] Production.INFO: count ==2929 [2024-12-24 20:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:31:05 - End Time 2024-12-24 20:31:05 [2024-12-24 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094636', 'tblTempUsageDetail_20' ) start [2024-12-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094636', 'tblTempUsageDetail_20' ) end [2024-12-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094636', 'tblTempVendorCDR_20' ) start [2024-12-24 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094636', 'tblTempVendorCDR_20' ) end [2024-12-24 20:31:18] Production.INFO: ProcessCDR(1,14094636,1,1,2) [2024-12-24 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094636', 'tblTempUsageDetail_20' ) start [2024-12-24 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094636', 'tblTempUsageDetail_20' ) end [2024-12-24 20:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:31:22] Production.INFO: ==25730== Releasing lock... [2024-12-24 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:31:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:32:05 [end_date_ymd] => 2024-12-24 20:32:05 [RateCDR] => 1 ) [2024-12-24 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:32:05' and `end` < '2024-12-24 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:32:18] Production.INFO: count ==2935 [2024-12-24 20:32:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:32:05 - End Time 2024-12-24 20:32:05 [2024-12-24 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094641', 'tblTempUsageDetail_20' ) start [2024-12-24 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094641', 'tblTempUsageDetail_20' ) end [2024-12-24 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094641', 'tblTempVendorCDR_20' ) start [2024-12-24 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094641', 'tblTempVendorCDR_20' ) end [2024-12-24 20:32:19] Production.INFO: ProcessCDR(1,14094641,1,1,2) [2024-12-24 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094641', 'tblTempUsageDetail_20' ) start [2024-12-24 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094641', 'tblTempUsageDetail_20' ) end [2024-12-24 20:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:32:22] Production.INFO: ==25807== Releasing lock... [2024-12-24 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:32:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:33:05 [end_date_ymd] => 2024-12-24 20:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:33:18] Production.INFO: count ==2935 [2024-12-24 20:33:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:33:05 - End Time 2024-12-24 20:33:05 [2024-12-24 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094646', 'tblTempUsageDetail_20' ) start [2024-12-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094646', 'tblTempUsageDetail_20' ) end [2024-12-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094646', 'tblTempVendorCDR_20' ) start [2024-12-24 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094646', 'tblTempVendorCDR_20' ) end [2024-12-24 20:33:19] Production.INFO: ProcessCDR(1,14094646,1,1,2) [2024-12-24 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094646', 'tblTempUsageDetail_20' ) start [2024-12-24 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094646', 'tblTempUsageDetail_20' ) end [2024-12-24 20:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:33:23] Production.INFO: ==25884== Releasing lock... [2024-12-24 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:33:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:34:05 [end_date_ymd] => 2024-12-24 20:34:05 [RateCDR] => 1 ) [2024-12-24 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:34:05' and `end` < '2024-12-24 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:34:18] Production.INFO: count ==2932 [2024-12-24 20:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:34:05 - End Time 2024-12-24 20:34:05 [2024-12-24 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094651', 'tblTempUsageDetail_20' ) start [2024-12-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094651', 'tblTempUsageDetail_20' ) end [2024-12-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094651', 'tblTempVendorCDR_20' ) start [2024-12-24 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094651', 'tblTempVendorCDR_20' ) end [2024-12-24 20:34:19] Production.INFO: ProcessCDR(1,14094651,1,1,2) [2024-12-24 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094651', 'tblTempUsageDetail_20' ) start [2024-12-24 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094651', 'tblTempUsageDetail_20' ) end [2024-12-24 20:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:34:22] Production.INFO: ==25961== Releasing lock... [2024-12-24 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:34:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:35:05 [end_date_ymd] => 2024-12-24 20:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:35:19] Production.INFO: count ==2933 [2024-12-24 20:35:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:35:05 - End Time 2024-12-24 20:35:05 [2024-12-24 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094656', 'tblTempUsageDetail_20' ) start [2024-12-24 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094656', 'tblTempUsageDetail_20' ) end [2024-12-24 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094656', 'tblTempVendorCDR_20' ) start [2024-12-24 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094656', 'tblTempVendorCDR_20' ) end [2024-12-24 20:35:20] Production.INFO: ProcessCDR(1,14094656,1,1,2) [2024-12-24 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094656', 'tblTempUsageDetail_20' ) start [2024-12-24 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094656', 'tblTempUsageDetail_20' ) end [2024-12-24 20:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:35:23] Production.INFO: ==26038== Releasing lock... [2024-12-24 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:35:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:36:04 [end_date_ymd] => 2024-12-24 20:36:04 [RateCDR] => 1 ) [2024-12-24 20:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:36:04' and `end` < '2024-12-24 20:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:36:17] Production.INFO: count ==2936 [2024-12-24 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:36:04 - End Time 2024-12-24 20:36:04 [2024-12-24 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094661', 'tblTempUsageDetail_20' ) start [2024-12-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094661', 'tblTempUsageDetail_20' ) end [2024-12-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094661', 'tblTempVendorCDR_20' ) start [2024-12-24 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094661', 'tblTempVendorCDR_20' ) end [2024-12-24 20:36:18] Production.INFO: ProcessCDR(1,14094661,1,1,2) [2024-12-24 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094661', 'tblTempUsageDetail_20' ) start [2024-12-24 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094661', 'tblTempUsageDetail_20' ) end [2024-12-24 20:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:36:23] Production.INFO: ==26111== Releasing lock... [2024-12-24 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:36:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:37:05 [end_date_ymd] => 2024-12-24 20:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:37:18] Production.INFO: count ==2939 [2024-12-24 20:37:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:37:05 - End Time 2024-12-24 20:37:05 [2024-12-24 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094666', 'tblTempUsageDetail_20' ) start [2024-12-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094666', 'tblTempUsageDetail_20' ) end [2024-12-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094666', 'tblTempVendorCDR_20' ) start [2024-12-24 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094666', 'tblTempVendorCDR_20' ) end [2024-12-24 20:37:19] Production.INFO: ProcessCDR(1,14094666,1,1,2) [2024-12-24 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094666', 'tblTempUsageDetail_20' ) start [2024-12-24 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094666', 'tblTempUsageDetail_20' ) end [2024-12-24 20:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:37:23] Production.INFO: ==26187== Releasing lock... [2024-12-24 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:37:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:38:04 [end_date_ymd] => 2024-12-24 20:38:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:38:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:38:18] Production.INFO: count ==2939 [2024-12-24 20:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:38:04 - End Time 2024-12-24 20:38:04 [2024-12-24 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094671', 'tblTempUsageDetail_20' ) start [2024-12-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094671', 'tblTempUsageDetail_20' ) end [2024-12-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094671', 'tblTempVendorCDR_20' ) start [2024-12-24 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094671', 'tblTempVendorCDR_20' ) end [2024-12-24 20:38:19] Production.INFO: ProcessCDR(1,14094671,1,1,2) [2024-12-24 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094671', 'tblTempUsageDetail_20' ) start [2024-12-24 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094671', 'tblTempUsageDetail_20' ) end [2024-12-24 20:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:38:23] Production.INFO: ==26261== Releasing lock... [2024-12-24 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:38:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:39:05 [end_date_ymd] => 2024-12-24 20:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:39:19] Production.INFO: count ==2942 [2024-12-24 20:39:20] Production.ERROR: pbx CDR StartTime 2024-12-24 17:39:05 - End Time 2024-12-24 20:39:05 [2024-12-24 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094676', 'tblTempUsageDetail_20' ) start [2024-12-24 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094676', 'tblTempUsageDetail_20' ) end [2024-12-24 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094676', 'tblTempVendorCDR_20' ) start [2024-12-24 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094676', 'tblTempVendorCDR_20' ) end [2024-12-24 20:39:20] Production.INFO: ProcessCDR(1,14094676,1,1,2) [2024-12-24 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094676', 'tblTempUsageDetail_20' ) start [2024-12-24 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094676', 'tblTempUsageDetail_20' ) end [2024-12-24 20:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:39:23] Production.INFO: ==26376== Releasing lock... [2024-12-24 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:39:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:40:06 [end_date_ymd] => 2024-12-24 20:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:40:18] Production.INFO: count ==2945 [2024-12-24 20:40:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:40:06 - End Time 2024-12-24 20:40:06 [2024-12-24 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094682', 'tblTempUsageDetail_20' ) start [2024-12-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094682', 'tblTempUsageDetail_20' ) end [2024-12-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094682', 'tblTempVendorCDR_20' ) start [2024-12-24 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094682', 'tblTempVendorCDR_20' ) end [2024-12-24 20:40:19] Production.INFO: ProcessCDR(1,14094682,1,1,2) [2024-12-24 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094682', 'tblTempUsageDetail_20' ) start [2024-12-24 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094682', 'tblTempUsageDetail_20' ) end [2024-12-24 20:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:40:22] Production.INFO: ==26454== Releasing lock... [2024-12-24 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:40:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:41:04 [end_date_ymd] => 2024-12-24 20:41:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:41:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:41:17] Production.INFO: count ==2946 [2024-12-24 20:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:41:04 - End Time 2024-12-24 20:41:04 [2024-12-24 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094687', 'tblTempUsageDetail_20' ) start [2024-12-24 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094687', 'tblTempUsageDetail_20' ) end [2024-12-24 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094687', 'tblTempVendorCDR_20' ) start [2024-12-24 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094687', 'tblTempVendorCDR_20' ) end [2024-12-24 20:41:18] Production.INFO: ProcessCDR(1,14094687,1,1,2) [2024-12-24 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094687', 'tblTempUsageDetail_20' ) start [2024-12-24 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094687', 'tblTempUsageDetail_20' ) end [2024-12-24 20:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:41:21] Production.INFO: ==26532== Releasing lock... [2024-12-24 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:41:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:42:05 [end_date_ymd] => 2024-12-24 20:42:05 [RateCDR] => 1 ) [2024-12-24 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:42:05' and `end` < '2024-12-24 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:42:18] Production.INFO: count ==2948 [2024-12-24 20:42:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:42:05 - End Time 2024-12-24 20:42:05 [2024-12-24 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094692', 'tblTempUsageDetail_20' ) start [2024-12-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094692', 'tblTempUsageDetail_20' ) end [2024-12-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094692', 'tblTempVendorCDR_20' ) start [2024-12-24 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094692', 'tblTempVendorCDR_20' ) end [2024-12-24 20:42:19] Production.INFO: ProcessCDR(1,14094692,1,1,2) [2024-12-24 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094692', 'tblTempUsageDetail_20' ) start [2024-12-24 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094692', 'tblTempUsageDetail_20' ) end [2024-12-24 20:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:42:22] Production.INFO: ==26609== Releasing lock... [2024-12-24 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:42:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:43:05 [end_date_ymd] => 2024-12-24 20:43:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:43:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:43:17] Production.INFO: count ==2951 [2024-12-24 20:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:43:05 - End Time 2024-12-24 20:43:05 [2024-12-24 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094697', 'tblTempUsageDetail_20' ) start [2024-12-24 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094697', 'tblTempUsageDetail_20' ) end [2024-12-24 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094697', 'tblTempVendorCDR_20' ) start [2024-12-24 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094697', 'tblTempVendorCDR_20' ) end [2024-12-24 20:43:18] Production.INFO: ProcessCDR(1,14094697,1,1,2) [2024-12-24 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094697', 'tblTempUsageDetail_20' ) start [2024-12-24 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094697', 'tblTempUsageDetail_20' ) end [2024-12-24 20:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:43:22] Production.INFO: ==26683== Releasing lock... [2024-12-24 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:43:22] Production.INFO: 50 MB #Memory Used# [2024-12-24 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:44:05 [end_date_ymd] => 2024-12-24 20:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:44:18] Production.INFO: count ==2941 [2024-12-24 20:44:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:44:05 - End Time 2024-12-24 20:44:05 [2024-12-24 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094702', 'tblTempUsageDetail_20' ) start [2024-12-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094702', 'tblTempUsageDetail_20' ) end [2024-12-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094702', 'tblTempVendorCDR_20' ) start [2024-12-24 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094702', 'tblTempVendorCDR_20' ) end [2024-12-24 20:44:19] Production.INFO: ProcessCDR(1,14094702,1,1,2) [2024-12-24 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094702', 'tblTempUsageDetail_20' ) start [2024-12-24 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094702', 'tblTempUsageDetail_20' ) end [2024-12-24 20:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:44:22] Production.INFO: ==26757== Releasing lock... [2024-12-24 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:44:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:45:04 [end_date_ymd] => 2024-12-24 20:45:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:45:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:45:17] Production.INFO: count ==2938 [2024-12-24 20:45:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:45:04 - End Time 2024-12-24 20:45:04 [2024-12-24 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094707', 'tblTempUsageDetail_20' ) start [2024-12-24 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094707', 'tblTempUsageDetail_20' ) end [2024-12-24 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094707', 'tblTempVendorCDR_20' ) start [2024-12-24 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094707', 'tblTempVendorCDR_20' ) end [2024-12-24 20:45:18] Production.INFO: ProcessCDR(1,14094707,1,1,2) [2024-12-24 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094707', 'tblTempUsageDetail_20' ) start [2024-12-24 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094707', 'tblTempUsageDetail_20' ) end [2024-12-24 20:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:45:21] Production.INFO: ==26832== Releasing lock... [2024-12-24 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:45:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:46:05 [end_date_ymd] => 2024-12-24 20:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:46:17] Production.INFO: count ==2942 [2024-12-24 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:46:05 - End Time 2024-12-24 20:46:05 [2024-12-24 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094712', 'tblTempUsageDetail_20' ) start [2024-12-24 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094712', 'tblTempUsageDetail_20' ) end [2024-12-24 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094712', 'tblTempVendorCDR_20' ) start [2024-12-24 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094712', 'tblTempVendorCDR_20' ) end [2024-12-24 20:46:18] Production.INFO: ProcessCDR(1,14094712,1,1,2) [2024-12-24 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094712', 'tblTempUsageDetail_20' ) start [2024-12-24 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094712', 'tblTempUsageDetail_20' ) end [2024-12-24 20:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:46:22] Production.INFO: ==26910== Releasing lock... [2024-12-24 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:46:22] Production.INFO: 50 MB #Memory Used# [2024-12-24 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:47:04 [end_date_ymd] => 2024-12-24 20:47:04 [RateCDR] => 1 ) [2024-12-24 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:47:04' and `end` < '2024-12-24 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:47:17] Production.INFO: count ==2945 [2024-12-24 20:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:47:04 - End Time 2024-12-24 20:47:04 [2024-12-24 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094717', 'tblTempUsageDetail_20' ) start [2024-12-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094717', 'tblTempUsageDetail_20' ) end [2024-12-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094717', 'tblTempVendorCDR_20' ) start [2024-12-24 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094717', 'tblTempVendorCDR_20' ) end [2024-12-24 20:47:18] Production.INFO: ProcessCDR(1,14094717,1,1,2) [2024-12-24 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094717', 'tblTempUsageDetail_20' ) start [2024-12-24 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094717', 'tblTempUsageDetail_20' ) end [2024-12-24 20:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:47:21] Production.INFO: ==26985== Releasing lock... [2024-12-24 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:47:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:48:05 [end_date_ymd] => 2024-12-24 20:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:48:17] Production.INFO: count ==2951 [2024-12-24 20:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:48:05 - End Time 2024-12-24 20:48:05 [2024-12-24 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094722', 'tblTempUsageDetail_20' ) start [2024-12-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094722', 'tblTempUsageDetail_20' ) end [2024-12-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094722', 'tblTempVendorCDR_20' ) start [2024-12-24 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094722', 'tblTempVendorCDR_20' ) end [2024-12-24 20:48:18] Production.INFO: ProcessCDR(1,14094722,1,1,2) [2024-12-24 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094722', 'tblTempUsageDetail_20' ) start [2024-12-24 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094722', 'tblTempUsageDetail_20' ) end [2024-12-24 20:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:48:22] Production.INFO: ==27064== Releasing lock... [2024-12-24 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:48:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:49:04 [end_date_ymd] => 2024-12-24 20:49:04 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:49:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:49:17] Production.INFO: count ==2952 [2024-12-24 20:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:49:04 - End Time 2024-12-24 20:49:04 [2024-12-24 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094727', 'tblTempUsageDetail_20' ) start [2024-12-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094727', 'tblTempUsageDetail_20' ) end [2024-12-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094727', 'tblTempVendorCDR_20' ) start [2024-12-24 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094727', 'tblTempVendorCDR_20' ) end [2024-12-24 20:49:18] Production.INFO: ProcessCDR(1,14094727,1,1,2) [2024-12-24 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094727', 'tblTempUsageDetail_20' ) start [2024-12-24 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094727', 'tblTempUsageDetail_20' ) end [2024-12-24 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:49:21] Production.INFO: ==27136== Releasing lock... [2024-12-24 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:49:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:50:05 [end_date_ymd] => 2024-12-24 20:50:05 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:50:05' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:50:17] Production.INFO: count ==2942 [2024-12-24 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:50:05 - End Time 2024-12-24 20:50:05 [2024-12-24 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094732', 'tblTempUsageDetail_20' ) start [2024-12-24 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094732', 'tblTempUsageDetail_20' ) end [2024-12-24 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094732', 'tblTempVendorCDR_20' ) start [2024-12-24 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094732', 'tblTempVendorCDR_20' ) end [2024-12-24 20:50:18] Production.INFO: ProcessCDR(1,14094732,1,1,2) [2024-12-24 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094732', 'tblTempUsageDetail_20' ) start [2024-12-24 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094732', 'tblTempUsageDetail_20' ) end [2024-12-24 20:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:50:23] Production.INFO: ==27209== Releasing lock... [2024-12-24 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:50:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:51:05 [end_date_ymd] => 2024-12-24 20:51:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:51:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:51:18] Production.INFO: count ==2885 [2024-12-24 20:51:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:51:05 - End Time 2024-12-24 20:51:05 [2024-12-24 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094738', 'tblTempUsageDetail_20' ) start [2024-12-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094738', 'tblTempUsageDetail_20' ) end [2024-12-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094738', 'tblTempVendorCDR_20' ) start [2024-12-24 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094738', 'tblTempVendorCDR_20' ) end [2024-12-24 20:51:19] Production.INFO: ProcessCDR(1,14094738,1,1,2) [2024-12-24 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094738', 'tblTempUsageDetail_20' ) start [2024-12-24 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094738', 'tblTempUsageDetail_20' ) end [2024-12-24 20:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:51:23] Production.INFO: ==27286== Releasing lock... [2024-12-24 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:51:23] Production.INFO: 50 MB #Memory Used# [2024-12-24 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:52:05 [end_date_ymd] => 2024-12-24 20:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:52:19] Production.INFO: count ==2887 [2024-12-24 20:52:20] Production.ERROR: pbx CDR StartTime 2024-12-24 17:52:05 - End Time 2024-12-24 20:52:05 [2024-12-24 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094743', 'tblTempUsageDetail_20' ) start [2024-12-24 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094743', 'tblTempUsageDetail_20' ) end [2024-12-24 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094743', 'tblTempVendorCDR_20' ) start [2024-12-24 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094743', 'tblTempVendorCDR_20' ) end [2024-12-24 20:52:20] Production.INFO: ProcessCDR(1,14094743,1,1,2) [2024-12-24 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094743', 'tblTempUsageDetail_20' ) start [2024-12-24 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094743', 'tblTempUsageDetail_20' ) end [2024-12-24 20:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:52:23] Production.INFO: ==27357== Releasing lock... [2024-12-24 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:52:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-24 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:53:04 [end_date_ymd] => 2024-12-24 20:53:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:53:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:53:17] Production.INFO: count ==2888 [2024-12-24 20:53:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:53:04 - End Time 2024-12-24 20:53:04 [2024-12-24 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094748', 'tblTempUsageDetail_20' ) start [2024-12-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094748', 'tblTempUsageDetail_20' ) end [2024-12-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094748', 'tblTempVendorCDR_20' ) start [2024-12-24 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094748', 'tblTempVendorCDR_20' ) end [2024-12-24 20:53:18] Production.INFO: ProcessCDR(1,14094748,1,1,2) [2024-12-24 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094748', 'tblTempUsageDetail_20' ) start [2024-12-24 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094748', 'tblTempUsageDetail_20' ) end [2024-12-24 20:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:53:21] Production.INFO: ==27432== Releasing lock... [2024-12-24 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:53:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:54:05 [end_date_ymd] => 2024-12-24 20:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:54:17] Production.INFO: count ==2888 [2024-12-24 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:54:05 - End Time 2024-12-24 20:54:05 [2024-12-24 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094753', 'tblTempUsageDetail_20' ) start [2024-12-24 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094753', 'tblTempUsageDetail_20' ) end [2024-12-24 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094753', 'tblTempVendorCDR_20' ) start [2024-12-24 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094753', 'tblTempVendorCDR_20' ) end [2024-12-24 20:54:18] Production.INFO: ProcessCDR(1,14094753,1,1,2) [2024-12-24 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094753', 'tblTempUsageDetail_20' ) start [2024-12-24 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094753', 'tblTempUsageDetail_20' ) end [2024-12-24 20:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:54:23] Production.INFO: ==27503== Releasing lock... [2024-12-24 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:54:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:55:05 [end_date_ymd] => 2024-12-24 20:55:05 [RateCDR] => 1 ) [2024-12-24 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:55:05' and `end` < '2024-12-24 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 20:55:17] Production.INFO: count ==2889 [2024-12-24 20:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:55:05 - End Time 2024-12-24 20:55:05 [2024-12-24 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094758', 'tblTempUsageDetail_20' ) start [2024-12-24 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094758', 'tblTempUsageDetail_20' ) end [2024-12-24 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094758', 'tblTempVendorCDR_20' ) start [2024-12-24 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094758', 'tblTempVendorCDR_20' ) end [2024-12-24 20:55:18] Production.INFO: ProcessCDR(1,14094758,1,1,2) [2024-12-24 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094758', 'tblTempUsageDetail_20' ) start [2024-12-24 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094758', 'tblTempUsageDetail_20' ) end [2024-12-24 20:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:55:23] Production.INFO: ==27616== Releasing lock... [2024-12-24 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:55:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:56:05 [end_date_ymd] => 2024-12-24 20:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:56:18] Production.INFO: count ==2891 [2024-12-24 20:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:56:05 - End Time 2024-12-24 20:56:05 [2024-12-24 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094763', 'tblTempUsageDetail_20' ) start [2024-12-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094763', 'tblTempUsageDetail_20' ) end [2024-12-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094763', 'tblTempVendorCDR_20' ) start [2024-12-24 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094763', 'tblTempVendorCDR_20' ) end [2024-12-24 20:56:19] Production.INFO: ProcessCDR(1,14094763,1,1,2) [2024-12-24 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094763', 'tblTempUsageDetail_20' ) start [2024-12-24 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094763', 'tblTempUsageDetail_20' ) end [2024-12-24 20:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:56:22] Production.INFO: ==27686== Releasing lock... [2024-12-24 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:56:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:57:06 [end_date_ymd] => 2024-12-24 20:57:06 [RateCDR] => 1 ) [2024-12-24 20: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` >= '2024-12-24 17:57:06' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:57:18] Production.INFO: count ==2886 [2024-12-24 20:57:19] Production.ERROR: pbx CDR StartTime 2024-12-24 17:57:06 - End Time 2024-12-24 20:57:06 [2024-12-24 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094768', 'tblTempUsageDetail_20' ) start [2024-12-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094768', 'tblTempUsageDetail_20' ) end [2024-12-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094768', 'tblTempVendorCDR_20' ) start [2024-12-24 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094768', 'tblTempVendorCDR_20' ) end [2024-12-24 20:57:19] Production.INFO: ProcessCDR(1,14094768,1,1,2) [2024-12-24 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094768', 'tblTempUsageDetail_20' ) start [2024-12-24 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094768', 'tblTempUsageDetail_20' ) end [2024-12-24 20:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:57:24] Production.INFO: ==27760== Releasing lock... [2024-12-24 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:57:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:58:04 [end_date_ymd] => 2024-12-24 20:58:04 [RateCDR] => 1 ) [2024-12-24 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 17:58:04' and `end` < '2024-12-24 20: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 ,'') [2024-12-24 20:58:17] Production.INFO: count ==2807 [2024-12-24 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:58:04 - End Time 2024-12-24 20:58:04 [2024-12-24 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094773', 'tblTempUsageDetail_20' ) start [2024-12-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094773', 'tblTempUsageDetail_20' ) end [2024-12-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094773', 'tblTempVendorCDR_20' ) start [2024-12-24 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094773', 'tblTempVendorCDR_20' ) end [2024-12-24 20:58:18] Production.INFO: ProcessCDR(1,14094773,1,1,2) [2024-12-24 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094773', 'tblTempUsageDetail_20' ) start [2024-12-24 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094773', 'tblTempUsageDetail_20' ) end [2024-12-24 20:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:58:23] Production.INFO: ==27830== Releasing lock... [2024-12-24 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:58:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 17:59:05 [end_date_ymd] => 2024-12-24 20:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 17:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 20:59:17] Production.INFO: count ==2799 [2024-12-24 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 17:59:05 - End Time 2024-12-24 20:59:05 [2024-12-24 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094778', 'tblTempUsageDetail_20' ) start [2024-12-24 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094778', 'tblTempUsageDetail_20' ) end [2024-12-24 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094778', 'tblTempVendorCDR_20' ) start [2024-12-24 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094778', 'tblTempVendorCDR_20' ) end [2024-12-24 20:59:18] Production.INFO: ProcessCDR(1,14094778,1,1,2) [2024-12-24 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094778', 'tblTempUsageDetail_20' ) start [2024-12-24 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094778', 'tblTempUsageDetail_20' ) end [2024-12-24 20:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 20:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 20:59:22] Production.INFO: ==27907== Releasing lock... [2024-12-24 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 20:59:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:00:05 [end_date_ymd] => 2024-12-24 21:00:05 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:00:05' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:00:18] Production.INFO: count ==2795 [2024-12-24 21:00:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:00:05 - End Time 2024-12-24 21:00:05 [2024-12-24 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094784', 'tblTempUsageDetail_20' ) start [2024-12-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094784', 'tblTempUsageDetail_20' ) end [2024-12-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094784', 'tblTempVendorCDR_20' ) start [2024-12-24 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094784', 'tblTempVendorCDR_20' ) end [2024-12-24 21:00:19] Production.INFO: ProcessCDR(1,14094784,1,1,2) [2024-12-24 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094784', 'tblTempUsageDetail_20' ) start [2024-12-24 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094784', 'tblTempUsageDetail_20' ) end [2024-12-24 21:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:00:22] Production.INFO: ==27980== Releasing lock... [2024-12-24 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:00:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:01:05 [end_date_ymd] => 2024-12-24 21:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:01:18] Production.INFO: count ==2756 [2024-12-24 21:01:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:01:05 - End Time 2024-12-24 21:01:05 [2024-12-24 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094789', 'tblTempUsageDetail_20' ) start [2024-12-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094789', 'tblTempUsageDetail_20' ) end [2024-12-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094789', 'tblTempVendorCDR_20' ) start [2024-12-24 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094789', 'tblTempVendorCDR_20' ) end [2024-12-24 21:01:19] Production.INFO: ProcessCDR(1,14094789,1,1,2) [2024-12-24 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094789', 'tblTempUsageDetail_20' ) start [2024-12-24 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094789', 'tblTempUsageDetail_20' ) end [2024-12-24 21:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:01:22] Production.INFO: ==28063== Releasing lock... [2024-12-24 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:01:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:02:05 [end_date_ymd] => 2024-12-24 21:02:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:02:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:02:17] Production.INFO: count ==2756 [2024-12-24 21:02:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:02:05 - End Time 2024-12-24 21:02:05 [2024-12-24 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094794', 'tblTempUsageDetail_20' ) start [2024-12-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094794', 'tblTempUsageDetail_20' ) end [2024-12-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094794', 'tblTempVendorCDR_20' ) start [2024-12-24 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094794', 'tblTempVendorCDR_20' ) end [2024-12-24 21:02:18] Production.INFO: ProcessCDR(1,14094794,1,1,2) [2024-12-24 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094794', 'tblTempUsageDetail_20' ) start [2024-12-24 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094794', 'tblTempUsageDetail_20' ) end [2024-12-24 21:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:02:21] Production.INFO: ==28135== Releasing lock... [2024-12-24 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:02:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:03:04 [end_date_ymd] => 2024-12-24 21:03:04 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:03:04' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:03:17] Production.INFO: count ==2755 [2024-12-24 21:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:03:04 - End Time 2024-12-24 21:03:04 [2024-12-24 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094799', 'tblTempUsageDetail_20' ) start [2024-12-24 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094799', 'tblTempUsageDetail_20' ) end [2024-12-24 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094799', 'tblTempVendorCDR_20' ) start [2024-12-24 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094799', 'tblTempVendorCDR_20' ) end [2024-12-24 21:03:18] Production.INFO: ProcessCDR(1,14094799,1,1,2) [2024-12-24 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094799', 'tblTempUsageDetail_20' ) start [2024-12-24 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094799', 'tblTempUsageDetail_20' ) end [2024-12-24 21:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:03:22] Production.INFO: ==28207== Releasing lock... [2024-12-24 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:03:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:04:05 [end_date_ymd] => 2024-12-24 21:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:04:17] Production.INFO: count ==2761 [2024-12-24 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:04:05 - End Time 2024-12-24 21:04:05 [2024-12-24 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094804', 'tblTempUsageDetail_20' ) start [2024-12-24 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094804', 'tblTempUsageDetail_20' ) end [2024-12-24 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094804', 'tblTempVendorCDR_20' ) start [2024-12-24 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094804', 'tblTempVendorCDR_20' ) end [2024-12-24 21:04:18] Production.INFO: ProcessCDR(1,14094804,1,1,2) [2024-12-24 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094804', 'tblTempUsageDetail_20' ) start [2024-12-24 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094804', 'tblTempUsageDetail_20' ) end [2024-12-24 21:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:04:23] Production.INFO: ==28284== Releasing lock... [2024-12-24 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:04:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:05:05 [end_date_ymd] => 2024-12-24 21:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:05:18] Production.INFO: count ==2765 [2024-12-24 21:05:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:05:05 - End Time 2024-12-24 21:05:05 [2024-12-24 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094809', 'tblTempUsageDetail_20' ) start [2024-12-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094809', 'tblTempUsageDetail_20' ) end [2024-12-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094809', 'tblTempVendorCDR_20' ) start [2024-12-24 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094809', 'tblTempVendorCDR_20' ) end [2024-12-24 21:05:19] Production.INFO: ProcessCDR(1,14094809,1,1,2) [2024-12-24 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094809', 'tblTempUsageDetail_20' ) start [2024-12-24 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094809', 'tblTempUsageDetail_20' ) end [2024-12-24 21:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:05:24] Production.INFO: ==28357== Releasing lock... [2024-12-24 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:05:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:06:05 [end_date_ymd] => 2024-12-24 21:06:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:06:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:06:17] Production.INFO: count ==2771 [2024-12-24 21:06:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:06:05 - End Time 2024-12-24 21:06:05 [2024-12-24 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094814', 'tblTempUsageDetail_20' ) start [2024-12-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094814', 'tblTempUsageDetail_20' ) end [2024-12-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094814', 'tblTempVendorCDR_20' ) start [2024-12-24 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094814', 'tblTempVendorCDR_20' ) end [2024-12-24 21:06:18] Production.INFO: ProcessCDR(1,14094814,1,1,2) [2024-12-24 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094814', 'tblTempUsageDetail_20' ) start [2024-12-24 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094814', 'tblTempUsageDetail_20' ) end [2024-12-24 21:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:06:21] Production.INFO: ==28431== Releasing lock... [2024-12-24 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:06:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:07:05 [end_date_ymd] => 2024-12-24 21:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:07:18] Production.INFO: count ==2771 [2024-12-24 21:07:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:07:05 - End Time 2024-12-24 21:07:05 [2024-12-24 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094819', 'tblTempUsageDetail_20' ) start [2024-12-24 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094819', 'tblTempUsageDetail_20' ) end [2024-12-24 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094819', 'tblTempVendorCDR_20' ) start [2024-12-24 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094819', 'tblTempVendorCDR_20' ) end [2024-12-24 21:07:19] Production.INFO: ProcessCDR(1,14094819,1,1,2) [2024-12-24 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094819', 'tblTempUsageDetail_20' ) start [2024-12-24 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094819', 'tblTempUsageDetail_20' ) end [2024-12-24 21:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:07:22] Production.INFO: ==28504== Releasing lock... [2024-12-24 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:07:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:08:05 [end_date_ymd] => 2024-12-24 21:08:05 [RateCDR] => 1 ) [2024-12-24 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:08:05' and `end` < '2024-12-24 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:08:17] Production.INFO: count ==2772 [2024-12-24 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:08:05 - End Time 2024-12-24 21:08:05 [2024-12-24 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094824', 'tblTempUsageDetail_20' ) start [2024-12-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094824', 'tblTempUsageDetail_20' ) end [2024-12-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094824', 'tblTempVendorCDR_20' ) start [2024-12-24 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094824', 'tblTempVendorCDR_20' ) end [2024-12-24 21:08:18] Production.INFO: ProcessCDR(1,14094824,1,1,2) [2024-12-24 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094824', 'tblTempUsageDetail_20' ) start [2024-12-24 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094824', 'tblTempUsageDetail_20' ) end [2024-12-24 21:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:08:23] Production.INFO: ==28576== Releasing lock... [2024-12-24 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:08:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:09:05 [end_date_ymd] => 2024-12-24 21:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:09:18] Production.INFO: count ==2772 [2024-12-24 21:09:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:09:05 - End Time 2024-12-24 21:09:05 [2024-12-24 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094829', 'tblTempUsageDetail_20' ) start [2024-12-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094829', 'tblTempUsageDetail_20' ) end [2024-12-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094829', 'tblTempVendorCDR_20' ) start [2024-12-24 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094829', 'tblTempVendorCDR_20' ) end [2024-12-24 21:09:19] Production.INFO: ProcessCDR(1,14094829,1,1,2) [2024-12-24 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094829', 'tblTempUsageDetail_20' ) start [2024-12-24 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094829', 'tblTempUsageDetail_20' ) end [2024-12-24 21:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:09:22] Production.INFO: ==28651== Releasing lock... [2024-12-24 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:09:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:10:05 [end_date_ymd] => 2024-12-24 21:10:05 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:10:05' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:10:18] Production.INFO: count ==2771 [2024-12-24 21:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:10:05 - End Time 2024-12-24 21:10:05 [2024-12-24 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094834', 'tblTempUsageDetail_20' ) start [2024-12-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094834', 'tblTempUsageDetail_20' ) end [2024-12-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094834', 'tblTempVendorCDR_20' ) start [2024-12-24 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094834', 'tblTempVendorCDR_20' ) end [2024-12-24 21:10:19] Production.INFO: ProcessCDR(1,14094834,1,1,2) [2024-12-24 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094834', 'tblTempUsageDetail_20' ) start [2024-12-24 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094834', 'tblTempUsageDetail_20' ) end [2024-12-24 21:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:10:22] Production.INFO: ==28766== Releasing lock... [2024-12-24 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:10:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:11:05 [end_date_ymd] => 2024-12-24 21:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:11:17] Production.INFO: count ==2747 [2024-12-24 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:11:05 - End Time 2024-12-24 21:11:05 [2024-12-24 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094840', 'tblTempUsageDetail_20' ) start [2024-12-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094840', 'tblTempUsageDetail_20' ) end [2024-12-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094840', 'tblTempVendorCDR_20' ) start [2024-12-24 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094840', 'tblTempVendorCDR_20' ) end [2024-12-24 21:11:18] Production.INFO: ProcessCDR(1,14094840,1,1,2) [2024-12-24 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094840', 'tblTempUsageDetail_20' ) start [2024-12-24 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094840', 'tblTempUsageDetail_20' ) end [2024-12-24 21:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:11:21] Production.INFO: ==28842== Releasing lock... [2024-12-24 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:11:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:12:05 [end_date_ymd] => 2024-12-24 21:12:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:12:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:12:18] Production.INFO: count ==2747 [2024-12-24 21:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:12:05 - End Time 2024-12-24 21:12:05 [2024-12-24 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094845', 'tblTempUsageDetail_20' ) start [2024-12-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094845', 'tblTempUsageDetail_20' ) end [2024-12-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094845', 'tblTempVendorCDR_20' ) start [2024-12-24 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094845', 'tblTempVendorCDR_20' ) end [2024-12-24 21:12:19] Production.INFO: ProcessCDR(1,14094845,1,1,2) [2024-12-24 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094845', 'tblTempUsageDetail_20' ) start [2024-12-24 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094845', 'tblTempUsageDetail_20' ) end [2024-12-24 21:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:12:23] Production.INFO: ==28942== Releasing lock... [2024-12-24 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:12:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:13:04 [end_date_ymd] => 2024-12-24 21:13:04 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:13:04' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:13:17] Production.INFO: count ==2747 [2024-12-24 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:13:04 - End Time 2024-12-24 21:13:04 [2024-12-24 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094850', 'tblTempUsageDetail_20' ) start [2024-12-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094850', 'tblTempUsageDetail_20' ) end [2024-12-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094850', 'tblTempVendorCDR_20' ) start [2024-12-24 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094850', 'tblTempVendorCDR_20' ) end [2024-12-24 21:13:18] Production.INFO: ProcessCDR(1,14094850,1,1,2) [2024-12-24 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094850', 'tblTempUsageDetail_20' ) start [2024-12-24 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094850', 'tblTempUsageDetail_20' ) end [2024-12-24 21:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:13:22] Production.INFO: ==29044== Releasing lock... [2024-12-24 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:13:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:14:05 [end_date_ymd] => 2024-12-24 21:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:14:18] Production.INFO: count ==2750 [2024-12-24 21:14:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:14:05 - End Time 2024-12-24 21:14:05 [2024-12-24 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094855', 'tblTempUsageDetail_20' ) start [2024-12-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094855', 'tblTempUsageDetail_20' ) end [2024-12-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094855', 'tblTempVendorCDR_20' ) start [2024-12-24 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094855', 'tblTempVendorCDR_20' ) end [2024-12-24 21:14:19] Production.INFO: ProcessCDR(1,14094855,1,1,2) [2024-12-24 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094855', 'tblTempUsageDetail_20' ) start [2024-12-24 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094855', 'tblTempUsageDetail_20' ) end [2024-12-24 21:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:14:24] Production.INFO: ==29146== Releasing lock... [2024-12-24 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:14:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:15:05 [end_date_ymd] => 2024-12-24 21:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:15:05' and `end` < '2024-12-24 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:15:17] Production.INFO: count ==2753 [2024-12-24 21:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:15:05 - End Time 2024-12-24 21:15:05 [2024-12-24 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094860', 'tblTempUsageDetail_20' ) start [2024-12-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094860', 'tblTempUsageDetail_20' ) end [2024-12-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094860', 'tblTempVendorCDR_20' ) start [2024-12-24 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094860', 'tblTempVendorCDR_20' ) end [2024-12-24 21:15:18] Production.INFO: ProcessCDR(1,14094860,1,1,2) [2024-12-24 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094860', 'tblTempUsageDetail_20' ) start [2024-12-24 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094860', 'tblTempUsageDetail_20' ) end [2024-12-24 21:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:15:23] Production.INFO: ==29251== Releasing lock... [2024-12-24 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:15:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:16:05 [end_date_ymd] => 2024-12-24 21:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:16:18] Production.INFO: count ==2753 [2024-12-24 21:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:16:05 - End Time 2024-12-24 21:16:05 [2024-12-24 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094865', 'tblTempUsageDetail_20' ) start [2024-12-24 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094865', 'tblTempUsageDetail_20' ) end [2024-12-24 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094865', 'tblTempVendorCDR_20' ) start [2024-12-24 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094865', 'tblTempVendorCDR_20' ) end [2024-12-24 21:16:19] Production.INFO: ProcessCDR(1,14094865,1,1,2) [2024-12-24 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094865', 'tblTempUsageDetail_20' ) start [2024-12-24 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094865', 'tblTempUsageDetail_20' ) end [2024-12-24 21:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:16:22] Production.INFO: ==29360== Releasing lock... [2024-12-24 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:16:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:17:04 [end_date_ymd] => 2024-12-24 21:17:04 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:17:04' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:17:17] Production.INFO: count ==2747 [2024-12-24 21:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:17:04 - End Time 2024-12-24 21:17:04 [2024-12-24 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094870', 'tblTempUsageDetail_20' ) start [2024-12-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094870', 'tblTempUsageDetail_20' ) end [2024-12-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094870', 'tblTempVendorCDR_20' ) start [2024-12-24 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094870', 'tblTempVendorCDR_20' ) end [2024-12-24 21:17:18] Production.INFO: ProcessCDR(1,14094870,1,1,2) [2024-12-24 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094870', 'tblTempUsageDetail_20' ) start [2024-12-24 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094870', 'tblTempUsageDetail_20' ) end [2024-12-24 21:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:17:22] Production.INFO: ==29468== Releasing lock... [2024-12-24 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:17:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:18:05 [end_date_ymd] => 2024-12-24 21:18:05 [RateCDR] => 1 ) [2024-12-24 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:18:05' and `end` < '2024-12-24 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:18:17] Production.INFO: count ==2748 [2024-12-24 21:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:18:05 - End Time 2024-12-24 21:18:05 [2024-12-24 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094875', 'tblTempUsageDetail_20' ) start [2024-12-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094875', 'tblTempUsageDetail_20' ) end [2024-12-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094875', 'tblTempVendorCDR_20' ) start [2024-12-24 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094875', 'tblTempVendorCDR_20' ) end [2024-12-24 21:18:18] Production.INFO: ProcessCDR(1,14094875,1,1,2) [2024-12-24 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094875', 'tblTempUsageDetail_20' ) start [2024-12-24 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094875', 'tblTempUsageDetail_20' ) end [2024-12-24 21:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:18:22] Production.INFO: ==29573== Releasing lock... [2024-12-24 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:18:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:19:05 [end_date_ymd] => 2024-12-24 21:19:05 [RateCDR] => 1 ) [2024-12-24 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:19:05' and `end` < '2024-12-24 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:19:17] Production.INFO: count ==2750 [2024-12-24 21:19:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:19:05 - End Time 2024-12-24 21:19:05 [2024-12-24 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094880', 'tblTempUsageDetail_20' ) start [2024-12-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094880', 'tblTempUsageDetail_20' ) end [2024-12-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094880', 'tblTempVendorCDR_20' ) start [2024-12-24 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094880', 'tblTempVendorCDR_20' ) end [2024-12-24 21:19:18] Production.INFO: ProcessCDR(1,14094880,1,1,2) [2024-12-24 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094880', 'tblTempUsageDetail_20' ) start [2024-12-24 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094880', 'tblTempUsageDetail_20' ) end [2024-12-24 21:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:19:22] Production.INFO: ==29681== Releasing lock... [2024-12-24 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:19:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:20:06 [end_date_ymd] => 2024-12-24 21:20:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:20:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:20:18] Production.INFO: count ==2756 [2024-12-24 21:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:20:06 - End Time 2024-12-24 21:20:06 [2024-12-24 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094885', 'tblTempUsageDetail_20' ) start [2024-12-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094885', 'tblTempUsageDetail_20' ) end [2024-12-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094885', 'tblTempVendorCDR_20' ) start [2024-12-24 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094885', 'tblTempVendorCDR_20' ) end [2024-12-24 21:20:19] Production.INFO: ProcessCDR(1,14094885,1,1,2) [2024-12-24 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094885', 'tblTempUsageDetail_20' ) start [2024-12-24 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094885', 'tblTempUsageDetail_20' ) end [2024-12-24 21:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:20:23] Production.INFO: ==29790== Releasing lock... [2024-12-24 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:20:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:21:04 [end_date_ymd] => 2024-12-24 21:21:04 [RateCDR] => 1 ) [2024-12-24 21:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:21:04' and `end` < '2024-12-24 21:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:21:17] Production.INFO: count ==2735 [2024-12-24 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:21:04 - End Time 2024-12-24 21:21:04 [2024-12-24 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094891', 'tblTempUsageDetail_20' ) start [2024-12-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094891', 'tblTempUsageDetail_20' ) end [2024-12-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094891', 'tblTempVendorCDR_20' ) start [2024-12-24 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094891', 'tblTempVendorCDR_20' ) end [2024-12-24 21:21:18] Production.INFO: ProcessCDR(1,14094891,1,1,2) [2024-12-24 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094891', 'tblTempUsageDetail_20' ) start [2024-12-24 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094891', 'tblTempUsageDetail_20' ) end [2024-12-24 21:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:21:22] Production.INFO: ==29900== Releasing lock... [2024-12-24 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:21:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:22:05 [end_date_ymd] => 2024-12-24 21:22:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:22:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:22:18] Production.INFO: count ==2740 [2024-12-24 21:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:22:05 - End Time 2024-12-24 21:22:05 [2024-12-24 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094896', 'tblTempUsageDetail_20' ) start [2024-12-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094896', 'tblTempUsageDetail_20' ) end [2024-12-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094896', 'tblTempVendorCDR_20' ) start [2024-12-24 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094896', 'tblTempVendorCDR_20' ) end [2024-12-24 21:22:19] Production.INFO: ProcessCDR(1,14094896,1,1,2) [2024-12-24 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094896', 'tblTempUsageDetail_20' ) start [2024-12-24 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094896', 'tblTempUsageDetail_20' ) end [2024-12-24 21:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:22:24] Production.INFO: ==30009== Releasing lock... [2024-12-24 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:22:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:23:04 [end_date_ymd] => 2024-12-24 21:23:04 [RateCDR] => 1 ) [2024-12-24 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:23:04' and `end` < '2024-12-24 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:23:16] Production.INFO: count ==2736 [2024-12-24 21:23:17] Production.ERROR: pbx CDR StartTime 2024-12-24 18:23:04 - End Time 2024-12-24 21:23:04 [2024-12-24 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094901', 'tblTempUsageDetail_20' ) start [2024-12-24 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094901', 'tblTempUsageDetail_20' ) end [2024-12-24 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094901', 'tblTempVendorCDR_20' ) start [2024-12-24 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094901', 'tblTempVendorCDR_20' ) end [2024-12-24 21:23:17] Production.INFO: ProcessCDR(1,14094901,1,1,2) [2024-12-24 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094901', 'tblTempUsageDetail_20' ) start [2024-12-24 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094901', 'tblTempUsageDetail_20' ) end [2024-12-24 21:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:23:21] Production.INFO: ==30112== Releasing lock... [2024-12-24 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:23:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:24:05 [end_date_ymd] => 2024-12-24 21:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:24:17] Production.INFO: count ==2737 [2024-12-24 21:24:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:24:05 - End Time 2024-12-24 21:24:05 [2024-12-24 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094906', 'tblTempUsageDetail_20' ) start [2024-12-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094906', 'tblTempUsageDetail_20' ) end [2024-12-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094906', 'tblTempVendorCDR_20' ) start [2024-12-24 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094906', 'tblTempVendorCDR_20' ) end [2024-12-24 21:24:18] Production.INFO: ProcessCDR(1,14094906,1,1,2) [2024-12-24 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094906', 'tblTempUsageDetail_20' ) start [2024-12-24 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094906', 'tblTempUsageDetail_20' ) end [2024-12-24 21:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:24:21] Production.INFO: ==30217== Releasing lock... [2024-12-24 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:24:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-24 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:25:04 [end_date_ymd] => 2024-12-24 21:25:04 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:25:04' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:25:17] Production.INFO: count ==2735 [2024-12-24 21:25:17] Production.ERROR: pbx CDR StartTime 2024-12-24 18:25:04 - End Time 2024-12-24 21:25:04 [2024-12-24 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094911', 'tblTempUsageDetail_20' ) start [2024-12-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094911', 'tblTempUsageDetail_20' ) end [2024-12-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094911', 'tblTempVendorCDR_20' ) start [2024-12-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094911', 'tblTempVendorCDR_20' ) end [2024-12-24 21:25:18] Production.INFO: ProcessCDR(1,14094911,1,1,2) [2024-12-24 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094911', 'tblTempUsageDetail_20' ) start [2024-12-24 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094911', 'tblTempUsageDetail_20' ) end [2024-12-24 21:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:25:21] Production.INFO: ==30325== Releasing lock... [2024-12-24 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:25:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:26:05 [end_date_ymd] => 2024-12-24 21:26:05 [RateCDR] => 1 ) [2024-12-24 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:26:05' and `end` < '2024-12-24 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:26:17] Production.INFO: count ==2732 [2024-12-24 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:26:05 - End Time 2024-12-24 21:26:05 [2024-12-24 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094916', 'tblTempUsageDetail_20' ) start [2024-12-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094916', 'tblTempUsageDetail_20' ) end [2024-12-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094916', 'tblTempVendorCDR_20' ) start [2024-12-24 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094916', 'tblTempVendorCDR_20' ) end [2024-12-24 21:26:18] Production.INFO: ProcessCDR(1,14094916,1,1,2) [2024-12-24 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094916', 'tblTempUsageDetail_20' ) start [2024-12-24 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094916', 'tblTempUsageDetail_20' ) end [2024-12-24 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:26:21] Production.INFO: ==30514== Releasing lock... [2024-12-24 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:26:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:27:05 [end_date_ymd] => 2024-12-24 21:27:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:27:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:27:17] Production.INFO: count ==2736 [2024-12-24 21:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:27:05 - End Time 2024-12-24 21:27:05 [2024-12-24 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094921', 'tblTempUsageDetail_20' ) start [2024-12-24 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094921', 'tblTempUsageDetail_20' ) end [2024-12-24 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094921', 'tblTempVendorCDR_20' ) start [2024-12-24 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094921', 'tblTempVendorCDR_20' ) end [2024-12-24 21:27:18] Production.INFO: ProcessCDR(1,14094921,1,1,2) [2024-12-24 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094921', 'tblTempUsageDetail_20' ) start [2024-12-24 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094921', 'tblTempUsageDetail_20' ) end [2024-12-24 21:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:27:22] Production.INFO: ==30663== Releasing lock... [2024-12-24 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:27:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:28:05 [end_date_ymd] => 2024-12-24 21:28:05 [RateCDR] => 1 ) [2024-12-24 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:28:05' and `end` < '2024-12-24 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:28:17] Production.INFO: count ==2736 [2024-12-24 21:28:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:28:05 - End Time 2024-12-24 21:28:05 [2024-12-24 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094926', 'tblTempUsageDetail_20' ) start [2024-12-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094926', 'tblTempUsageDetail_20' ) end [2024-12-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094926', 'tblTempVendorCDR_20' ) start [2024-12-24 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094926', 'tblTempVendorCDR_20' ) end [2024-12-24 21:28:18] Production.INFO: ProcessCDR(1,14094926,1,1,2) [2024-12-24 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094926', 'tblTempUsageDetail_20' ) start [2024-12-24 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094926', 'tblTempUsageDetail_20' ) end [2024-12-24 21:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:28:21] Production.INFO: ==30767== Releasing lock... [2024-12-24 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:28:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:29:06 [end_date_ymd] => 2024-12-24 21:29:06 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:29:06' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:29:18] Production.INFO: count ==2732 [2024-12-24 21:29:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:29:06 - End Time 2024-12-24 21:29:06 [2024-12-24 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094931', 'tblTempUsageDetail_20' ) start [2024-12-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094931', 'tblTempUsageDetail_20' ) end [2024-12-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094931', 'tblTempVendorCDR_20' ) start [2024-12-24 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094931', 'tblTempVendorCDR_20' ) end [2024-12-24 21:29:19] Production.INFO: ProcessCDR(1,14094931,1,1,2) [2024-12-24 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094931', 'tblTempUsageDetail_20' ) start [2024-12-24 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094931', 'tblTempUsageDetail_20' ) end [2024-12-24 21:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:29:22] Production.INFO: ==30873== Releasing lock... [2024-12-24 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:29:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:30:05 [end_date_ymd] => 2024-12-24 21:30:05 [RateCDR] => 1 ) [2024-12-24 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:30:05' and `end` < '2024-12-24 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:30:18] Production.INFO: count ==2729 [2024-12-24 21:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:30:05 - End Time 2024-12-24 21:30:05 [2024-12-24 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094937', 'tblTempUsageDetail_20' ) start [2024-12-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094937', 'tblTempUsageDetail_20' ) end [2024-12-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094937', 'tblTempVendorCDR_20' ) start [2024-12-24 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094937', 'tblTempVendorCDR_20' ) end [2024-12-24 21:30:19] Production.INFO: ProcessCDR(1,14094937,1,1,2) [2024-12-24 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094937', 'tblTempUsageDetail_20' ) start [2024-12-24 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094937', 'tblTempUsageDetail_20' ) end [2024-12-24 21:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:30:22] Production.INFO: ==30984== Releasing lock... [2024-12-24 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:30:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:31:05 [end_date_ymd] => 2024-12-24 21:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:31:17] Production.INFO: count ==2691 [2024-12-24 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:31:05 - End Time 2024-12-24 21:31:05 [2024-12-24 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094942', 'tblTempUsageDetail_20' ) start [2024-12-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094942', 'tblTempUsageDetail_20' ) end [2024-12-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094942', 'tblTempVendorCDR_20' ) start [2024-12-24 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094942', 'tblTempVendorCDR_20' ) end [2024-12-24 21:31:18] Production.INFO: ProcessCDR(1,14094942,1,1,2) [2024-12-24 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094942', 'tblTempUsageDetail_20' ) start [2024-12-24 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094942', 'tblTempUsageDetail_20' ) end [2024-12-24 21:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:31:22] Production.INFO: ==31092== Releasing lock... [2024-12-24 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:31:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:32:05 [end_date_ymd] => 2024-12-24 21:32:05 [RateCDR] => 1 ) [2024-12-24 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:32:05' and `end` < '2024-12-24 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:32:17] Production.INFO: count ==2692 [2024-12-24 21:32:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:32:05 - End Time 2024-12-24 21:32:05 [2024-12-24 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094947', 'tblTempUsageDetail_20' ) start [2024-12-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094947', 'tblTempUsageDetail_20' ) end [2024-12-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094947', 'tblTempVendorCDR_20' ) start [2024-12-24 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094947', 'tblTempVendorCDR_20' ) end [2024-12-24 21:32:18] Production.INFO: ProcessCDR(1,14094947,1,1,2) [2024-12-24 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094947', 'tblTempUsageDetail_20' ) start [2024-12-24 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094947', 'tblTempUsageDetail_20' ) end [2024-12-24 21:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:32:21] Production.INFO: ==31202== Releasing lock... [2024-12-24 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:32:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:33:05 [end_date_ymd] => 2024-12-24 21:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:33:18] Production.INFO: count ==2697 [2024-12-24 21:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:33:05 - End Time 2024-12-24 21:33:05 [2024-12-24 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094952', 'tblTempUsageDetail_20' ) start [2024-12-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094952', 'tblTempUsageDetail_20' ) end [2024-12-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094952', 'tblTempVendorCDR_20' ) start [2024-12-24 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094952', 'tblTempVendorCDR_20' ) end [2024-12-24 21:33:19] Production.INFO: ProcessCDR(1,14094952,1,1,2) [2024-12-24 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094952', 'tblTempUsageDetail_20' ) start [2024-12-24 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094952', 'tblTempUsageDetail_20' ) end [2024-12-24 21:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:33:22] Production.INFO: ==31310== Releasing lock... [2024-12-24 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:33:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:34:05 [end_date_ymd] => 2024-12-24 21:34:05 [RateCDR] => 1 ) [2024-12-24 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:34:05' and `end` < '2024-12-24 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:34:17] Production.INFO: count ==2696 [2024-12-24 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:34:05 - End Time 2024-12-24 21:34:05 [2024-12-24 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094957', 'tblTempUsageDetail_20' ) start [2024-12-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094957', 'tblTempUsageDetail_20' ) end [2024-12-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094957', 'tblTempVendorCDR_20' ) start [2024-12-24 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094957', 'tblTempVendorCDR_20' ) end [2024-12-24 21:34:18] Production.INFO: ProcessCDR(1,14094957,1,1,2) [2024-12-24 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094957', 'tblTempUsageDetail_20' ) start [2024-12-24 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094957', 'tblTempUsageDetail_20' ) end [2024-12-24 21:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:34:21] Production.INFO: ==31428== Releasing lock... [2024-12-24 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:34:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:35:05 [end_date_ymd] => 2024-12-24 21:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:35:17] Production.INFO: count ==2690 [2024-12-24 21:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:35:05 - End Time 2024-12-24 21:35:05 [2024-12-24 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094962', 'tblTempUsageDetail_20' ) start [2024-12-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094962', 'tblTempUsageDetail_20' ) end [2024-12-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094962', 'tblTempVendorCDR_20' ) start [2024-12-24 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094962', 'tblTempVendorCDR_20' ) end [2024-12-24 21:35:18] Production.INFO: ProcessCDR(1,14094962,1,1,2) [2024-12-24 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094962', 'tblTempUsageDetail_20' ) start [2024-12-24 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094962', 'tblTempUsageDetail_20' ) end [2024-12-24 21:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:35:21] Production.INFO: ==31536== Releasing lock... [2024-12-24 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:35:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:36:05 [end_date_ymd] => 2024-12-24 21:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:36:20] Production.INFO: count ==2690 [2024-12-24 21:36:21] Production.ERROR: pbx CDR StartTime 2024-12-24 18:36:05 - End Time 2024-12-24 21:36:05 [2024-12-24 21:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094967', 'tblTempUsageDetail_20' ) start [2024-12-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094967', 'tblTempUsageDetail_20' ) end [2024-12-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094967', 'tblTempVendorCDR_20' ) start [2024-12-24 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094967', 'tblTempVendorCDR_20' ) end [2024-12-24 21:36:21] Production.INFO: ProcessCDR(1,14094967,1,1,2) [2024-12-24 21:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094967', 'tblTempUsageDetail_20' ) start [2024-12-24 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094967', 'tblTempUsageDetail_20' ) end [2024-12-24 21:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:36:24] Production.INFO: ==31641== Releasing lock... [2024-12-24 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:36:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:37:05 [end_date_ymd] => 2024-12-24 21:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:37:17] Production.INFO: count ==2689 [2024-12-24 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:37:05 - End Time 2024-12-24 21:37:05 [2024-12-24 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094972', 'tblTempUsageDetail_20' ) start [2024-12-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094972', 'tblTempUsageDetail_20' ) end [2024-12-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094972', 'tblTempVendorCDR_20' ) start [2024-12-24 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094972', 'tblTempVendorCDR_20' ) end [2024-12-24 21:37:18] Production.INFO: ProcessCDR(1,14094972,1,1,2) [2024-12-24 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094972', 'tblTempUsageDetail_20' ) start [2024-12-24 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094972', 'tblTempUsageDetail_20' ) end [2024-12-24 21:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:37:22] Production.INFO: ==31752== Releasing lock... [2024-12-24 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:37:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:38:05 [end_date_ymd] => 2024-12-24 21:38:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:38:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:38:18] Production.INFO: count ==2685 [2024-12-24 21:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:38:05 - End Time 2024-12-24 21:38:05 [2024-12-24 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094977', 'tblTempUsageDetail_20' ) start [2024-12-24 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094977', 'tblTempUsageDetail_20' ) end [2024-12-24 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094977', 'tblTempVendorCDR_20' ) start [2024-12-24 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094977', 'tblTempVendorCDR_20' ) end [2024-12-24 21:38:19] Production.INFO: ProcessCDR(1,14094977,1,1,2) [2024-12-24 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094977', 'tblTempUsageDetail_20' ) start [2024-12-24 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094977', 'tblTempUsageDetail_20' ) end [2024-12-24 21:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:38:22] Production.INFO: ==31857== Releasing lock... [2024-12-24 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:38:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:39:05 [end_date_ymd] => 2024-12-24 21:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:39:17] Production.INFO: count ==2688 [2024-12-24 21:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:39:05 - End Time 2024-12-24 21:39:05 [2024-12-24 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094982', 'tblTempUsageDetail_20' ) start [2024-12-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094982', 'tblTempUsageDetail_20' ) end [2024-12-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094982', 'tblTempVendorCDR_20' ) start [2024-12-24 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094982', 'tblTempVendorCDR_20' ) end [2024-12-24 21:39:18] Production.INFO: ProcessCDR(1,14094982,1,1,2) [2024-12-24 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094982', 'tblTempUsageDetail_20' ) start [2024-12-24 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094982', 'tblTempUsageDetail_20' ) end [2024-12-24 21:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:39:22] Production.INFO: ==31970== Releasing lock... [2024-12-24 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:39:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:40:06 [end_date_ymd] => 2024-12-24 21:40:06 [RateCDR] => 1 ) [2024-12-24 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:40:06' and `end` < '2024-12-24 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:40:18] Production.INFO: count ==2689 [2024-12-24 21:40:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:40:06 - End Time 2024-12-24 21:40:06 [2024-12-24 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094988', 'tblTempUsageDetail_20' ) start [2024-12-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094988', 'tblTempUsageDetail_20' ) end [2024-12-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094988', 'tblTempVendorCDR_20' ) start [2024-12-24 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094988', 'tblTempVendorCDR_20' ) end [2024-12-24 21:40:19] Production.INFO: ProcessCDR(1,14094988,1,1,2) [2024-12-24 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094988', 'tblTempUsageDetail_20' ) start [2024-12-24 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094988', 'tblTempUsageDetail_20' ) end [2024-12-24 21:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:40:23] Production.INFO: ==32074== Releasing lock... [2024-12-24 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:40:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:41:05 [end_date_ymd] => 2024-12-24 21:41:05 [RateCDR] => 1 ) [2024-12-24 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:41:05' and `end` < '2024-12-24 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:41:17] Production.INFO: count ==2695 [2024-12-24 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:41:05 - End Time 2024-12-24 21:41:05 [2024-12-24 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094993', 'tblTempUsageDetail_20' ) start [2024-12-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094993', 'tblTempUsageDetail_20' ) end [2024-12-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094993', 'tblTempVendorCDR_20' ) start [2024-12-24 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094993', 'tblTempVendorCDR_20' ) end [2024-12-24 21:41:18] Production.INFO: ProcessCDR(1,14094993,1,1,2) [2024-12-24 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094993', 'tblTempUsageDetail_20' ) start [2024-12-24 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094993', 'tblTempUsageDetail_20' ) end [2024-12-24 21:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:41:21] Production.INFO: ==32181== Releasing lock... [2024-12-24 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:41:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:42:04 [end_date_ymd] => 2024-12-24 21:42:04 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:42:04' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:42:17] Production.INFO: count ==2700 [2024-12-24 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:42:04 - End Time 2024-12-24 21:42:04 [2024-12-24 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094998', 'tblTempUsageDetail_20' ) start [2024-12-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14094998', 'tblTempUsageDetail_20' ) end [2024-12-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094998', 'tblTempVendorCDR_20' ) start [2024-12-24 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14094998', 'tblTempVendorCDR_20' ) end [2024-12-24 21:42:18] Production.INFO: ProcessCDR(1,14094998,1,1,2) [2024-12-24 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14094998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14094998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14094998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14094998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094998', 'tblTempUsageDetail_20' ) start [2024-12-24 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14094998', 'tblTempUsageDetail_20' ) end [2024-12-24 21:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:42:21] Production.INFO: ==32321== Releasing lock... [2024-12-24 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:42:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:43:05 [end_date_ymd] => 2024-12-24 21:43:05 [RateCDR] => 1 ) [2024-12-24 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:43:05' and `end` < '2024-12-24 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:43:17] Production.INFO: count ==2708 [2024-12-24 21:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:43:05 - End Time 2024-12-24 21:43:05 [2024-12-24 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095003', 'tblTempUsageDetail_20' ) start [2024-12-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095003', 'tblTempUsageDetail_20' ) end [2024-12-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095003', 'tblTempVendorCDR_20' ) start [2024-12-24 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095003', 'tblTempVendorCDR_20' ) end [2024-12-24 21:43:18] Production.INFO: ProcessCDR(1,14095003,1,1,2) [2024-12-24 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095003', 'tblTempUsageDetail_20' ) start [2024-12-24 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095003', 'tblTempUsageDetail_20' ) end [2024-12-24 21:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:43:22] Production.INFO: ==32428== Releasing lock... [2024-12-24 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:43:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:44:05 [end_date_ymd] => 2024-12-24 21:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:44:18] Production.INFO: count ==2705 [2024-12-24 21:44:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:44:05 - End Time 2024-12-24 21:44:05 [2024-12-24 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095008', 'tblTempUsageDetail_20' ) start [2024-12-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095008', 'tblTempUsageDetail_20' ) end [2024-12-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095008', 'tblTempVendorCDR_20' ) start [2024-12-24 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095008', 'tblTempVendorCDR_20' ) end [2024-12-24 21:44:19] Production.INFO: ProcessCDR(1,14095008,1,1,2) [2024-12-24 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095008', 'tblTempUsageDetail_20' ) start [2024-12-24 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095008', 'tblTempUsageDetail_20' ) end [2024-12-24 21:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:44:22] Production.INFO: ==32533== Releasing lock... [2024-12-24 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:44:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:45:04 [end_date_ymd] => 2024-12-24 21:45:04 [RateCDR] => 1 ) [2024-12-24 21:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:45:04' and `end` < '2024-12-24 21:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:45:17] Production.INFO: count ==2709 [2024-12-24 21:45:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:45:04 - End Time 2024-12-24 21:45:04 [2024-12-24 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095013', 'tblTempUsageDetail_20' ) start [2024-12-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095013', 'tblTempUsageDetail_20' ) end [2024-12-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095013', 'tblTempVendorCDR_20' ) start [2024-12-24 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095013', 'tblTempVendorCDR_20' ) end [2024-12-24 21:45:18] Production.INFO: ProcessCDR(1,14095013,1,1,2) [2024-12-24 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095013', 'tblTempUsageDetail_20' ) start [2024-12-24 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095013', 'tblTempUsageDetail_20' ) end [2024-12-24 21:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:45:21] Production.INFO: ==32637== Releasing lock... [2024-12-24 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:45:21] Production.INFO: 48 MB #Memory Used# [2024-12-24 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:46:05 [end_date_ymd] => 2024-12-24 21:46:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:46:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:46:18] Production.INFO: count ==2708 [2024-12-24 21:46:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:46:05 - End Time 2024-12-24 21:46:05 [2024-12-24 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095018', 'tblTempUsageDetail_20' ) start [2024-12-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095018', 'tblTempUsageDetail_20' ) end [2024-12-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095018', 'tblTempVendorCDR_20' ) start [2024-12-24 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095018', 'tblTempVendorCDR_20' ) end [2024-12-24 21:46:19] Production.INFO: ProcessCDR(1,14095018,1,1,2) [2024-12-24 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095018', 'tblTempUsageDetail_20' ) start [2024-12-24 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095018', 'tblTempUsageDetail_20' ) end [2024-12-24 21:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:46:24] Production.INFO: ==32741== Releasing lock... [2024-12-24 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:46:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:47:04 [end_date_ymd] => 2024-12-24 21:47:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:47:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:47:17] Production.INFO: count ==2702 [2024-12-24 21:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:47:04 - End Time 2024-12-24 21:47:04 [2024-12-24 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095023', 'tblTempUsageDetail_20' ) start [2024-12-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095023', 'tblTempUsageDetail_20' ) end [2024-12-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095023', 'tblTempVendorCDR_20' ) start [2024-12-24 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095023', 'tblTempVendorCDR_20' ) end [2024-12-24 21:47:18] Production.INFO: ProcessCDR(1,14095023,1,1,2) [2024-12-24 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095023', 'tblTempUsageDetail_20' ) start [2024-12-24 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095023', 'tblTempUsageDetail_20' ) end [2024-12-24 21:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:47:22] Production.INFO: ==400== Releasing lock... [2024-12-24 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:47:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:48:05 [end_date_ymd] => 2024-12-24 21:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:48:17] Production.INFO: count ==2692 [2024-12-24 21:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:48:05 - End Time 2024-12-24 21:48:05 [2024-12-24 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095028', 'tblTempUsageDetail_20' ) start [2024-12-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095028', 'tblTempUsageDetail_20' ) end [2024-12-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095028', 'tblTempVendorCDR_20' ) start [2024-12-24 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095028', 'tblTempVendorCDR_20' ) end [2024-12-24 21:48:18] Production.INFO: ProcessCDR(1,14095028,1,1,2) [2024-12-24 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095028', 'tblTempUsageDetail_20' ) start [2024-12-24 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095028', 'tblTempUsageDetail_20' ) end [2024-12-24 21:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:48:22] Production.INFO: ==507== Releasing lock... [2024-12-24 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:48:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:49:05 [end_date_ymd] => 2024-12-24 21:49:05 [RateCDR] => 1 ) [2024-12-24 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:49:05' and `end` < '2024-12-24 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:49:18] Production.INFO: count ==2678 [2024-12-24 21:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:49:05 - End Time 2024-12-24 21:49:05 [2024-12-24 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095033', 'tblTempUsageDetail_20' ) start [2024-12-24 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095033', 'tblTempUsageDetail_20' ) end [2024-12-24 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095033', 'tblTempVendorCDR_20' ) start [2024-12-24 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095033', 'tblTempVendorCDR_20' ) end [2024-12-24 21:49:19] Production.INFO: ProcessCDR(1,14095033,1,1,2) [2024-12-24 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095033', 'tblTempUsageDetail_20' ) start [2024-12-24 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095033', 'tblTempUsageDetail_20' ) end [2024-12-24 21:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:49:22] Production.INFO: ==621== Releasing lock... [2024-12-24 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:49:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:50:05 [end_date_ymd] => 2024-12-24 21:50:05 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:50:05' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:50:18] Production.INFO: count ==2672 [2024-12-24 21:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:50:05 - End Time 2024-12-24 21:50:05 [2024-12-24 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095039', 'tblTempUsageDetail_20' ) start [2024-12-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095039', 'tblTempUsageDetail_20' ) end [2024-12-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095039', 'tblTempVendorCDR_20' ) start [2024-12-24 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095039', 'tblTempVendorCDR_20' ) end [2024-12-24 21:50:19] Production.INFO: ProcessCDR(1,14095039,1,1,2) [2024-12-24 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095039', 'tblTempUsageDetail_20' ) start [2024-12-24 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095039', 'tblTempUsageDetail_20' ) end [2024-12-24 21:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:50:22] Production.INFO: ==760== Releasing lock... [2024-12-24 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:50:22] Production.INFO: 48 MB #Memory Used# [2024-12-24 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:51:06 [end_date_ymd] => 2024-12-24 21:51:06 [RateCDR] => 1 ) [2024-12-24 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:51:06' and `end` < '2024-12-24 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:51:19] Production.INFO: count ==2650 [2024-12-24 21:51:20] Production.ERROR: pbx CDR StartTime 2024-12-24 18:51:06 - End Time 2024-12-24 21:51:06 [2024-12-24 21:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095044', 'tblTempUsageDetail_20' ) start [2024-12-24 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095044', 'tblTempUsageDetail_20' ) end [2024-12-24 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095044', 'tblTempVendorCDR_20' ) start [2024-12-24 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095044', 'tblTempVendorCDR_20' ) end [2024-12-24 21:51:20] Production.INFO: ProcessCDR(1,14095044,1,1,2) [2024-12-24 21:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095044', 'tblTempUsageDetail_20' ) start [2024-12-24 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095044', 'tblTempUsageDetail_20' ) end [2024-12-24 21:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:51:23] Production.INFO: ==871== Releasing lock... [2024-12-24 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:51:23] Production.INFO: 48 MB #Memory Used# [2024-12-24 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:52:05 [end_date_ymd] => 2024-12-24 21:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:52:18] Production.INFO: count ==2647 [2024-12-24 21:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:52:05 - End Time 2024-12-24 21:52:05 [2024-12-24 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095049', 'tblTempUsageDetail_20' ) start [2024-12-24 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095049', 'tblTempUsageDetail_20' ) end [2024-12-24 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095049', 'tblTempVendorCDR_20' ) start [2024-12-24 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095049', 'tblTempVendorCDR_20' ) end [2024-12-24 21:52:19] Production.INFO: ProcessCDR(1,14095049,1,1,2) [2024-12-24 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095049', 'tblTempUsageDetail_20' ) start [2024-12-24 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095049', 'tblTempUsageDetail_20' ) end [2024-12-24 21:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:52:23] Production.INFO: ==977== Releasing lock... [2024-12-24 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:52:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:53:05 [end_date_ymd] => 2024-12-24 21:53:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:53:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:53:19] Production.INFO: count ==2645 [2024-12-24 21:53:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:53:05 - End Time 2024-12-24 21:53:05 [2024-12-24 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095054', 'tblTempUsageDetail_20' ) start [2024-12-24 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095054', 'tblTempUsageDetail_20' ) end [2024-12-24 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095054', 'tblTempVendorCDR_20' ) start [2024-12-24 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095054', 'tblTempVendorCDR_20' ) end [2024-12-24 21:53:20] Production.INFO: ProcessCDR(1,14095054,1,1,2) [2024-12-24 21:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095054', 'tblTempUsageDetail_20' ) start [2024-12-24 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095054', 'tblTempUsageDetail_20' ) end [2024-12-24 21:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:53:23] Production.INFO: ==1111== Releasing lock... [2024-12-24 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:53:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:54:05 [end_date_ymd] => 2024-12-24 21:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:54:18] Production.INFO: count ==2646 [2024-12-24 21:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:54:05 - End Time 2024-12-24 21:54:05 [2024-12-24 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095059', 'tblTempUsageDetail_20' ) start [2024-12-24 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095059', 'tblTempUsageDetail_20' ) end [2024-12-24 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095059', 'tblTempVendorCDR_20' ) start [2024-12-24 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095059', 'tblTempVendorCDR_20' ) end [2024-12-24 21:54:19] Production.INFO: ProcessCDR(1,14095059,1,1,2) [2024-12-24 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095059', 'tblTempUsageDetail_20' ) start [2024-12-24 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095059', 'tblTempUsageDetail_20' ) end [2024-12-24 21:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:54:22] Production.INFO: ==1295== Releasing lock... [2024-12-24 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:54:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:55:05 [end_date_ymd] => 2024-12-24 21:55:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:55:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:55:17] Production.INFO: count ==2642 [2024-12-24 21:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:55:05 - End Time 2024-12-24 21:55:05 [2024-12-24 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095064', 'tblTempUsageDetail_20' ) start [2024-12-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095064', 'tblTempUsageDetail_20' ) end [2024-12-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095064', 'tblTempVendorCDR_20' ) start [2024-12-24 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095064', 'tblTempVendorCDR_20' ) end [2024-12-24 21:55:18] Production.INFO: ProcessCDR(1,14095064,1,1,2) [2024-12-24 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095064', 'tblTempUsageDetail_20' ) start [2024-12-24 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095064', 'tblTempUsageDetail_20' ) end [2024-12-24 21:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:55:21] Production.INFO: ==1411== Releasing lock... [2024-12-24 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:55:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:56:04 [end_date_ymd] => 2024-12-24 21:56:04 [RateCDR] => 1 ) [2024-12-24 21: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` >= '2024-12-24 18:56:04' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:56:17] Production.INFO: count ==2642 [2024-12-24 21:56:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:56:04 - End Time 2024-12-24 21:56:04 [2024-12-24 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095069', 'tblTempUsageDetail_20' ) start [2024-12-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095069', 'tblTempUsageDetail_20' ) end [2024-12-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095069', 'tblTempVendorCDR_20' ) start [2024-12-24 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095069', 'tblTempVendorCDR_20' ) end [2024-12-24 21:56:18] Production.INFO: ProcessCDR(1,14095069,1,1,2) [2024-12-24 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095069', 'tblTempUsageDetail_20' ) start [2024-12-24 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095069', 'tblTempUsageDetail_20' ) end [2024-12-24 21:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:56:21] Production.INFO: ==1555== Releasing lock... [2024-12-24 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:56:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:57:05 [end_date_ymd] => 2024-12-24 21:57:05 [RateCDR] => 1 ) [2024-12-24 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:57:05' and `end` < '2024-12-24 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 21:57:17] Production.INFO: count ==2640 [2024-12-24 21:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:57:05 - End Time 2024-12-24 21:57:05 [2024-12-24 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095074', 'tblTempUsageDetail_20' ) start [2024-12-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095074', 'tblTempUsageDetail_20' ) end [2024-12-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095074', 'tblTempVendorCDR_20' ) start [2024-12-24 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095074', 'tblTempVendorCDR_20' ) end [2024-12-24 21:57:18] Production.INFO: ProcessCDR(1,14095074,1,1,2) [2024-12-24 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095074', 'tblTempUsageDetail_20' ) start [2024-12-24 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095074', 'tblTempUsageDetail_20' ) end [2024-12-24 21:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:57:23] Production.INFO: ==1711== Releasing lock... [2024-12-24 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:57:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:58:04 [end_date_ymd] => 2024-12-24 21:58:04 [RateCDR] => 1 ) [2024-12-24 21:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 18:58:04' and `end` < '2024-12-24 21: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 ,'') [2024-12-24 21:58:17] Production.INFO: count ==2639 [2024-12-24 21:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 18:58:04 - End Time 2024-12-24 21:58:04 [2024-12-24 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095079', 'tblTempUsageDetail_20' ) start [2024-12-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095079', 'tblTempUsageDetail_20' ) end [2024-12-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095079', 'tblTempVendorCDR_20' ) start [2024-12-24 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095079', 'tblTempVendorCDR_20' ) end [2024-12-24 21:58:18] Production.INFO: ProcessCDR(1,14095079,1,1,2) [2024-12-24 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095079', 'tblTempUsageDetail_20' ) start [2024-12-24 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095079', 'tblTempUsageDetail_20' ) end [2024-12-24 21:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:58:22] Production.INFO: ==1819== Releasing lock... [2024-12-24 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:58:22] Production.INFO: 48 MB #Memory Used# [2024-12-24 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 18:59:05 [end_date_ymd] => 2024-12-24 21:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 18:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 21:59:18] Production.INFO: count ==2638 [2024-12-24 21:59:19] Production.ERROR: pbx CDR StartTime 2024-12-24 18:59:05 - End Time 2024-12-24 21:59:05 [2024-12-24 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095084', 'tblTempUsageDetail_20' ) start [2024-12-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095084', 'tblTempUsageDetail_20' ) end [2024-12-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095084', 'tblTempVendorCDR_20' ) start [2024-12-24 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095084', 'tblTempVendorCDR_20' ) end [2024-12-24 21:59:19] Production.INFO: ProcessCDR(1,14095084,1,1,2) [2024-12-24 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095084', 'tblTempUsageDetail_20' ) start [2024-12-24 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095084', 'tblTempUsageDetail_20' ) end [2024-12-24 21:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 21:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 21:59:22] Production.INFO: ==1930== Releasing lock... [2024-12-24 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 21:59:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:00:05 [end_date_ymd] => 2024-12-24 22:00:05 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:00:05' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:00:18] Production.INFO: count ==2639 [2024-12-24 22:00:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:00:05 - End Time 2024-12-24 22:00:05 [2024-12-24 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095090', 'tblTempUsageDetail_20' ) start [2024-12-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095090', 'tblTempUsageDetail_20' ) end [2024-12-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095090', 'tblTempVendorCDR_20' ) start [2024-12-24 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095090', 'tblTempVendorCDR_20' ) end [2024-12-24 22:00:19] Production.INFO: ProcessCDR(1,14095090,1,1,2) [2024-12-24 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095090', 'tblTempUsageDetail_20' ) start [2024-12-24 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095090', 'tblTempUsageDetail_20' ) end [2024-12-24 22:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:00:22] Production.INFO: ==2041== Releasing lock... [2024-12-24 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:00:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:01:05 [end_date_ymd] => 2024-12-24 22:01:05 [RateCDR] => 1 ) [2024-12-24 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:01:05' and `end` < '2024-12-24 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:01:18] Production.INFO: count ==2625 [2024-12-24 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:01:05 - End Time 2024-12-24 22:01:05 [2024-12-24 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095095', 'tblTempUsageDetail_20' ) start [2024-12-24 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095095', 'tblTempUsageDetail_20' ) end [2024-12-24 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095095', 'tblTempVendorCDR_20' ) start [2024-12-24 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095095', 'tblTempVendorCDR_20' ) end [2024-12-24 22:01:19] Production.INFO: ProcessCDR(1,14095095,1,1,2) [2024-12-24 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095095', 'tblTempUsageDetail_20' ) start [2024-12-24 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095095', 'tblTempUsageDetail_20' ) end [2024-12-24 22:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:01:22] Production.INFO: ==2163== Releasing lock... [2024-12-24 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:01:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:02:04 [end_date_ymd] => 2024-12-24 22:02:04 [RateCDR] => 1 ) [2024-12-24 22:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:02:04' and `end` < '2024-12-24 22:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:02:17] Production.INFO: count ==2620 [2024-12-24 22:02:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:02:04 - End Time 2024-12-24 22:02:04 [2024-12-24 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095100', 'tblTempUsageDetail_20' ) start [2024-12-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095100', 'tblTempUsageDetail_20' ) end [2024-12-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095100', 'tblTempVendorCDR_20' ) start [2024-12-24 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095100', 'tblTempVendorCDR_20' ) end [2024-12-24 22:02:18] Production.INFO: ProcessCDR(1,14095100,1,1,2) [2024-12-24 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095100', 'tblTempUsageDetail_20' ) start [2024-12-24 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095100', 'tblTempUsageDetail_20' ) end [2024-12-24 22:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:02:22] Production.INFO: ==2271== Releasing lock... [2024-12-24 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:02:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:03:05 [end_date_ymd] => 2024-12-24 22:03:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:03:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:03:17] Production.INFO: count ==2608 [2024-12-24 22:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:03:05 - End Time 2024-12-24 22:03:05 [2024-12-24 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095105', 'tblTempUsageDetail_20' ) start [2024-12-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095105', 'tblTempUsageDetail_20' ) end [2024-12-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095105', 'tblTempVendorCDR_20' ) start [2024-12-24 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095105', 'tblTempVendorCDR_20' ) end [2024-12-24 22:03:18] Production.INFO: ProcessCDR(1,14095105,1,1,2) [2024-12-24 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095105', 'tblTempUsageDetail_20' ) start [2024-12-24 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095105', 'tblTempUsageDetail_20' ) end [2024-12-24 22:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:03:21] Production.INFO: ==2381== Releasing lock... [2024-12-24 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:03:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:04:05 [end_date_ymd] => 2024-12-24 22:04:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:04:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:04:17] Production.INFO: count ==2605 [2024-12-24 22:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:04:05 - End Time 2024-12-24 22:04:05 [2024-12-24 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095110', 'tblTempUsageDetail_20' ) start [2024-12-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095110', 'tblTempUsageDetail_20' ) end [2024-12-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095110', 'tblTempVendorCDR_20' ) start [2024-12-24 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095110', 'tblTempVendorCDR_20' ) end [2024-12-24 22:04:18] Production.INFO: ProcessCDR(1,14095110,1,1,2) [2024-12-24 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095110', 'tblTempUsageDetail_20' ) start [2024-12-24 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095110', 'tblTempUsageDetail_20' ) end [2024-12-24 22:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:04:22] Production.INFO: ==2492== Releasing lock... [2024-12-24 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:04:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:05:04 [end_date_ymd] => 2024-12-24 22:05:04 [RateCDR] => 1 ) [2024-12-24 22:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:05:04' and `end` < '2024-12-24 22:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:05:17] Production.INFO: count ==2605 [2024-12-24 22:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:05:04 - End Time 2024-12-24 22:05:04 [2024-12-24 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095115', 'tblTempUsageDetail_20' ) start [2024-12-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095115', 'tblTempUsageDetail_20' ) end [2024-12-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095115', 'tblTempVendorCDR_20' ) start [2024-12-24 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095115', 'tblTempVendorCDR_20' ) end [2024-12-24 22:05:18] Production.INFO: ProcessCDR(1,14095115,1,1,2) [2024-12-24 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095115', 'tblTempUsageDetail_20' ) start [2024-12-24 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095115', 'tblTempUsageDetail_20' ) end [2024-12-24 22:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:05:22] Production.INFO: ==2606== Releasing lock... [2024-12-24 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:05:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:06:04 [end_date_ymd] => 2024-12-24 22:06:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:06:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:06:18] Production.INFO: count ==2604 [2024-12-24 22:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:06:04 - End Time 2024-12-24 22:06:04 [2024-12-24 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095120', 'tblTempUsageDetail_20' ) start [2024-12-24 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095120', 'tblTempUsageDetail_20' ) end [2024-12-24 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095120', 'tblTempVendorCDR_20' ) start [2024-12-24 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095120', 'tblTempVendorCDR_20' ) end [2024-12-24 22:06:19] Production.INFO: ProcessCDR(1,14095120,1,1,2) [2024-12-24 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095120', 'tblTempUsageDetail_20' ) start [2024-12-24 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095120', 'tblTempUsageDetail_20' ) end [2024-12-24 22:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:06:22] Production.INFO: ==2718== Releasing lock... [2024-12-24 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:06:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:07:05 [end_date_ymd] => 2024-12-24 22:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:07:17] Production.INFO: count ==2606 [2024-12-24 22:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:07:05 - End Time 2024-12-24 22:07:05 [2024-12-24 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095125', 'tblTempUsageDetail_20' ) start [2024-12-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095125', 'tblTempUsageDetail_20' ) end [2024-12-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095125', 'tblTempVendorCDR_20' ) start [2024-12-24 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095125', 'tblTempVendorCDR_20' ) end [2024-12-24 22:07:18] Production.INFO: ProcessCDR(1,14095125,1,1,2) [2024-12-24 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095125', 'tblTempUsageDetail_20' ) start [2024-12-24 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095125', 'tblTempUsageDetail_20' ) end [2024-12-24 22:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:07:21] Production.INFO: ==2827== Releasing lock... [2024-12-24 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:07:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:08:05 [end_date_ymd] => 2024-12-24 22:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:08:18] Production.INFO: count ==2611 [2024-12-24 22:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:08:05 - End Time 2024-12-24 22:08:05 [2024-12-24 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095130', 'tblTempUsageDetail_20' ) start [2024-12-24 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095130', 'tblTempUsageDetail_20' ) end [2024-12-24 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095130', 'tblTempVendorCDR_20' ) start [2024-12-24 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095130', 'tblTempVendorCDR_20' ) end [2024-12-24 22:08:19] Production.INFO: ProcessCDR(1,14095130,1,1,2) [2024-12-24 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095130', 'tblTempUsageDetail_20' ) start [2024-12-24 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095130', 'tblTempUsageDetail_20' ) end [2024-12-24 22:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:08:22] Production.INFO: ==2935== Releasing lock... [2024-12-24 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:08:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:09:05 [end_date_ymd] => 2024-12-24 22:09:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:09:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:09:18] Production.INFO: count ==2609 [2024-12-24 22:09:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:09:05 - End Time 2024-12-24 22:09:05 [2024-12-24 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095135', 'tblTempUsageDetail_20' ) start [2024-12-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095135', 'tblTempUsageDetail_20' ) end [2024-12-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095135', 'tblTempVendorCDR_20' ) start [2024-12-24 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095135', 'tblTempVendorCDR_20' ) end [2024-12-24 22:09:19] Production.INFO: ProcessCDR(1,14095135,1,1,2) [2024-12-24 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095135', 'tblTempUsageDetail_20' ) start [2024-12-24 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095135', 'tblTempUsageDetail_20' ) end [2024-12-24 22:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:09:22] Production.INFO: ==3049== Releasing lock... [2024-12-24 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:09:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:10:06 [end_date_ymd] => 2024-12-24 22:10:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:10:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:10:18] Production.INFO: count ==2610 [2024-12-24 22:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:10:06 - End Time 2024-12-24 22:10:06 [2024-12-24 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095141', 'tblTempUsageDetail_20' ) start [2024-12-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095141', 'tblTempUsageDetail_20' ) end [2024-12-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095141', 'tblTempVendorCDR_20' ) start [2024-12-24 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095141', 'tblTempVendorCDR_20' ) end [2024-12-24 22:10:19] Production.INFO: ProcessCDR(1,14095141,1,1,2) [2024-12-24 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095141', 'tblTempUsageDetail_20' ) start [2024-12-24 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095141', 'tblTempUsageDetail_20' ) end [2024-12-24 22:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:10:22] Production.INFO: ==3164== Releasing lock... [2024-12-24 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:10:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:11:04 [end_date_ymd] => 2024-12-24 22:11:04 [RateCDR] => 1 ) [2024-12-24 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:11:04' and `end` < '2024-12-24 22:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:11:17] Production.INFO: count ==2621 [2024-12-24 22:11:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:11:04 - End Time 2024-12-24 22:11:04 [2024-12-24 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095146', 'tblTempUsageDetail_20' ) start [2024-12-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095146', 'tblTempUsageDetail_20' ) end [2024-12-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095146', 'tblTempVendorCDR_20' ) start [2024-12-24 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095146', 'tblTempVendorCDR_20' ) end [2024-12-24 22:11:18] Production.INFO: ProcessCDR(1,14095146,1,1,2) [2024-12-24 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095146', 'tblTempUsageDetail_20' ) start [2024-12-24 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095146', 'tblTempUsageDetail_20' ) end [2024-12-24 22:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:11:21] Production.INFO: ==3271== Releasing lock... [2024-12-24 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:11:21] Production.INFO: 48 MB #Memory Used# [2024-12-24 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:12:05 [end_date_ymd] => 2024-12-24 22:12:05 [RateCDR] => 1 ) [2024-12-24 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:12:05' and `end` < '2024-12-24 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:12:17] Production.INFO: count ==2625 [2024-12-24 22:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:12:05 - End Time 2024-12-24 22:12:05 [2024-12-24 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095151', 'tblTempUsageDetail_20' ) start [2024-12-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095151', 'tblTempUsageDetail_20' ) end [2024-12-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095151', 'tblTempVendorCDR_20' ) start [2024-12-24 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095151', 'tblTempVendorCDR_20' ) end [2024-12-24 22:12:18] Production.INFO: ProcessCDR(1,14095151,1,1,2) [2024-12-24 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095151', 'tblTempUsageDetail_20' ) start [2024-12-24 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095151', 'tblTempUsageDetail_20' ) end [2024-12-24 22:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:12:21] Production.INFO: ==3382== Releasing lock... [2024-12-24 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:12:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:13:05 [end_date_ymd] => 2024-12-24 22:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:13:17] Production.INFO: count ==2622 [2024-12-24 22:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:13:05 - End Time 2024-12-24 22:13:05 [2024-12-24 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095156', 'tblTempUsageDetail_20' ) start [2024-12-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095156', 'tblTempUsageDetail_20' ) end [2024-12-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095156', 'tblTempVendorCDR_20' ) start [2024-12-24 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095156', 'tblTempVendorCDR_20' ) end [2024-12-24 22:13:18] Production.INFO: ProcessCDR(1,14095156,1,1,2) [2024-12-24 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095156', 'tblTempUsageDetail_20' ) start [2024-12-24 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095156', 'tblTempUsageDetail_20' ) end [2024-12-24 22:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:13:21] Production.INFO: ==3530== Releasing lock... [2024-12-24 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:13:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:14:05 [end_date_ymd] => 2024-12-24 22:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:14:17] Production.INFO: count ==2624 [2024-12-24 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:14:05 - End Time 2024-12-24 22:14:05 [2024-12-24 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095161', 'tblTempUsageDetail_20' ) start [2024-12-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095161', 'tblTempUsageDetail_20' ) end [2024-12-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095161', 'tblTempVendorCDR_20' ) start [2024-12-24 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095161', 'tblTempVendorCDR_20' ) end [2024-12-24 22:14:18] Production.INFO: ProcessCDR(1,14095161,1,1,2) [2024-12-24 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095161', 'tblTempUsageDetail_20' ) start [2024-12-24 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095161', 'tblTempUsageDetail_20' ) end [2024-12-24 22:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:14:22] Production.INFO: ==3642== Releasing lock... [2024-12-24 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:14:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:15:05 [end_date_ymd] => 2024-12-24 22:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:15:17] Production.INFO: count ==2624 [2024-12-24 22:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:15:05 - End Time 2024-12-24 22:15:05 [2024-12-24 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095166', 'tblTempUsageDetail_20' ) start [2024-12-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095166', 'tblTempUsageDetail_20' ) end [2024-12-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095166', 'tblTempVendorCDR_20' ) start [2024-12-24 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095166', 'tblTempVendorCDR_20' ) end [2024-12-24 22:15:18] Production.INFO: ProcessCDR(1,14095166,1,1,2) [2024-12-24 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095166', 'tblTempUsageDetail_20' ) start [2024-12-24 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095166', 'tblTempUsageDetail_20' ) end [2024-12-24 22:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:15:22] Production.INFO: ==3783== Releasing lock... [2024-12-24 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:15:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:16:05 [end_date_ymd] => 2024-12-24 22:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:16:17] Production.INFO: count ==2616 [2024-12-24 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:16:05 - End Time 2024-12-24 22:16:05 [2024-12-24 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095171', 'tblTempUsageDetail_20' ) start [2024-12-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095171', 'tblTempUsageDetail_20' ) end [2024-12-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095171', 'tblTempVendorCDR_20' ) start [2024-12-24 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095171', 'tblTempVendorCDR_20' ) end [2024-12-24 22:16:18] Production.INFO: ProcessCDR(1,14095171,1,1,2) [2024-12-24 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095171', 'tblTempUsageDetail_20' ) start [2024-12-24 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095171', 'tblTempUsageDetail_20' ) end [2024-12-24 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:16:21] Production.INFO: ==3918== Releasing lock... [2024-12-24 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:16:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:17:05 [end_date_ymd] => 2024-12-24 22:17:05 [RateCDR] => 1 ) [2024-12-24 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:17:05' and `end` < '2024-12-24 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:17:17] Production.INFO: count ==2619 [2024-12-24 22:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:17:05 - End Time 2024-12-24 22:17:05 [2024-12-24 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095176', 'tblTempUsageDetail_20' ) start [2024-12-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095176', 'tblTempUsageDetail_20' ) end [2024-12-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095176', 'tblTempVendorCDR_20' ) start [2024-12-24 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095176', 'tblTempVendorCDR_20' ) end [2024-12-24 22:17:18] Production.INFO: ProcessCDR(1,14095176,1,1,2) [2024-12-24 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095176', 'tblTempUsageDetail_20' ) start [2024-12-24 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095176', 'tblTempUsageDetail_20' ) end [2024-12-24 22:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:17:22] Production.INFO: ==4058== Releasing lock... [2024-12-24 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:17:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:18:04 [end_date_ymd] => 2024-12-24 22:18:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:18:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:18:17] Production.INFO: count ==2619 [2024-12-24 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:18:04 - End Time 2024-12-24 22:18:04 [2024-12-24 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095181', 'tblTempUsageDetail_20' ) start [2024-12-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095181', 'tblTempUsageDetail_20' ) end [2024-12-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095181', 'tblTempVendorCDR_20' ) start [2024-12-24 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095181', 'tblTempVendorCDR_20' ) end [2024-12-24 22:18:18] Production.INFO: ProcessCDR(1,14095181,1,1,2) [2024-12-24 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095181', 'tblTempUsageDetail_20' ) start [2024-12-24 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095181', 'tblTempUsageDetail_20' ) end [2024-12-24 22:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:18:22] Production.INFO: ==4201== Releasing lock... [2024-12-24 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:18:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:19:05 [end_date_ymd] => 2024-12-24 22:19:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:19:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:19:17] Production.INFO: count ==2612 [2024-12-24 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:19:05 - End Time 2024-12-24 22:19:05 [2024-12-24 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095186', 'tblTempUsageDetail_20' ) start [2024-12-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095186', 'tblTempUsageDetail_20' ) end [2024-12-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095186', 'tblTempVendorCDR_20' ) start [2024-12-24 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095186', 'tblTempVendorCDR_20' ) end [2024-12-24 22:19:18] Production.INFO: ProcessCDR(1,14095186,1,1,2) [2024-12-24 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095186', 'tblTempUsageDetail_20' ) start [2024-12-24 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095186', 'tblTempUsageDetail_20' ) end [2024-12-24 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:19:21] Production.INFO: ==4338== Releasing lock... [2024-12-24 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:19:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:20:06 [end_date_ymd] => 2024-12-24 22:20:06 [RateCDR] => 1 ) [2024-12-24 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:20:06' and `end` < '2024-12-24 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:20:19] Production.INFO: count ==2605 [2024-12-24 22:20:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:20:06 - End Time 2024-12-24 22:20:06 [2024-12-24 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095192', 'tblTempUsageDetail_20' ) start [2024-12-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095192', 'tblTempUsageDetail_20' ) end [2024-12-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095192', 'tblTempVendorCDR_20' ) start [2024-12-24 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095192', 'tblTempVendorCDR_20' ) end [2024-12-24 22:20:19] Production.INFO: ProcessCDR(1,14095192,1,1,2) [2024-12-24 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095192', 'tblTempUsageDetail_20' ) start [2024-12-24 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095192', 'tblTempUsageDetail_20' ) end [2024-12-24 22:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:20:23] Production.INFO: ==4481== Releasing lock... [2024-12-24 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:20:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:21:05 [end_date_ymd] => 2024-12-24 22:21:05 [RateCDR] => 1 ) [2024-12-24 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:21:05' and `end` < '2024-12-24 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:21:17] Production.INFO: count ==2598 [2024-12-24 22:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:21:05 - End Time 2024-12-24 22:21:05 [2024-12-24 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095197', 'tblTempUsageDetail_20' ) start [2024-12-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095197', 'tblTempUsageDetail_20' ) end [2024-12-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095197', 'tblTempVendorCDR_20' ) start [2024-12-24 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095197', 'tblTempVendorCDR_20' ) end [2024-12-24 22:21:18] Production.INFO: ProcessCDR(1,14095197,1,1,2) [2024-12-24 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095197', 'tblTempUsageDetail_20' ) start [2024-12-24 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095197', 'tblTempUsageDetail_20' ) end [2024-12-24 22:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:21:21] Production.INFO: ==4629== Releasing lock... [2024-12-24 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:21:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:22:05 [end_date_ymd] => 2024-12-24 22:22:05 [RateCDR] => 1 ) [2024-12-24 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:22:05' and `end` < '2024-12-24 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:22:18] Production.INFO: count ==2611 [2024-12-24 22:22:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:22:05 - End Time 2024-12-24 22:22:05 [2024-12-24 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095202', 'tblTempUsageDetail_20' ) start [2024-12-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095202', 'tblTempUsageDetail_20' ) end [2024-12-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095202', 'tblTempVendorCDR_20' ) start [2024-12-24 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095202', 'tblTempVendorCDR_20' ) end [2024-12-24 22:22:19] Production.INFO: ProcessCDR(1,14095202,1,1,2) [2024-12-24 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095202', 'tblTempUsageDetail_20' ) start [2024-12-24 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095202', 'tblTempUsageDetail_20' ) end [2024-12-24 22:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:22:22] Production.INFO: ==4766== Releasing lock... [2024-12-24 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:22:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:23:04 [end_date_ymd] => 2024-12-24 22:23:04 [RateCDR] => 1 ) [2024-12-24 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:23:04' and `end` < '2024-12-24 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:23:17] Production.INFO: count ==2606 [2024-12-24 22:23:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:23:04 - End Time 2024-12-24 22:23:04 [2024-12-24 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095207', 'tblTempUsageDetail_20' ) start [2024-12-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095207', 'tblTempUsageDetail_20' ) end [2024-12-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095207', 'tblTempVendorCDR_20' ) start [2024-12-24 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095207', 'tblTempVendorCDR_20' ) end [2024-12-24 22:23:18] Production.INFO: ProcessCDR(1,14095207,1,1,2) [2024-12-24 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095207', 'tblTempUsageDetail_20' ) start [2024-12-24 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095207', 'tblTempUsageDetail_20' ) end [2024-12-24 22:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:23:21] Production.INFO: ==4904== Releasing lock... [2024-12-24 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:23:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:24:05 [end_date_ymd] => 2024-12-24 22:24:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:24:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:24:18] Production.INFO: count ==2604 [2024-12-24 22:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:24:05 - End Time 2024-12-24 22:24:05 [2024-12-24 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095212', 'tblTempUsageDetail_20' ) start [2024-12-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095212', 'tblTempUsageDetail_20' ) end [2024-12-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095212', 'tblTempVendorCDR_20' ) start [2024-12-24 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095212', 'tblTempVendorCDR_20' ) end [2024-12-24 22:24:19] Production.INFO: ProcessCDR(1,14095212,1,1,2) [2024-12-24 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095212', 'tblTempUsageDetail_20' ) start [2024-12-24 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095212', 'tblTempUsageDetail_20' ) end [2024-12-24 22:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:24:22] Production.INFO: ==5047== Releasing lock... [2024-12-24 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:24:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:25:05 [end_date_ymd] => 2024-12-24 22:25:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:25:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:25:17] Production.INFO: count ==2605 [2024-12-24 22:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:25:05 - End Time 2024-12-24 22:25:05 [2024-12-24 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095217', 'tblTempUsageDetail_20' ) start [2024-12-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095217', 'tblTempUsageDetail_20' ) end [2024-12-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095217', 'tblTempVendorCDR_20' ) start [2024-12-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095217', 'tblTempVendorCDR_20' ) end [2024-12-24 22:25:18] Production.INFO: ProcessCDR(1,14095217,1,1,2) [2024-12-24 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095217', 'tblTempUsageDetail_20' ) start [2024-12-24 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095217', 'tblTempUsageDetail_20' ) end [2024-12-24 22:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:25:21] Production.INFO: ==5180== Releasing lock... [2024-12-24 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:25:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:26:05 [end_date_ymd] => 2024-12-24 22:26:05 [RateCDR] => 1 ) [2024-12-24 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:26:05' and `end` < '2024-12-24 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:26:19] Production.INFO: count ==2602 [2024-12-24 22:26:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:26:05 - End Time 2024-12-24 22:26:05 [2024-12-24 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095222', 'tblTempUsageDetail_20' ) start [2024-12-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095222', 'tblTempUsageDetail_20' ) end [2024-12-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095222', 'tblTempVendorCDR_20' ) start [2024-12-24 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095222', 'tblTempVendorCDR_20' ) end [2024-12-24 22:26:19] Production.INFO: ProcessCDR(1,14095222,1,1,2) [2024-12-24 22:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095222', 'tblTempUsageDetail_20' ) start [2024-12-24 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095222', 'tblTempUsageDetail_20' ) end [2024-12-24 22:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:26:24] Production.INFO: ==5317== Releasing lock... [2024-12-24 22:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:26:24] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:27:04 [end_date_ymd] => 2024-12-24 22:27:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:27:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:27:17] Production.INFO: count ==2587 [2024-12-24 22:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:27:04 - End Time 2024-12-24 22:27:04 [2024-12-24 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095227', 'tblTempUsageDetail_20' ) start [2024-12-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095227', 'tblTempUsageDetail_20' ) end [2024-12-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095227', 'tblTempVendorCDR_20' ) start [2024-12-24 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095227', 'tblTempVendorCDR_20' ) end [2024-12-24 22:27:18] Production.INFO: ProcessCDR(1,14095227,1,1,2) [2024-12-24 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095227', 'tblTempUsageDetail_20' ) start [2024-12-24 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095227', 'tblTempUsageDetail_20' ) end [2024-12-24 22:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:27:21] Production.INFO: ==5456== Releasing lock... [2024-12-24 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:27:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:28:05 [end_date_ymd] => 2024-12-24 22:28:05 [RateCDR] => 1 ) [2024-12-24 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:28:05' and `end` < '2024-12-24 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:28:18] Production.INFO: count ==2590 [2024-12-24 22:28:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:28:05 - End Time 2024-12-24 22:28:05 [2024-12-24 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095232', 'tblTempUsageDetail_20' ) start [2024-12-24 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095232', 'tblTempUsageDetail_20' ) end [2024-12-24 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095232', 'tblTempVendorCDR_20' ) start [2024-12-24 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095232', 'tblTempVendorCDR_20' ) end [2024-12-24 22:28:19] Production.INFO: ProcessCDR(1,14095232,1,1,2) [2024-12-24 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095232', 'tblTempUsageDetail_20' ) start [2024-12-24 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095232', 'tblTempUsageDetail_20' ) end [2024-12-24 22:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:28:24] Production.INFO: ==5596== Releasing lock... [2024-12-24 22:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:28:24] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:29:05 [end_date_ymd] => 2024-12-24 22:29:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:29:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:29:18] Production.INFO: count ==2594 [2024-12-24 22:29:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:29:05 - End Time 2024-12-24 22:29:05 [2024-12-24 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095237', 'tblTempUsageDetail_20' ) start [2024-12-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095237', 'tblTempUsageDetail_20' ) end [2024-12-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095237', 'tblTempVendorCDR_20' ) start [2024-12-24 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095237', 'tblTempVendorCDR_20' ) end [2024-12-24 22:29:19] Production.INFO: ProcessCDR(1,14095237,1,1,2) [2024-12-24 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095237', 'tblTempUsageDetail_20' ) start [2024-12-24 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095237', 'tblTempUsageDetail_20' ) end [2024-12-24 22:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:29:24] Production.INFO: ==5764== Releasing lock... [2024-12-24 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:29:24] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:30:06 [end_date_ymd] => 2024-12-24 22:30:06 [RateCDR] => 1 ) [2024-12-24 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:30:06' and `end` < '2024-12-24 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:30:18] Production.INFO: count ==2602 [2024-12-24 22:30:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:30:06 - End Time 2024-12-24 22:30:06 [2024-12-24 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095243', 'tblTempUsageDetail_20' ) start [2024-12-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095243', 'tblTempUsageDetail_20' ) end [2024-12-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095243', 'tblTempVendorCDR_20' ) start [2024-12-24 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095243', 'tblTempVendorCDR_20' ) end [2024-12-24 22:30:19] Production.INFO: ProcessCDR(1,14095243,1,1,2) [2024-12-24 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095243', 'tblTempUsageDetail_20' ) start [2024-12-24 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095243', 'tblTempUsageDetail_20' ) end [2024-12-24 22:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:30:22] Production.INFO: ==5869== Releasing lock... [2024-12-24 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:30:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:31:05 [end_date_ymd] => 2024-12-24 22:31:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:31:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:31:19] Production.INFO: count ==2559 [2024-12-24 22:31:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:31:05 - End Time 2024-12-24 22:31:05 [2024-12-24 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095248', 'tblTempUsageDetail_20' ) start [2024-12-24 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095248', 'tblTempUsageDetail_20' ) end [2024-12-24 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095248', 'tblTempVendorCDR_20' ) start [2024-12-24 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095248', 'tblTempVendorCDR_20' ) end [2024-12-24 22:31:20] Production.INFO: ProcessCDR(1,14095248,1,1,2) [2024-12-24 22:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095248', 'tblTempUsageDetail_20' ) start [2024-12-24 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095248', 'tblTempUsageDetail_20' ) end [2024-12-24 22:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:31:23] Production.INFO: ==5978== Releasing lock... [2024-12-24 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:31:23] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:32:04 [end_date_ymd] => 2024-12-24 22:32:04 [RateCDR] => 1 ) [2024-12-24 22:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:32:04' and `end` < '2024-12-24 22:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:32:17] Production.INFO: count ==2558 [2024-12-24 22:32:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:32:04 - End Time 2024-12-24 22:32:04 [2024-12-24 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095253', 'tblTempUsageDetail_20' ) start [2024-12-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095253', 'tblTempUsageDetail_20' ) end [2024-12-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095253', 'tblTempVendorCDR_20' ) start [2024-12-24 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095253', 'tblTempVendorCDR_20' ) end [2024-12-24 22:32:18] Production.INFO: ProcessCDR(1,14095253,1,1,2) [2024-12-24 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095253', 'tblTempUsageDetail_20' ) start [2024-12-24 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095253', 'tblTempUsageDetail_20' ) end [2024-12-24 22:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:32:22] Production.INFO: ==6082== Releasing lock... [2024-12-24 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:32:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:33:05 [end_date_ymd] => 2024-12-24 22:33:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:33:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:33:17] Production.INFO: count ==2566 [2024-12-24 22:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:33:05 - End Time 2024-12-24 22:33:05 [2024-12-24 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095258', 'tblTempUsageDetail_20' ) start [2024-12-24 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095258', 'tblTempUsageDetail_20' ) end [2024-12-24 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095258', 'tblTempVendorCDR_20' ) start [2024-12-24 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095258', 'tblTempVendorCDR_20' ) end [2024-12-24 22:33:18] Production.INFO: ProcessCDR(1,14095258,1,1,2) [2024-12-24 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095258', 'tblTempUsageDetail_20' ) start [2024-12-24 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095258', 'tblTempUsageDetail_20' ) end [2024-12-24 22:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:33:21] Production.INFO: ==6184== Releasing lock... [2024-12-24 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:33:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:34:04 [end_date_ymd] => 2024-12-24 22:34:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:34:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:34:17] Production.INFO: count ==2568 [2024-12-24 22:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:34:04 - End Time 2024-12-24 22:34:04 [2024-12-24 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095263', 'tblTempUsageDetail_20' ) start [2024-12-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095263', 'tblTempUsageDetail_20' ) end [2024-12-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095263', 'tblTempVendorCDR_20' ) start [2024-12-24 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095263', 'tblTempVendorCDR_20' ) end [2024-12-24 22:34:18] Production.INFO: ProcessCDR(1,14095263,1,1,2) [2024-12-24 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095263', 'tblTempUsageDetail_20' ) start [2024-12-24 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095263', 'tblTempUsageDetail_20' ) end [2024-12-24 22:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:34:21] Production.INFO: ==6286== Releasing lock... [2024-12-24 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:34:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:35:05 [end_date_ymd] => 2024-12-24 22:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:35:18] Production.INFO: count ==2571 [2024-12-24 22:35:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:35:05 - End Time 2024-12-24 22:35:05 [2024-12-24 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095268', 'tblTempUsageDetail_20' ) start [2024-12-24 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095268', 'tblTempUsageDetail_20' ) end [2024-12-24 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095268', 'tblTempVendorCDR_20' ) start [2024-12-24 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095268', 'tblTempVendorCDR_20' ) end [2024-12-24 22:35:19] Production.INFO: ProcessCDR(1,14095268,1,1,2) [2024-12-24 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095268', 'tblTempUsageDetail_20' ) start [2024-12-24 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095268', 'tblTempUsageDetail_20' ) end [2024-12-24 22:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:35:22] Production.INFO: ==6389== Releasing lock... [2024-12-24 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:35:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:36:05 [end_date_ymd] => 2024-12-24 22:36:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:36:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:36:17] Production.INFO: count ==2578 [2024-12-24 22:36:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:36:05 - End Time 2024-12-24 22:36:05 [2024-12-24 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095273', 'tblTempUsageDetail_20' ) start [2024-12-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095273', 'tblTempUsageDetail_20' ) end [2024-12-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095273', 'tblTempVendorCDR_20' ) start [2024-12-24 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095273', 'tblTempVendorCDR_20' ) end [2024-12-24 22:36:18] Production.INFO: ProcessCDR(1,14095273,1,1,2) [2024-12-24 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095273', 'tblTempUsageDetail_20' ) start [2024-12-24 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095273', 'tblTempUsageDetail_20' ) end [2024-12-24 22:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:36:21] Production.INFO: ==6494== Releasing lock... [2024-12-24 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:36:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-24 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:37:05 [end_date_ymd] => 2024-12-24 22:37:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:37:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:37:18] Production.INFO: count ==2596 [2024-12-24 22:37:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:37:05 - End Time 2024-12-24 22:37:05 [2024-12-24 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095278', 'tblTempUsageDetail_20' ) start [2024-12-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095278', 'tblTempUsageDetail_20' ) end [2024-12-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095278', 'tblTempVendorCDR_20' ) start [2024-12-24 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095278', 'tblTempVendorCDR_20' ) end [2024-12-24 22:37:19] Production.INFO: ProcessCDR(1,14095278,1,1,2) [2024-12-24 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095278', 'tblTempUsageDetail_20' ) start [2024-12-24 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095278', 'tblTempUsageDetail_20' ) end [2024-12-24 22:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:37:22] Production.INFO: ==6599== Releasing lock... [2024-12-24 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:37:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:38:04 [end_date_ymd] => 2024-12-24 22:38:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:38:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:38:19] Production.INFO: count ==2612 [2024-12-24 22:38:20] Production.ERROR: pbx CDR StartTime 2024-12-24 19:38:04 - End Time 2024-12-24 22:38:04 [2024-12-24 22:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095283', 'tblTempUsageDetail_20' ) start [2024-12-24 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095283', 'tblTempUsageDetail_20' ) end [2024-12-24 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095283', 'tblTempVendorCDR_20' ) start [2024-12-24 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095283', 'tblTempVendorCDR_20' ) end [2024-12-24 22:38:20] Production.INFO: ProcessCDR(1,14095283,1,1,2) [2024-12-24 22:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095283', 'tblTempUsageDetail_20' ) start [2024-12-24 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095283', 'tblTempUsageDetail_20' ) end [2024-12-24 22:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:38:23] Production.INFO: ==6700== Releasing lock... [2024-12-24 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:38:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:39:05 [end_date_ymd] => 2024-12-24 22:39:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:39:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:39:17] Production.INFO: count ==2613 [2024-12-24 22:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:39:05 - End Time 2024-12-24 22:39:05 [2024-12-24 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095288', 'tblTempUsageDetail_20' ) start [2024-12-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095288', 'tblTempUsageDetail_20' ) end [2024-12-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095288', 'tblTempVendorCDR_20' ) start [2024-12-24 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095288', 'tblTempVendorCDR_20' ) end [2024-12-24 22:39:18] Production.INFO: ProcessCDR(1,14095288,1,1,2) [2024-12-24 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095288', 'tblTempUsageDetail_20' ) start [2024-12-24 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095288', 'tblTempUsageDetail_20' ) end [2024-12-24 22:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:39:21] Production.INFO: ==6802== Releasing lock... [2024-12-24 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:39:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:40:06 [end_date_ymd] => 2024-12-24 22:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:40:18] Production.INFO: count ==2620 [2024-12-24 22:40:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:40:06 - End Time 2024-12-24 22:40:06 [2024-12-24 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095293', 'tblTempUsageDetail_20' ) start [2024-12-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095293', 'tblTempUsageDetail_20' ) end [2024-12-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095293', 'tblTempVendorCDR_20' ) start [2024-12-24 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095293', 'tblTempVendorCDR_20' ) end [2024-12-24 22:40:19] Production.INFO: ProcessCDR(1,14095293,1,1,2) [2024-12-24 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095293', 'tblTempUsageDetail_20' ) start [2024-12-24 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095293', 'tblTempUsageDetail_20' ) end [2024-12-24 22:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:40:23] Production.INFO: ==6910== Releasing lock... [2024-12-24 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:40:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:41:04 [end_date_ymd] => 2024-12-24 22:41:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:41:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:41:17] Production.INFO: count ==2610 [2024-12-24 22:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:41:04 - End Time 2024-12-24 22:41:04 [2024-12-24 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095299', 'tblTempUsageDetail_20' ) start [2024-12-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095299', 'tblTempUsageDetail_20' ) end [2024-12-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095299', 'tblTempVendorCDR_20' ) start [2024-12-24 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095299', 'tblTempVendorCDR_20' ) end [2024-12-24 22:41:18] Production.INFO: ProcessCDR(1,14095299,1,1,2) [2024-12-24 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095299', 'tblTempUsageDetail_20' ) start [2024-12-24 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095299', 'tblTempUsageDetail_20' ) end [2024-12-24 22:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:41:21] Production.INFO: ==7015== Releasing lock... [2024-12-24 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:41:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:42:05 [end_date_ymd] => 2024-12-24 22:42:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:42:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:42:17] Production.INFO: count ==2613 [2024-12-24 22:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:42:05 - End Time 2024-12-24 22:42:05 [2024-12-24 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095304', 'tblTempUsageDetail_20' ) start [2024-12-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095304', 'tblTempUsageDetail_20' ) end [2024-12-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095304', 'tblTempVendorCDR_20' ) start [2024-12-24 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095304', 'tblTempVendorCDR_20' ) end [2024-12-24 22:42:18] Production.INFO: ProcessCDR(1,14095304,1,1,2) [2024-12-24 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095304', 'tblTempUsageDetail_20' ) start [2024-12-24 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095304', 'tblTempUsageDetail_20' ) end [2024-12-24 22:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:42:21] Production.INFO: ==7117== Releasing lock... [2024-12-24 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:42:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-24 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:43:04 [end_date_ymd] => 2024-12-24 22:43:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:43:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:43:16] Production.INFO: count ==2615 [2024-12-24 22:43:17] Production.ERROR: pbx CDR StartTime 2024-12-24 19:43:04 - End Time 2024-12-24 22:43:04 [2024-12-24 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095309', 'tblTempUsageDetail_20' ) start [2024-12-24 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095309', 'tblTempUsageDetail_20' ) end [2024-12-24 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095309', 'tblTempVendorCDR_20' ) start [2024-12-24 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095309', 'tblTempVendorCDR_20' ) end [2024-12-24 22:43:17] Production.INFO: ProcessCDR(1,14095309,1,1,2) [2024-12-24 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095309', 'tblTempUsageDetail_20' ) start [2024-12-24 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095309', 'tblTempUsageDetail_20' ) end [2024-12-24 22:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:43:20] Production.INFO: ==7222== Releasing lock... [2024-12-24 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:43:20] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:44:04 [end_date_ymd] => 2024-12-24 22:44:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:44:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:44:17] Production.INFO: count ==2619 [2024-12-24 22:44:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:44:04 - End Time 2024-12-24 22:44:04 [2024-12-24 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095314', 'tblTempUsageDetail_20' ) start [2024-12-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095314', 'tblTempUsageDetail_20' ) end [2024-12-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095314', 'tblTempVendorCDR_20' ) start [2024-12-24 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095314', 'tblTempVendorCDR_20' ) end [2024-12-24 22:44:18] Production.INFO: ProcessCDR(1,14095314,1,1,2) [2024-12-24 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095314', 'tblTempUsageDetail_20' ) start [2024-12-24 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095314', 'tblTempUsageDetail_20' ) end [2024-12-24 22:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:44:21] Production.INFO: ==7330== Releasing lock... [2024-12-24 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:44:21] Production.INFO: 48 MB #Memory Used# [2024-12-24 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:45:05 [end_date_ymd] => 2024-12-24 22:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:45:18] Production.INFO: count ==2619 [2024-12-24 22:45:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:45:05 - End Time 2024-12-24 22:45:05 [2024-12-24 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095319', 'tblTempUsageDetail_20' ) start [2024-12-24 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095319', 'tblTempUsageDetail_20' ) end [2024-12-24 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095319', 'tblTempVendorCDR_20' ) start [2024-12-24 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095319', 'tblTempVendorCDR_20' ) end [2024-12-24 22:45:19] Production.INFO: ProcessCDR(1,14095319,1,1,2) [2024-12-24 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095319', 'tblTempUsageDetail_20' ) start [2024-12-24 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095319', 'tblTempUsageDetail_20' ) end [2024-12-24 22:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:45:22] Production.INFO: ==7475== Releasing lock... [2024-12-24 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:45:22] Production.INFO: 48 MB #Memory Used# [2024-12-24 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:46:04 [end_date_ymd] => 2024-12-24 22:46:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:46:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:46:18] Production.INFO: count ==2619 [2024-12-24 22:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:46:04 - End Time 2024-12-24 22:46:04 [2024-12-24 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095324', 'tblTempUsageDetail_20' ) start [2024-12-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095324', 'tblTempUsageDetail_20' ) end [2024-12-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095324', 'tblTempVendorCDR_20' ) start [2024-12-24 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095324', 'tblTempVendorCDR_20' ) end [2024-12-24 22:46:18] Production.INFO: ProcessCDR(1,14095324,1,1,2) [2024-12-24 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095324', 'tblTempUsageDetail_20' ) start [2024-12-24 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095324', 'tblTempUsageDetail_20' ) end [2024-12-24 22:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:46:21] Production.INFO: ==7582== Releasing lock... [2024-12-24 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:46:21] Production.INFO: 48 MB #Memory Used# [2024-12-24 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:47:04 [end_date_ymd] => 2024-12-24 22:47:04 [RateCDR] => 1 ) [2024-12-24 22:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:47:04' and `end` < '2024-12-24 22:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:47:17] Production.INFO: count ==2623 [2024-12-24 22:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:47:04 - End Time 2024-12-24 22:47:04 [2024-12-24 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095329', 'tblTempUsageDetail_20' ) start [2024-12-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095329', 'tblTempUsageDetail_20' ) end [2024-12-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095329', 'tblTempVendorCDR_20' ) start [2024-12-24 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095329', 'tblTempVendorCDR_20' ) end [2024-12-24 22:47:18] Production.INFO: ProcessCDR(1,14095329,1,1,2) [2024-12-24 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095329', 'tblTempUsageDetail_20' ) start [2024-12-24 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095329', 'tblTempUsageDetail_20' ) end [2024-12-24 22:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:47:21] Production.INFO: ==7682== Releasing lock... [2024-12-24 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:47:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:48:05 [end_date_ymd] => 2024-12-24 22:48:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:48:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:48:17] Production.INFO: count ==2624 [2024-12-24 22:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:48:05 - End Time 2024-12-24 22:48:05 [2024-12-24 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095333', 'tblTempUsageDetail_20' ) start [2024-12-24 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095333', 'tblTempUsageDetail_20' ) end [2024-12-24 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095333', 'tblTempVendorCDR_20' ) start [2024-12-24 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095333', 'tblTempVendorCDR_20' ) end [2024-12-24 22:48:18] Production.INFO: ProcessCDR(1,14095333,1,1,2) [2024-12-24 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095333', 'tblTempUsageDetail_20' ) start [2024-12-24 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095333', 'tblTempUsageDetail_20' ) end [2024-12-24 22:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:48:21] Production.INFO: ==7787== Releasing lock... [2024-12-24 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:48:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:49:05 [end_date_ymd] => 2024-12-24 22:49:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:49:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:49:18] Production.INFO: count ==2628 [2024-12-24 22:49:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:49:05 - End Time 2024-12-24 22:49:05 [2024-12-24 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095339', 'tblTempUsageDetail_20' ) start [2024-12-24 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095339', 'tblTempUsageDetail_20' ) end [2024-12-24 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095339', 'tblTempVendorCDR_20' ) start [2024-12-24 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095339', 'tblTempVendorCDR_20' ) end [2024-12-24 22:49:19] Production.INFO: ProcessCDR(1,14095339,1,1,2) [2024-12-24 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095339', 'tblTempUsageDetail_20' ) start [2024-12-24 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095339', 'tblTempUsageDetail_20' ) end [2024-12-24 22:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:49:22] Production.INFO: ==7887== Releasing lock... [2024-12-24 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:49:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:50:05 [end_date_ymd] => 2024-12-24 22:50:05 [RateCDR] => 1 ) [2024-12-24 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:50:05' and `end` < '2024-12-24 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:50:18] Production.INFO: count ==2623 [2024-12-24 22:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:50:05 - End Time 2024-12-24 22:50:05 [2024-12-24 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095344', 'tblTempUsageDetail_20' ) start [2024-12-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095344', 'tblTempUsageDetail_20' ) end [2024-12-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095344', 'tblTempVendorCDR_20' ) start [2024-12-24 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095344', 'tblTempVendorCDR_20' ) end [2024-12-24 22:50:19] Production.INFO: ProcessCDR(1,14095344,1,1,2) [2024-12-24 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095344', 'tblTempUsageDetail_20' ) start [2024-12-24 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095344', 'tblTempUsageDetail_20' ) end [2024-12-24 22:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:50:22] Production.INFO: ==7993== Releasing lock... [2024-12-24 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:50:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:51:04 [end_date_ymd] => 2024-12-24 22:51:04 [RateCDR] => 1 ) [2024-12-24 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:51:04' and `end` < '2024-12-24 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:51:17] Production.INFO: count ==2628 [2024-12-24 22:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:51:04 - End Time 2024-12-24 22:51:04 [2024-12-24 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095350', 'tblTempUsageDetail_20' ) start [2024-12-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095350', 'tblTempUsageDetail_20' ) end [2024-12-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095350', 'tblTempVendorCDR_20' ) start [2024-12-24 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095350', 'tblTempVendorCDR_20' ) end [2024-12-24 22:51:18] Production.INFO: ProcessCDR(1,14095350,1,1,2) [2024-12-24 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095350', 'tblTempUsageDetail_20' ) start [2024-12-24 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095350', 'tblTempUsageDetail_20' ) end [2024-12-24 22:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:51:21] Production.INFO: ==8097== Releasing lock... [2024-12-24 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:51:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:52:04 [end_date_ymd] => 2024-12-24 22:52:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:52:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:52:17] Production.INFO: count ==2627 [2024-12-24 22:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:52:04 - End Time 2024-12-24 22:52:04 [2024-12-24 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095355', 'tblTempUsageDetail_20' ) start [2024-12-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095355', 'tblTempUsageDetail_20' ) end [2024-12-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095355', 'tblTempVendorCDR_20' ) start [2024-12-24 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095355', 'tblTempVendorCDR_20' ) end [2024-12-24 22:52:18] Production.INFO: ProcessCDR(1,14095355,1,1,2) [2024-12-24 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095355', 'tblTempUsageDetail_20' ) start [2024-12-24 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095355', 'tblTempUsageDetail_20' ) end [2024-12-24 22:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:52:21] Production.INFO: ==8201== Releasing lock... [2024-12-24 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:52:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:53:04 [end_date_ymd] => 2024-12-24 22:53:04 [RateCDR] => 1 ) [2024-12-24 22: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` >= '2024-12-24 19:53:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:53:17] Production.INFO: count ==2625 [2024-12-24 22:53:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:53:04 - End Time 2024-12-24 22:53:04 [2024-12-24 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095360', 'tblTempUsageDetail_20' ) start [2024-12-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095360', 'tblTempUsageDetail_20' ) end [2024-12-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095360', 'tblTempVendorCDR_20' ) start [2024-12-24 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095360', 'tblTempVendorCDR_20' ) end [2024-12-24 22:53:18] Production.INFO: ProcessCDR(1,14095360,1,1,2) [2024-12-24 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095360', 'tblTempUsageDetail_20' ) start [2024-12-24 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095360', 'tblTempUsageDetail_20' ) end [2024-12-24 22:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:53:23] Production.INFO: ==8302== Releasing lock... [2024-12-24 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:53:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:54:05 [end_date_ymd] => 2024-12-24 22:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:54:18] Production.INFO: count ==2639 [2024-12-24 22:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:54:05 - End Time 2024-12-24 22:54:05 [2024-12-24 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095365', 'tblTempUsageDetail_20' ) start [2024-12-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095365', 'tblTempUsageDetail_20' ) end [2024-12-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095365', 'tblTempVendorCDR_20' ) start [2024-12-24 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095365', 'tblTempVendorCDR_20' ) end [2024-12-24 22:54:18] Production.INFO: ProcessCDR(1,14095365,1,1,2) [2024-12-24 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095365', 'tblTempUsageDetail_20' ) start [2024-12-24 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095365', 'tblTempUsageDetail_20' ) end [2024-12-24 22:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:54:22] Production.INFO: ==8407== Releasing lock... [2024-12-24 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:54:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:55:04 [end_date_ymd] => 2024-12-24 22:55:04 [RateCDR] => 1 ) [2024-12-24 22:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:55:04' and `end` < '2024-12-24 22:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:55:17] Production.INFO: count ==2669 [2024-12-24 22:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:55:04 - End Time 2024-12-24 22:55:04 [2024-12-24 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095370', 'tblTempUsageDetail_20' ) start [2024-12-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095370', 'tblTempUsageDetail_20' ) end [2024-12-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095370', 'tblTempVendorCDR_20' ) start [2024-12-24 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095370', 'tblTempVendorCDR_20' ) end [2024-12-24 22:55:18] Production.INFO: ProcessCDR(1,14095370,1,1,2) [2024-12-24 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095370', 'tblTempUsageDetail_20' ) start [2024-12-24 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095370', 'tblTempUsageDetail_20' ) end [2024-12-24 22:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:55:21] Production.INFO: ==8508== Releasing lock... [2024-12-24 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:55:21] Production.INFO: 48 MB #Memory Used# [2024-12-24 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:56:05 [end_date_ymd] => 2024-12-24 22:56:05 [RateCDR] => 1 ) [2024-12-24 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:56:05' and `end` < '2024-12-24 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:56:17] Production.INFO: count ==2711 [2024-12-24 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:56:05 - End Time 2024-12-24 22:56:05 [2024-12-24 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095375', 'tblTempUsageDetail_20' ) start [2024-12-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095375', 'tblTempUsageDetail_20' ) end [2024-12-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095375', 'tblTempVendorCDR_20' ) start [2024-12-24 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095375', 'tblTempVendorCDR_20' ) end [2024-12-24 22:56:18] Production.INFO: ProcessCDR(1,14095375,1,1,2) [2024-12-24 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095375', 'tblTempUsageDetail_20' ) start [2024-12-24 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095375', 'tblTempUsageDetail_20' ) end [2024-12-24 22:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:56:22] Production.INFO: ==8612== Releasing lock... [2024-12-24 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:56:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-24 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:57:06 [end_date_ymd] => 2024-12-24 22:57:06 [RateCDR] => 1 ) [2024-12-24 22:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 19:57:06' and `end` < '2024-12-24 22:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 22:57:18] Production.INFO: count ==2741 [2024-12-24 22:57:19] Production.ERROR: pbx CDR StartTime 2024-12-24 19:57:06 - End Time 2024-12-24 22:57:06 [2024-12-24 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095380', 'tblTempUsageDetail_20' ) start [2024-12-24 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095380', 'tblTempUsageDetail_20' ) end [2024-12-24 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095380', 'tblTempVendorCDR_20' ) start [2024-12-24 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095380', 'tblTempVendorCDR_20' ) end [2024-12-24 22:57:19] Production.INFO: ProcessCDR(1,14095380,1,1,2) [2024-12-24 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095380', 'tblTempUsageDetail_20' ) start [2024-12-24 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095380', 'tblTempUsageDetail_20' ) end [2024-12-24 22:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:57:23] Production.INFO: ==8717== Releasing lock... [2024-12-24 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:57:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:58:04 [end_date_ymd] => 2024-12-24 22:58:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:58:04' and `end` < '2024-12-24 22: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 ,'') [2024-12-24 22:58:17] Production.INFO: count ==2775 [2024-12-24 22:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:58:04 - End Time 2024-12-24 22:58:04 [2024-12-24 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095385', 'tblTempUsageDetail_20' ) start [2024-12-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095385', 'tblTempUsageDetail_20' ) end [2024-12-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095385', 'tblTempVendorCDR_20' ) start [2024-12-24 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095385', 'tblTempVendorCDR_20' ) end [2024-12-24 22:58:18] Production.INFO: ProcessCDR(1,14095385,1,1,2) [2024-12-24 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095385', 'tblTempUsageDetail_20' ) start [2024-12-24 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095385', 'tblTempUsageDetail_20' ) end [2024-12-24 22:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:58:21] Production.INFO: ==8823== Releasing lock... [2024-12-24 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:58:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-24 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 19:59:05 [end_date_ymd] => 2024-12-24 22:59:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 19:59:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 22:59:17] Production.INFO: count ==2812 [2024-12-24 22:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 19:59:05 - End Time 2024-12-24 22:59:05 [2024-12-24 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095390', 'tblTempUsageDetail_20' ) start [2024-12-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095390', 'tblTempUsageDetail_20' ) end [2024-12-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095390', 'tblTempVendorCDR_20' ) start [2024-12-24 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095390', 'tblTempVendorCDR_20' ) end [2024-12-24 22:59:18] Production.INFO: ProcessCDR(1,14095390,1,1,2) [2024-12-24 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095390', 'tblTempUsageDetail_20' ) start [2024-12-24 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095390', 'tblTempUsageDetail_20' ) end [2024-12-24 22:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 22:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 22:59:22] Production.INFO: ==8936== Releasing lock... [2024-12-24 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 22:59:22] Production.INFO: 49 MB #Memory Used# [2024-12-24 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:00:05 [end_date_ymd] => 2024-12-24 23:00:05 [RateCDR] => 1 ) [2024-12-24 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:00:05' and `end` < '2024-12-24 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:00:17] Production.INFO: count ==3052 [2024-12-24 23:00:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:00:05 - End Time 2024-12-24 23:00:05 [2024-12-24 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095396', 'tblTempUsageDetail_20' ) start [2024-12-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095396', 'tblTempUsageDetail_20' ) end [2024-12-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095396', 'tblTempVendorCDR_20' ) start [2024-12-24 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095396', 'tblTempVendorCDR_20' ) end [2024-12-24 23:00:19] Production.INFO: ProcessCDR(1,14095396,1,1,2) [2024-12-24 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095396', 'tblTempUsageDetail_20' ) start [2024-12-24 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095396', 'tblTempUsageDetail_20' ) end [2024-12-24 23:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:00:23] Production.INFO: ==9082== Releasing lock... [2024-12-24 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:00:23] Production.INFO: 51.25 MB #Memory Used# [2024-12-24 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:01:05 [end_date_ymd] => 2024-12-24 23:01:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:01:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:01:18] Production.INFO: count ==3067 [2024-12-24 23:01:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:01:05 - End Time 2024-12-24 23:01:05 [2024-12-24 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095401', 'tblTempUsageDetail_20' ) start [2024-12-24 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095401', 'tblTempUsageDetail_20' ) end [2024-12-24 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095401', 'tblTempVendorCDR_20' ) start [2024-12-24 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095401', 'tblTempVendorCDR_20' ) end [2024-12-24 23:01:19] Production.INFO: ProcessCDR(1,14095401,1,1,2) [2024-12-24 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095401', 'tblTempUsageDetail_20' ) start [2024-12-24 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095401', 'tblTempUsageDetail_20' ) end [2024-12-24 23:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:01:23] Production.INFO: ==9201== Releasing lock... [2024-12-24 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:01:23] Production.INFO: 51.25 MB #Memory Used# [2024-12-24 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:02:04 [end_date_ymd] => 2024-12-24 23:02:04 [RateCDR] => 1 ) [2024-12-24 23: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` >= '2024-12-24 20:02:04' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:02:17] Production.INFO: count ==3079 [2024-12-24 23:02:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:02:04 - End Time 2024-12-24 23:02:04 [2024-12-24 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095406', 'tblTempUsageDetail_20' ) start [2024-12-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095406', 'tblTempUsageDetail_20' ) end [2024-12-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095406', 'tblTempVendorCDR_20' ) start [2024-12-24 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095406', 'tblTempVendorCDR_20' ) end [2024-12-24 23:02:18] Production.INFO: ProcessCDR(1,14095406,1,1,2) [2024-12-24 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095406', 'tblTempUsageDetail_20' ) start [2024-12-24 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095406', 'tblTempUsageDetail_20' ) end [2024-12-24 23:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:02:21] Production.INFO: ==9374== Releasing lock... [2024-12-24 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:02:21] Production.INFO: 51.25 MB #Memory Used# [2024-12-24 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:03:05 [end_date_ymd] => 2024-12-24 23:03:05 [RateCDR] => 1 ) [2024-12-24 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:03:05' and `end` < '2024-12-24 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:03:18] Production.INFO: count ==3078 [2024-12-24 23:03:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:03:05 - End Time 2024-12-24 23:03:05 [2024-12-24 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095411', 'tblTempUsageDetail_20' ) start [2024-12-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095411', 'tblTempUsageDetail_20' ) end [2024-12-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095411', 'tblTempVendorCDR_20' ) start [2024-12-24 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095411', 'tblTempVendorCDR_20' ) end [2024-12-24 23:03:19] Production.INFO: ProcessCDR(1,14095411,1,1,2) [2024-12-24 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095411', 'tblTempUsageDetail_20' ) start [2024-12-24 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095411', 'tblTempUsageDetail_20' ) end [2024-12-24 23:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:03:24] Production.INFO: ==9478== Releasing lock... [2024-12-24 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:03:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:04:04 [end_date_ymd] => 2024-12-24 23:04:04 [RateCDR] => 1 ) [2024-12-24 23: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` >= '2024-12-24 20:04:04' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:04:17] Production.INFO: count ==3078 [2024-12-24 23:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:04:04 - End Time 2024-12-24 23:04:04 [2024-12-24 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095416', 'tblTempUsageDetail_20' ) start [2024-12-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095416', 'tblTempUsageDetail_20' ) end [2024-12-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095416', 'tblTempVendorCDR_20' ) start [2024-12-24 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095416', 'tblTempVendorCDR_20' ) end [2024-12-24 23:04:18] Production.INFO: ProcessCDR(1,14095416,1,1,2) [2024-12-24 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095416', 'tblTempUsageDetail_20' ) start [2024-12-24 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095416', 'tblTempUsageDetail_20' ) end [2024-12-24 23:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:04:21] Production.INFO: ==9574== Releasing lock... [2024-12-24 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:04:21] Production.INFO: 50.75 MB #Memory Used# [2024-12-24 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:05:05 [end_date_ymd] => 2024-12-24 23:05:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:05:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:05:17] Production.INFO: count ==3077 [2024-12-24 23:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:05:05 - End Time 2024-12-24 23:05:05 [2024-12-24 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095421', 'tblTempUsageDetail_20' ) start [2024-12-24 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095421', 'tblTempUsageDetail_20' ) end [2024-12-24 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095421', 'tblTempVendorCDR_20' ) start [2024-12-24 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095421', 'tblTempVendorCDR_20' ) end [2024-12-24 23:05:19] Production.INFO: ProcessCDR(1,14095421,1,1,2) [2024-12-24 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095421', 'tblTempUsageDetail_20' ) start [2024-12-24 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095421', 'tblTempUsageDetail_20' ) end [2024-12-24 23:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:05:22] Production.INFO: ==9752== Releasing lock... [2024-12-24 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:05:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-24 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:06:06 [end_date_ymd] => 2024-12-24 23:06:06 [RateCDR] => 1 ) [2024-12-24 23: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` >= '2024-12-24 20:06:06' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:06:18] Production.INFO: count ==3077 [2024-12-24 23:06:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:06:06 - End Time 2024-12-24 23:06:06 [2024-12-24 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095426', 'tblTempUsageDetail_20' ) start [2024-12-24 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095426', 'tblTempUsageDetail_20' ) end [2024-12-24 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095426', 'tblTempVendorCDR_20' ) start [2024-12-24 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095426', 'tblTempVendorCDR_20' ) end [2024-12-24 23:06:20] Production.INFO: ProcessCDR(1,14095426,1,1,2) [2024-12-24 23:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095426', 'tblTempUsageDetail_20' ) start [2024-12-24 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095426', 'tblTempUsageDetail_20' ) end [2024-12-24 23:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:06:23] Production.INFO: ==9860== Releasing lock... [2024-12-24 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:06:23] Production.INFO: 51.5 MB #Memory Used# [2024-12-24 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:07:05 [end_date_ymd] => 2024-12-24 23:07:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:07:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:07:17] Production.INFO: count ==3019 [2024-12-24 23:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:07:05 - End Time 2024-12-24 23:07:05 [2024-12-24 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095431', 'tblTempUsageDetail_20' ) start [2024-12-24 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095431', 'tblTempUsageDetail_20' ) end [2024-12-24 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095431', 'tblTempVendorCDR_20' ) start [2024-12-24 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095431', 'tblTempVendorCDR_20' ) end [2024-12-24 23:07:19] Production.INFO: ProcessCDR(1,14095431,1,1,2) [2024-12-24 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095431', 'tblTempUsageDetail_20' ) start [2024-12-24 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095431', 'tblTempUsageDetail_20' ) end [2024-12-24 23:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:07:22] Production.INFO: ==9964== Releasing lock... [2024-12-24 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:07:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-24 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:08:05 [end_date_ymd] => 2024-12-24 23:08:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:08:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:08:18] Production.INFO: count ==2889 [2024-12-24 23:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:08:05 - End Time 2024-12-24 23:08:05 [2024-12-24 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095436', 'tblTempUsageDetail_20' ) start [2024-12-24 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095436', 'tblTempUsageDetail_20' ) end [2024-12-24 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095436', 'tblTempVendorCDR_20' ) start [2024-12-24 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095436', 'tblTempVendorCDR_20' ) end [2024-12-24 23:08:20] Production.INFO: ProcessCDR(1,14095436,1,1,2) [2024-12-24 23:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095436', 'tblTempUsageDetail_20' ) start [2024-12-24 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095436', 'tblTempUsageDetail_20' ) end [2024-12-24 23:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:08:23] Production.INFO: ==10101== Releasing lock... [2024-12-24 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:08:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-24 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:09:05 [end_date_ymd] => 2024-12-24 23:09:05 [RateCDR] => 1 ) [2024-12-24 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:09:05' and `end` < '2024-12-24 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:09:19] Production.INFO: count ==2751 [2024-12-24 23:09:20] Production.ERROR: pbx CDR StartTime 2024-12-24 20:09:05 - End Time 2024-12-24 23:09:05 [2024-12-24 23:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095441', 'tblTempUsageDetail_20' ) start [2024-12-24 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095441', 'tblTempUsageDetail_20' ) end [2024-12-24 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095441', 'tblTempVendorCDR_20' ) start [2024-12-24 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095441', 'tblTempVendorCDR_20' ) end [2024-12-24 23:09:20] Production.INFO: ProcessCDR(1,14095441,1,1,2) [2024-12-24 23:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095441', 'tblTempUsageDetail_20' ) start [2024-12-24 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095441', 'tblTempUsageDetail_20' ) end [2024-12-24 23:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:09:23] Production.INFO: ==10239== Releasing lock... [2024-12-24 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:09:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-24 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:10:05 [end_date_ymd] => 2024-12-24 23:10:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:10:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:10:17] Production.INFO: count ==2625 [2024-12-24 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:10:05 - End Time 2024-12-24 23:10:05 [2024-12-24 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095447', 'tblTempUsageDetail_20' ) start [2024-12-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095447', 'tblTempUsageDetail_20' ) end [2024-12-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095447', 'tblTempVendorCDR_20' ) start [2024-12-24 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095447', 'tblTempVendorCDR_20' ) end [2024-12-24 23:10:19] Production.INFO: ProcessCDR(1,14095447,1,1,2) [2024-12-24 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095447', 'tblTempUsageDetail_20' ) start [2024-12-24 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095447', 'tblTempUsageDetail_20' ) end [2024-12-24 23:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:10:22] Production.INFO: ==10343== Releasing lock... [2024-12-24 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:10:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-24 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:11:05 [end_date_ymd] => 2024-12-24 23:11:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:11:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:11:17] Production.INFO: count ==2508 [2024-12-24 23:11:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:11:05 - End Time 2024-12-24 23:11:05 [2024-12-24 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095452', 'tblTempUsageDetail_20' ) start [2024-12-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095452', 'tblTempUsageDetail_20' ) end [2024-12-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095452', 'tblTempVendorCDR_20' ) start [2024-12-24 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095452', 'tblTempVendorCDR_20' ) end [2024-12-24 23:11:18] Production.INFO: ProcessCDR(1,14095452,1,1,2) [2024-12-24 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095452', 'tblTempUsageDetail_20' ) start [2024-12-24 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095452', 'tblTempUsageDetail_20' ) end [2024-12-24 23:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:11:22] Production.INFO: ==10442== Releasing lock... [2024-12-24 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:11:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-24 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:12:04 [end_date_ymd] => 2024-12-24 23:12:04 [RateCDR] => 1 ) [2024-12-24 23:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:12:04' and `end` < '2024-12-24 23:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:12:17] Production.INFO: count ==2433 [2024-12-24 23:12:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:12:04 - End Time 2024-12-24 23:12:04 [2024-12-24 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095457', 'tblTempUsageDetail_20' ) start [2024-12-24 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095457', 'tblTempUsageDetail_20' ) end [2024-12-24 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095457', 'tblTempVendorCDR_20' ) start [2024-12-24 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095457', 'tblTempVendorCDR_20' ) end [2024-12-24 23:12:17] Production.INFO: ProcessCDR(1,14095457,1,1,2) [2024-12-24 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095457', 'tblTempUsageDetail_20' ) start [2024-12-24 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095457', 'tblTempUsageDetail_20' ) end [2024-12-24 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:12:21] Production.INFO: ==10616== Releasing lock... [2024-12-24 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:12:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-24 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:13:05 [end_date_ymd] => 2024-12-24 23:13:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:13:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:13:17] Production.INFO: count ==2285 [2024-12-24 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:13:05 - End Time 2024-12-24 23:13:05 [2024-12-24 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095462', 'tblTempUsageDetail_20' ) start [2024-12-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095462', 'tblTempUsageDetail_20' ) end [2024-12-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095462', 'tblTempVendorCDR_20' ) start [2024-12-24 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095462', 'tblTempVendorCDR_20' ) end [2024-12-24 23:13:18] Production.INFO: ProcessCDR(1,14095462,1,1,2) [2024-12-24 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095462', 'tblTempUsageDetail_20' ) start [2024-12-24 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095462', 'tblTempUsageDetail_20' ) end [2024-12-24 23:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:13:22] Production.INFO: ==10716== Releasing lock... [2024-12-24 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:13:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-24 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:14:05 [end_date_ymd] => 2024-12-24 23:14:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:14:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:14:18] Production.INFO: count ==2150 [2024-12-24 23:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:14:05 - End Time 2024-12-24 23:14:05 [2024-12-24 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095467', 'tblTempUsageDetail_20' ) start [2024-12-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095467', 'tblTempUsageDetail_20' ) end [2024-12-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095467', 'tblTempVendorCDR_20' ) start [2024-12-24 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095467', 'tblTempVendorCDR_20' ) end [2024-12-24 23:14:18] Production.INFO: ProcessCDR(1,14095467,1,1,2) [2024-12-24 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095467', 'tblTempUsageDetail_20' ) start [2024-12-24 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095467', 'tblTempUsageDetail_20' ) end [2024-12-24 23:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:14:21] Production.INFO: ==10814== Releasing lock... [2024-12-24 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:14:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-24 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:15:05 [end_date_ymd] => 2024-12-24 23:15:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:15:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:15:17] Production.INFO: count ==2015 [2024-12-24 23:15:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:15:05 - End Time 2024-12-24 23:15:05 [2024-12-24 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095472', 'tblTempUsageDetail_20' ) start [2024-12-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095472', 'tblTempUsageDetail_20' ) end [2024-12-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095472', 'tblTempVendorCDR_20' ) start [2024-12-24 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095472', 'tblTempVendorCDR_20' ) end [2024-12-24 23:15:18] Production.INFO: ProcessCDR(1,14095472,1,1,2) [2024-12-24 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095472', 'tblTempUsageDetail_20' ) start [2024-12-24 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095472', 'tblTempUsageDetail_20' ) end [2024-12-24 23:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:15:21] Production.INFO: ==10950== Releasing lock... [2024-12-24 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:15:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-24 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:16:05 [end_date_ymd] => 2024-12-24 23:16:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:16:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:16:18] Production.INFO: count ==1936 [2024-12-24 23:16:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:16:05 - End Time 2024-12-24 23:16:05 [2024-12-24 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095477', 'tblTempUsageDetail_20' ) start [2024-12-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095477', 'tblTempUsageDetail_20' ) end [2024-12-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095477', 'tblTempVendorCDR_20' ) start [2024-12-24 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095477', 'tblTempVendorCDR_20' ) end [2024-12-24 23:16:18] Production.INFO: ProcessCDR(1,14095477,1,1,2) [2024-12-24 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095477', 'tblTempUsageDetail_20' ) start [2024-12-24 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095477', 'tblTempUsageDetail_20' ) end [2024-12-24 23:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:16:22] Production.INFO: ==11130== Releasing lock... [2024-12-24 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:16:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:17:05 [end_date_ymd] => 2024-12-24 23:17:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:17:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:17:18] Production.INFO: count ==1934 [2024-12-24 23:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:17:05 - End Time 2024-12-24 23:17:05 [2024-12-24 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095482', 'tblTempUsageDetail_20' ) start [2024-12-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095482', 'tblTempUsageDetail_20' ) end [2024-12-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095482', 'tblTempVendorCDR_20' ) start [2024-12-24 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095482', 'tblTempVendorCDR_20' ) end [2024-12-24 23:17:18] Production.INFO: ProcessCDR(1,14095482,1,1,2) [2024-12-24 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095482', 'tblTempUsageDetail_20' ) start [2024-12-24 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095482', 'tblTempUsageDetail_20' ) end [2024-12-24 23:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:17:22] Production.INFO: ==11227== Releasing lock... [2024-12-24 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:17:22] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:18:05 [end_date_ymd] => 2024-12-24 23:18:05 [RateCDR] => 1 ) [2024-12-24 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:18:05' and `end` < '2024-12-24 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:18:18] Production.INFO: count ==1934 [2024-12-24 23:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:18:05 - End Time 2024-12-24 23:18:05 [2024-12-24 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095487', 'tblTempUsageDetail_20' ) start [2024-12-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095487', 'tblTempUsageDetail_20' ) end [2024-12-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095487', 'tblTempVendorCDR_20' ) start [2024-12-24 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095487', 'tblTempVendorCDR_20' ) end [2024-12-24 23:18:18] Production.INFO: ProcessCDR(1,14095487,1,1,2) [2024-12-24 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095487', 'tblTempUsageDetail_20' ) start [2024-12-24 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095487', 'tblTempUsageDetail_20' ) end [2024-12-24 23:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:18:21] Production.INFO: ==11327== Releasing lock... [2024-12-24 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:18:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:19:04 [end_date_ymd] => 2024-12-24 23:19:04 [RateCDR] => 1 ) [2024-12-24 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:19:04' and `end` < '2024-12-24 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:19:16] Production.INFO: count ==1932 [2024-12-24 23:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:19:04 - End Time 2024-12-24 23:19:04 [2024-12-24 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095492', 'tblTempUsageDetail_20' ) start [2024-12-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095492', 'tblTempUsageDetail_20' ) end [2024-12-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095492', 'tblTempVendorCDR_20' ) start [2024-12-24 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095492', 'tblTempVendorCDR_20' ) end [2024-12-24 23:19:17] Production.INFO: ProcessCDR(1,14095492,1,1,2) [2024-12-24 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095492', 'tblTempUsageDetail_20' ) start [2024-12-24 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095492', 'tblTempUsageDetail_20' ) end [2024-12-24 23:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:19:20] Production.INFO: ==11426== Releasing lock... [2024-12-24 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:19:20] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:20:05 [end_date_ymd] => 2024-12-24 23:20:05 [RateCDR] => 1 ) [2024-12-24 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:20:05' and `end` < '2024-12-24 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:20:18] Production.INFO: count ==1934 [2024-12-24 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:20:05 - End Time 2024-12-24 23:20:05 [2024-12-24 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095498', 'tblTempUsageDetail_20' ) start [2024-12-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095498', 'tblTempUsageDetail_20' ) end [2024-12-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095498', 'tblTempVendorCDR_20' ) start [2024-12-24 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095498', 'tblTempVendorCDR_20' ) end [2024-12-24 23:20:18] Production.INFO: ProcessCDR(1,14095498,1,1,2) [2024-12-24 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095498', 'tblTempUsageDetail_20' ) start [2024-12-24 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095498', 'tblTempUsageDetail_20' ) end [2024-12-24 23:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:20:22] Production.INFO: ==11532== Releasing lock... [2024-12-24 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:20:22] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:21:05 [end_date_ymd] => 2024-12-24 23:21:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:21:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:21:17] Production.INFO: count ==1906 [2024-12-24 23:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:21:05 - End Time 2024-12-24 23:21:05 [2024-12-24 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095503', 'tblTempUsageDetail_20' ) start [2024-12-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095503', 'tblTempUsageDetail_20' ) end [2024-12-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095503', 'tblTempVendorCDR_20' ) start [2024-12-24 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095503', 'tblTempVendorCDR_20' ) end [2024-12-24 23:21:18] Production.INFO: ProcessCDR(1,14095503,1,1,2) [2024-12-24 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095503', 'tblTempUsageDetail_20' ) start [2024-12-24 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095503', 'tblTempUsageDetail_20' ) end [2024-12-24 23:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:21:21] Production.INFO: ==11632== Releasing lock... [2024-12-24 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:21:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:22:04 [end_date_ymd] => 2024-12-24 23:22:04 [RateCDR] => 1 ) [2024-12-24 23: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` >= '2024-12-24 20:22:04' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:22:17] Production.INFO: count ==1884 [2024-12-24 23:22:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:22:04 - End Time 2024-12-24 23:22:04 [2024-12-24 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095508', 'tblTempUsageDetail_20' ) start [2024-12-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095508', 'tblTempUsageDetail_20' ) end [2024-12-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095508', 'tblTempVendorCDR_20' ) start [2024-12-24 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095508', 'tblTempVendorCDR_20' ) end [2024-12-24 23:22:17] Production.INFO: ProcessCDR(1,14095508,1,1,2) [2024-12-24 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095508', 'tblTempUsageDetail_20' ) start [2024-12-24 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095508', 'tblTempUsageDetail_20' ) end [2024-12-24 23:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:22:20] Production.INFO: ==11741== Releasing lock... [2024-12-24 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:22:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:23:05 [end_date_ymd] => 2024-12-24 23:23:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:23:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:23:17] Production.INFO: count ==1885 [2024-12-24 23:23:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:23:05 - End Time 2024-12-24 23:23:05 [2024-12-24 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095513', 'tblTempUsageDetail_20' ) start [2024-12-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095513', 'tblTempUsageDetail_20' ) end [2024-12-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095513', 'tblTempVendorCDR_20' ) start [2024-12-24 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095513', 'tblTempVendorCDR_20' ) end [2024-12-24 23:23:18] Production.INFO: ProcessCDR(1,14095513,1,1,2) [2024-12-24 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095513', 'tblTempUsageDetail_20' ) start [2024-12-24 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095513', 'tblTempUsageDetail_20' ) end [2024-12-24 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:23:21] Production.INFO: ==11877== Releasing lock... [2024-12-24 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:23:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:24:05 [end_date_ymd] => 2024-12-24 23:24:05 [RateCDR] => 1 ) [2024-12-24 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:24:05' and `end` < '2024-12-24 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:24:18] Production.INFO: count ==1883 [2024-12-24 23:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:24:05 - End Time 2024-12-24 23:24:05 [2024-12-24 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095518', 'tblTempUsageDetail_20' ) start [2024-12-24 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095518', 'tblTempUsageDetail_20' ) end [2024-12-24 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095518', 'tblTempVendorCDR_20' ) start [2024-12-24 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095518', 'tblTempVendorCDR_20' ) end [2024-12-24 23:24:19] Production.INFO: ProcessCDR(1,14095518,1,1,2) [2024-12-24 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095518', 'tblTempUsageDetail_20' ) start [2024-12-24 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095518', 'tblTempUsageDetail_20' ) end [2024-12-24 23:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:24:22] Production.INFO: ==12007== Releasing lock... [2024-12-24 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:24:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:25:04 [end_date_ymd] => 2024-12-24 23:25:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:25:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:25:17] Production.INFO: count ==1883 [2024-12-24 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:25:04 - End Time 2024-12-24 23:25:04 [2024-12-24 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095523', 'tblTempUsageDetail_20' ) start [2024-12-24 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095523', 'tblTempUsageDetail_20' ) end [2024-12-24 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095523', 'tblTempVendorCDR_20' ) start [2024-12-24 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095523', 'tblTempVendorCDR_20' ) end [2024-12-24 23:25:17] Production.INFO: ProcessCDR(1,14095523,1,1,2) [2024-12-24 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095523', 'tblTempUsageDetail_20' ) start [2024-12-24 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095523', 'tblTempUsageDetail_20' ) end [2024-12-24 23:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:25:20] Production.INFO: ==12138== Releasing lock... [2024-12-24 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:25:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:26:05 [end_date_ymd] => 2024-12-24 23:26:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:26:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:26:17] Production.INFO: count ==1885 [2024-12-24 23:26:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:26:05 - End Time 2024-12-24 23:26:05 [2024-12-24 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095528', 'tblTempUsageDetail_20' ) start [2024-12-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095528', 'tblTempUsageDetail_20' ) end [2024-12-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095528', 'tblTempVendorCDR_20' ) start [2024-12-24 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095528', 'tblTempVendorCDR_20' ) end [2024-12-24 23:26:18] Production.INFO: ProcessCDR(1,14095528,1,1,2) [2024-12-24 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095528', 'tblTempUsageDetail_20' ) start [2024-12-24 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095528', 'tblTempUsageDetail_20' ) end [2024-12-24 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:26:21] Production.INFO: ==12272== Releasing lock... [2024-12-24 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:26:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:27:04 [end_date_ymd] => 2024-12-24 23:27:04 [RateCDR] => 1 ) [2024-12-24 23: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` >= '2024-12-24 20:27:04' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:27:17] Production.INFO: count ==1893 [2024-12-24 23:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:27:04 - End Time 2024-12-24 23:27:04 [2024-12-24 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095533', 'tblTempUsageDetail_20' ) start [2024-12-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095533', 'tblTempUsageDetail_20' ) end [2024-12-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095533', 'tblTempVendorCDR_20' ) start [2024-12-24 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095533', 'tblTempVendorCDR_20' ) end [2024-12-24 23:27:18] Production.INFO: ProcessCDR(1,14095533,1,1,2) [2024-12-24 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095533', 'tblTempUsageDetail_20' ) start [2024-12-24 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095533', 'tblTempUsageDetail_20' ) end [2024-12-24 23:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:27:21] Production.INFO: ==12401== Releasing lock... [2024-12-24 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:27:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:28:05 [end_date_ymd] => 2024-12-24 23:28:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:28:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:28:17] Production.INFO: count ==1900 [2024-12-24 23:28:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:28:05 - End Time 2024-12-24 23:28:05 [2024-12-24 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095538', 'tblTempUsageDetail_20' ) start [2024-12-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095538', 'tblTempUsageDetail_20' ) end [2024-12-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095538', 'tblTempVendorCDR_20' ) start [2024-12-24 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095538', 'tblTempVendorCDR_20' ) end [2024-12-24 23:28:18] Production.INFO: ProcessCDR(1,14095538,1,1,2) [2024-12-24 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095538', 'tblTempUsageDetail_20' ) start [2024-12-24 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095538', 'tblTempUsageDetail_20' ) end [2024-12-24 23:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:28:21] Production.INFO: ==12536== Releasing lock... [2024-12-24 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:28:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-24 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:29:04 [end_date_ymd] => 2024-12-24 23:29:04 [RateCDR] => 1 ) [2024-12-24 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:29:04' and `end` < '2024-12-24 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:29:16] Production.INFO: count ==1904 [2024-12-24 23:29:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:29:04 - End Time 2024-12-24 23:29:04 [2024-12-24 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095543', 'tblTempUsageDetail_20' ) start [2024-12-24 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095543', 'tblTempUsageDetail_20' ) end [2024-12-24 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095543', 'tblTempVendorCDR_20' ) start [2024-12-24 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095543', 'tblTempVendorCDR_20' ) end [2024-12-24 23:29:17] Production.INFO: ProcessCDR(1,14095543,1,1,2) [2024-12-24 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095543', 'tblTempUsageDetail_20' ) start [2024-12-24 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095543', 'tblTempUsageDetail_20' ) end [2024-12-24 23:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:29:20] Production.INFO: ==12666== Releasing lock... [2024-12-24 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:29:20] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:30:05 [end_date_ymd] => 2024-12-24 23:30:05 [RateCDR] => 1 ) [2024-12-24 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:30:05' and `end` < '2024-12-24 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:30:18] Production.INFO: count ==1903 [2024-12-24 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:30:05 - End Time 2024-12-24 23:30:05 [2024-12-24 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095549', 'tblTempUsageDetail_20' ) start [2024-12-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095549', 'tblTempUsageDetail_20' ) end [2024-12-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095549', 'tblTempVendorCDR_20' ) start [2024-12-24 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095549', 'tblTempVendorCDR_20' ) end [2024-12-24 23:30:18] Production.INFO: ProcessCDR(1,14095549,1,1,2) [2024-12-24 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095549', 'tblTempUsageDetail_20' ) start [2024-12-24 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095549', 'tblTempUsageDetail_20' ) end [2024-12-24 23:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:30:22] Production.INFO: ==12798== Releasing lock... [2024-12-24 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:30:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:31:04 [end_date_ymd] => 2024-12-24 23:31:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:31:04' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:31:17] Production.INFO: count ==1929 [2024-12-24 23:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:31:04 - End Time 2024-12-24 23:31:04 [2024-12-24 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095554', 'tblTempUsageDetail_20' ) start [2024-12-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095554', 'tblTempUsageDetail_20' ) end [2024-12-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095554', 'tblTempVendorCDR_20' ) start [2024-12-24 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095554', 'tblTempVendorCDR_20' ) end [2024-12-24 23:31:18] Production.INFO: ProcessCDR(1,14095554,1,1,2) [2024-12-24 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095554', 'tblTempUsageDetail_20' ) start [2024-12-24 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095554', 'tblTempUsageDetail_20' ) end [2024-12-24 23:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:31:21] Production.INFO: ==12937== Releasing lock... [2024-12-24 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:31:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:32:04 [end_date_ymd] => 2024-12-24 23:32:04 [RateCDR] => 1 ) [2024-12-24 23:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:32:04' and `end` < '2024-12-24 23:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:32:18] Production.INFO: count ==1927 [2024-12-24 23:32:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:32:04 - End Time 2024-12-24 23:32:04 [2024-12-24 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095559', 'tblTempUsageDetail_20' ) start [2024-12-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095559', 'tblTempUsageDetail_20' ) end [2024-12-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095559', 'tblTempVendorCDR_20' ) start [2024-12-24 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095559', 'tblTempVendorCDR_20' ) end [2024-12-24 23:32:19] Production.INFO: ProcessCDR(1,14095559,1,1,2) [2024-12-24 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095559', 'tblTempUsageDetail_20' ) start [2024-12-24 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095559', 'tblTempUsageDetail_20' ) end [2024-12-24 23:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:32:24] Production.INFO: ==13108== Releasing lock... [2024-12-24 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:32:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:33:05 [end_date_ymd] => 2024-12-24 23:33:05 [RateCDR] => 1 ) [2024-12-24 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:33:05' and `end` < '2024-12-24 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:33:18] Production.INFO: count ==1922 [2024-12-24 23:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:33:05 - End Time 2024-12-24 23:33:05 [2024-12-24 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095564', 'tblTempUsageDetail_20' ) start [2024-12-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095564', 'tblTempUsageDetail_20' ) end [2024-12-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095564', 'tblTempVendorCDR_20' ) start [2024-12-24 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095564', 'tblTempVendorCDR_20' ) end [2024-12-24 23:33:18] Production.INFO: ProcessCDR(1,14095564,1,1,2) [2024-12-24 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095564', 'tblTempUsageDetail_20' ) start [2024-12-24 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095564', 'tblTempUsageDetail_20' ) end [2024-12-24 23:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:33:21] Production.INFO: ==13242== Releasing lock... [2024-12-24 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:33:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:34:05 [end_date_ymd] => 2024-12-24 23:34:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:34:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:34:19] Production.INFO: count ==1928 [2024-12-24 23:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:34:05 - End Time 2024-12-24 23:34:05 [2024-12-24 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095569', 'tblTempUsageDetail_20' ) start [2024-12-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095569', 'tblTempUsageDetail_20' ) end [2024-12-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095569', 'tblTempVendorCDR_20' ) start [2024-12-24 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095569', 'tblTempVendorCDR_20' ) end [2024-12-24 23:34:19] Production.INFO: ProcessCDR(1,14095569,1,1,2) [2024-12-24 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095569', 'tblTempUsageDetail_20' ) start [2024-12-24 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095569', 'tblTempUsageDetail_20' ) end [2024-12-24 23:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:34:22] Production.INFO: ==13354== Releasing lock... [2024-12-24 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:34:22] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:35:05 [end_date_ymd] => 2024-12-24 23:35:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:35:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:35:18] Production.INFO: count ==1935 [2024-12-24 23:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:35:05 - End Time 2024-12-24 23:35:05 [2024-12-24 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095574', 'tblTempUsageDetail_20' ) start [2024-12-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095574', 'tblTempUsageDetail_20' ) end [2024-12-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095574', 'tblTempVendorCDR_20' ) start [2024-12-24 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095574', 'tblTempVendorCDR_20' ) end [2024-12-24 23:35:18] Production.INFO: ProcessCDR(1,14095574,1,1,2) [2024-12-24 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095574', 'tblTempUsageDetail_20' ) start [2024-12-24 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095574', 'tblTempUsageDetail_20' ) end [2024-12-24 23:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:35:22] Production.INFO: ==13464== Releasing lock... [2024-12-24 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:35:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:36:04 [end_date_ymd] => 2024-12-24 23:36:04 [RateCDR] => 1 ) [2024-12-24 23:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:36:04' and `end` < '2024-12-24 23:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:36:17] Production.INFO: count ==1935 [2024-12-24 23:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:36:04 - End Time 2024-12-24 23:36:04 [2024-12-24 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095579', 'tblTempUsageDetail_20' ) start [2024-12-24 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095579', 'tblTempUsageDetail_20' ) end [2024-12-24 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095579', 'tblTempVendorCDR_20' ) start [2024-12-24 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095579', 'tblTempVendorCDR_20' ) end [2024-12-24 23:36:17] Production.INFO: ProcessCDR(1,14095579,1,1,2) [2024-12-24 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095579', 'tblTempUsageDetail_20' ) start [2024-12-24 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095579', 'tblTempUsageDetail_20' ) end [2024-12-24 23:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:36:20] Production.INFO: ==13586== Releasing lock... [2024-12-24 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:36:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:37:04 [end_date_ymd] => 2024-12-24 23:37:04 [RateCDR] => 1 ) [2024-12-24 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:37:04' and `end` < '2024-12-24 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:37:17] Production.INFO: count ==1930 [2024-12-24 23:37:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:37:04 - End Time 2024-12-24 23:37:04 [2024-12-24 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095584', 'tblTempUsageDetail_20' ) start [2024-12-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095584', 'tblTempUsageDetail_20' ) end [2024-12-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095584', 'tblTempVendorCDR_20' ) start [2024-12-24 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095584', 'tblTempVendorCDR_20' ) end [2024-12-24 23:37:18] Production.INFO: ProcessCDR(1,14095584,1,1,2) [2024-12-24 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095584', 'tblTempUsageDetail_20' ) start [2024-12-24 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095584', 'tblTempUsageDetail_20' ) end [2024-12-24 23:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:37:21] Production.INFO: ==13689== Releasing lock... [2024-12-24 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:37:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:38:04 [end_date_ymd] => 2024-12-24 23:38:04 [RateCDR] => 1 ) [2024-12-24 23: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` >= '2024-12-24 20:38:04' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:38:18] Production.INFO: count ==1929 [2024-12-24 23:38:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:38:04 - End Time 2024-12-24 23:38:04 [2024-12-24 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095589', 'tblTempUsageDetail_20' ) start [2024-12-24 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095589', 'tblTempUsageDetail_20' ) end [2024-12-24 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095589', 'tblTempVendorCDR_20' ) start [2024-12-24 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095589', 'tblTempVendorCDR_20' ) end [2024-12-24 23:38:19] Production.INFO: ProcessCDR(1,14095589,1,1,2) [2024-12-24 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095589', 'tblTempUsageDetail_20' ) start [2024-12-24 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095589', 'tblTempUsageDetail_20' ) end [2024-12-24 23:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:38:22] Production.INFO: ==13768== Releasing lock... [2024-12-24 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:38:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:39:04 [end_date_ymd] => 2024-12-24 23:39:04 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:39:04' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:39:17] Production.INFO: count ==1929 [2024-12-24 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:39:04 - End Time 2024-12-24 23:39:04 [2024-12-24 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095594', 'tblTempUsageDetail_20' ) start [2024-12-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095594', 'tblTempUsageDetail_20' ) end [2024-12-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095594', 'tblTempVendorCDR_20' ) start [2024-12-24 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095594', 'tblTempVendorCDR_20' ) end [2024-12-24 23:39:18] Production.INFO: ProcessCDR(1,14095594,1,1,2) [2024-12-24 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095594', 'tblTempUsageDetail_20' ) start [2024-12-24 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095594', 'tblTempUsageDetail_20' ) end [2024-12-24 23:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:39:21] Production.INFO: ==13846== Releasing lock... [2024-12-24 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:39:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:40:06 [end_date_ymd] => 2024-12-24 23:40:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:40:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:40:18] Production.INFO: count ==1933 [2024-12-24 23:40:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:40:06 - End Time 2024-12-24 23:40:06 [2024-12-24 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095600', 'tblTempUsageDetail_20' ) start [2024-12-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095600', 'tblTempUsageDetail_20' ) end [2024-12-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095600', 'tblTempVendorCDR_20' ) start [2024-12-24 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095600', 'tblTempVendorCDR_20' ) end [2024-12-24 23:40:19] Production.INFO: ProcessCDR(1,14095600,1,1,2) [2024-12-24 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095600', 'tblTempUsageDetail_20' ) start [2024-12-24 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095600', 'tblTempUsageDetail_20' ) end [2024-12-24 23:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:40:22] Production.INFO: ==13925== Releasing lock... [2024-12-24 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:40:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:41:04 [end_date_ymd] => 2024-12-24 23:41:04 [RateCDR] => 1 ) [2024-12-24 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:41:04' and `end` < '2024-12-24 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:41:17] Production.INFO: count ==1934 [2024-12-24 23:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:41:04 - End Time 2024-12-24 23:41:04 [2024-12-24 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095605', 'tblTempUsageDetail_20' ) start [2024-12-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095605', 'tblTempUsageDetail_20' ) end [2024-12-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095605', 'tblTempVendorCDR_20' ) start [2024-12-24 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095605', 'tblTempVendorCDR_20' ) end [2024-12-24 23:41:18] Production.INFO: ProcessCDR(1,14095605,1,1,2) [2024-12-24 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095605', 'tblTempUsageDetail_20' ) start [2024-12-24 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095605', 'tblTempUsageDetail_20' ) end [2024-12-24 23:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:41:21] Production.INFO: ==14006== Releasing lock... [2024-12-24 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:41:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:42:05 [end_date_ymd] => 2024-12-24 23:42:05 [RateCDR] => 1 ) [2024-12-24 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:42:05' and `end` < '2024-12-24 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:42:18] Production.INFO: count ==1937 [2024-12-24 23:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:42:05 - End Time 2024-12-24 23:42:05 [2024-12-24 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095610', 'tblTempUsageDetail_20' ) start [2024-12-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095610', 'tblTempUsageDetail_20' ) end [2024-12-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095610', 'tblTempVendorCDR_20' ) start [2024-12-24 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095610', 'tblTempVendorCDR_20' ) end [2024-12-24 23:42:18] Production.INFO: ProcessCDR(1,14095610,1,1,2) [2024-12-24 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095610', 'tblTempUsageDetail_20' ) start [2024-12-24 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095610', 'tblTempUsageDetail_20' ) end [2024-12-24 23:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:42:22] Production.INFO: ==14087== Releasing lock... [2024-12-24 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:42:22] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:43:04 [end_date_ymd] => 2024-12-24 23:43:04 [RateCDR] => 1 ) [2024-12-24 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:43:04' and `end` < '2024-12-24 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:43:16] Production.INFO: count ==1936 [2024-12-24 23:43:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:43:04 - End Time 2024-12-24 23:43:04 [2024-12-24 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095615', 'tblTempUsageDetail_20' ) start [2024-12-24 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095615', 'tblTempUsageDetail_20' ) end [2024-12-24 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095615', 'tblTempVendorCDR_20' ) start [2024-12-24 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095615', 'tblTempVendorCDR_20' ) end [2024-12-24 23:43:17] Production.INFO: ProcessCDR(1,14095615,1,1,2) [2024-12-24 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095615', 'tblTempUsageDetail_20' ) start [2024-12-24 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095615', 'tblTempUsageDetail_20' ) end [2024-12-24 23:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:43:20] Production.INFO: ==14165== Releasing lock... [2024-12-24 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:43:20] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:44:05 [end_date_ymd] => 2024-12-24 23:44:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:44:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:44:19] Production.INFO: count ==1937 [2024-12-24 23:44:20] Production.ERROR: pbx CDR StartTime 2024-12-24 20:44:05 - End Time 2024-12-24 23:44:05 [2024-12-24 23:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095620', 'tblTempUsageDetail_20' ) start [2024-12-24 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095620', 'tblTempUsageDetail_20' ) end [2024-12-24 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095620', 'tblTempVendorCDR_20' ) start [2024-12-24 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095620', 'tblTempVendorCDR_20' ) end [2024-12-24 23:44:20] Production.INFO: ProcessCDR(1,14095620,1,1,2) [2024-12-24 23:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095620', 'tblTempUsageDetail_20' ) start [2024-12-24 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095620', 'tblTempUsageDetail_20' ) end [2024-12-24 23:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:44:23] Production.INFO: ==14243== Releasing lock... [2024-12-24 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:44:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:45:05 [end_date_ymd] => 2024-12-24 23:45:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:45:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:45:17] Production.INFO: count ==1940 [2024-12-24 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:45:05 - End Time 2024-12-24 23:45:05 [2024-12-24 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095625', 'tblTempUsageDetail_20' ) start [2024-12-24 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095625', 'tblTempUsageDetail_20' ) end [2024-12-24 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095625', 'tblTempVendorCDR_20' ) start [2024-12-24 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095625', 'tblTempVendorCDR_20' ) end [2024-12-24 23:45:18] Production.INFO: ProcessCDR(1,14095625,1,1,2) [2024-12-24 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095625', 'tblTempUsageDetail_20' ) start [2024-12-24 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095625', 'tblTempUsageDetail_20' ) end [2024-12-24 23:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:45:21] Production.INFO: ==14320== Releasing lock... [2024-12-24 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:45:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:46:04 [end_date_ymd] => 2024-12-24 23:46:04 [RateCDR] => 1 ) [2024-12-24 23: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` >= '2024-12-24 20:46:04' and `end` < '2024-12-24 23: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 ,'') [2024-12-24 23:46:17] Production.INFO: count ==1935 [2024-12-24 23:46:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:46:04 - End Time 2024-12-24 23:46:04 [2024-12-24 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095630', 'tblTempUsageDetail_20' ) start [2024-12-24 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095630', 'tblTempUsageDetail_20' ) end [2024-12-24 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095630', 'tblTempVendorCDR_20' ) start [2024-12-24 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095630', 'tblTempVendorCDR_20' ) end [2024-12-24 23:46:17] Production.INFO: ProcessCDR(1,14095630,1,1,2) [2024-12-24 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095630', 'tblTempUsageDetail_20' ) start [2024-12-24 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095630', 'tblTempUsageDetail_20' ) end [2024-12-24 23:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:46:21] Production.INFO: ==14399== Releasing lock... [2024-12-24 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:46:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:47:05 [end_date_ymd] => 2024-12-24 23:47:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:47:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:47:18] Production.INFO: count ==1943 [2024-12-24 23:47:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:47:05 - End Time 2024-12-24 23:47:05 [2024-12-24 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095635', 'tblTempUsageDetail_20' ) start [2024-12-24 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095635', 'tblTempUsageDetail_20' ) end [2024-12-24 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095635', 'tblTempVendorCDR_20' ) start [2024-12-24 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095635', 'tblTempVendorCDR_20' ) end [2024-12-24 23:47:19] Production.INFO: ProcessCDR(1,14095635,1,1,2) [2024-12-24 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095635', 'tblTempUsageDetail_20' ) start [2024-12-24 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095635', 'tblTempUsageDetail_20' ) end [2024-12-24 23:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:47:22] Production.INFO: ==14522== Releasing lock... [2024-12-24 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:47:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-24 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:48:05 [end_date_ymd] => 2024-12-24 23:48:05 [RateCDR] => 1 ) [2024-12-24 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:48:05' and `end` < '2024-12-24 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:48:17] Production.INFO: count ==1936 [2024-12-24 23:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:48:05 - End Time 2024-12-24 23:48:05 [2024-12-24 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095640', 'tblTempUsageDetail_20' ) start [2024-12-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095640', 'tblTempUsageDetail_20' ) end [2024-12-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095640', 'tblTempVendorCDR_20' ) start [2024-12-24 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095640', 'tblTempVendorCDR_20' ) end [2024-12-24 23:48:18] Production.INFO: ProcessCDR(1,14095640,1,1,2) [2024-12-24 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095640', 'tblTempUsageDetail_20' ) start [2024-12-24 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095640', 'tblTempUsageDetail_20' ) end [2024-12-24 23:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:48:21] Production.INFO: ==14605== Releasing lock... [2024-12-24 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:48:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:49:05 [end_date_ymd] => 2024-12-24 23:49:05 [RateCDR] => 1 ) [2024-12-24 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:49:05' and `end` < '2024-12-24 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:49:17] Production.INFO: count ==1936 [2024-12-24 23:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:49:05 - End Time 2024-12-24 23:49:05 [2024-12-24 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095645', 'tblTempUsageDetail_20' ) start [2024-12-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095645', 'tblTempUsageDetail_20' ) end [2024-12-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095645', 'tblTempVendorCDR_20' ) start [2024-12-24 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095645', 'tblTempVendorCDR_20' ) end [2024-12-24 23:49:18] Production.INFO: ProcessCDR(1,14095645,1,1,2) [2024-12-24 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095645', 'tblTempUsageDetail_20' ) start [2024-12-24 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095645', 'tblTempUsageDetail_20' ) end [2024-12-24 23:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:49:22] Production.INFO: ==14690== Releasing lock... [2024-12-24 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:49:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:50:06 [end_date_ymd] => 2024-12-24 23:50:06 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:50:06' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:50:18] Production.INFO: count ==1934 [2024-12-24 23:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:50:06 - End Time 2024-12-24 23:50:06 [2024-12-24 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095650', 'tblTempUsageDetail_20' ) start [2024-12-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095650', 'tblTempUsageDetail_20' ) end [2024-12-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095650', 'tblTempVendorCDR_20' ) start [2024-12-24 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095650', 'tblTempVendorCDR_20' ) end [2024-12-24 23:50:19] Production.INFO: ProcessCDR(1,14095650,1,1,2) [2024-12-24 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095650', 'tblTempUsageDetail_20' ) start [2024-12-24 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095650', 'tblTempUsageDetail_20' ) end [2024-12-24 23:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:50:23] Production.INFO: ==14770== Releasing lock... [2024-12-24 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:50:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:51:04 [end_date_ymd] => 2024-12-24 23:51:04 [RateCDR] => 1 ) [2024-12-24 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:51:04' and `end` < '2024-12-24 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:51:17] Production.INFO: count ==1928 [2024-12-24 23:51:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:51:04 - End Time 2024-12-24 23:51:04 [2024-12-24 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095656', 'tblTempUsageDetail_20' ) start [2024-12-24 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095656', 'tblTempUsageDetail_20' ) end [2024-12-24 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095656', 'tblTempVendorCDR_20' ) start [2024-12-24 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095656', 'tblTempVendorCDR_20' ) end [2024-12-24 23:51:17] Production.INFO: ProcessCDR(1,14095656,1,1,2) [2024-12-24 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095656', 'tblTempUsageDetail_20' ) start [2024-12-24 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095656', 'tblTempUsageDetail_20' ) end [2024-12-24 23:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:51:21] Production.INFO: ==14851== Releasing lock... [2024-12-24 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:51:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:52:05 [end_date_ymd] => 2024-12-24 23:52:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:52:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:52:17] Production.INFO: count ==1928 [2024-12-24 23:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:52:05 - End Time 2024-12-24 23:52:05 [2024-12-24 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095661', 'tblTempUsageDetail_20' ) start [2024-12-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095661', 'tblTempUsageDetail_20' ) end [2024-12-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095661', 'tblTempVendorCDR_20' ) start [2024-12-24 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095661', 'tblTempVendorCDR_20' ) end [2024-12-24 23:52:18] Production.INFO: ProcessCDR(1,14095661,1,1,2) [2024-12-24 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095661', 'tblTempUsageDetail_20' ) start [2024-12-24 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095661', 'tblTempUsageDetail_20' ) end [2024-12-24 23:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:52:21] Production.INFO: ==14928== Releasing lock... [2024-12-24 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:52:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:53:05 [end_date_ymd] => 2024-12-24 23:53:05 [RateCDR] => 1 ) [2024-12-24 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:53:05' and `end` < '2024-12-24 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:53:17] Production.INFO: count ==1925 [2024-12-24 23:53:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:53:05 - End Time 2024-12-24 23:53:05 [2024-12-24 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095666', 'tblTempUsageDetail_20' ) start [2024-12-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095666', 'tblTempUsageDetail_20' ) end [2024-12-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095666', 'tblTempVendorCDR_20' ) start [2024-12-24 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095666', 'tblTempVendorCDR_20' ) end [2024-12-24 23:53:18] Production.INFO: ProcessCDR(1,14095666,1,1,2) [2024-12-24 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095666', 'tblTempUsageDetail_20' ) start [2024-12-24 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095666', 'tblTempUsageDetail_20' ) end [2024-12-24 23:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:53:21] Production.INFO: ==15006== Releasing lock... [2024-12-24 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:53:21] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:54:05 [end_date_ymd] => 2024-12-24 23:54:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:54:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:54:17] Production.INFO: count ==1927 [2024-12-24 23:54:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:54:05 - End Time 2024-12-24 23:54:05 [2024-12-24 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095671', 'tblTempUsageDetail_20' ) start [2024-12-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095671', 'tblTempUsageDetail_20' ) end [2024-12-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095671', 'tblTempVendorCDR_20' ) start [2024-12-24 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095671', 'tblTempVendorCDR_20' ) end [2024-12-24 23:54:18] Production.INFO: ProcessCDR(1,14095671,1,1,2) [2024-12-24 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095671', 'tblTempUsageDetail_20' ) start [2024-12-24 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095671', 'tblTempUsageDetail_20' ) end [2024-12-24 23:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:54:21] Production.INFO: ==15084== Releasing lock... [2024-12-24 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:54:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-24 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:55:05 [end_date_ymd] => 2024-12-24 23:55:05 [RateCDR] => 1 ) [2024-12-24 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:55:05' and `end` < '2024-12-24 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:55:18] Production.INFO: count ==1929 [2024-12-24 23:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:55:05 - End Time 2024-12-24 23:55:05 [2024-12-24 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095676', 'tblTempUsageDetail_20' ) start [2024-12-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095676', 'tblTempUsageDetail_20' ) end [2024-12-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095676', 'tblTempVendorCDR_20' ) start [2024-12-24 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095676', 'tblTempVendorCDR_20' ) end [2024-12-24 23:55:18] Production.INFO: ProcessCDR(1,14095676,1,1,2) [2024-12-24 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095676', 'tblTempUsageDetail_20' ) start [2024-12-24 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095676', 'tblTempUsageDetail_20' ) end [2024-12-24 23:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:55:22] Production.INFO: ==15166== Releasing lock... [2024-12-24 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:55:22] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:56:05 [end_date_ymd] => 2024-12-24 23:56:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:56:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:56:18] Production.INFO: count ==1935 [2024-12-24 23:56:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:56:05 - End Time 2024-12-24 23:56:05 [2024-12-24 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095681', 'tblTempUsageDetail_20' ) start [2024-12-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095681', 'tblTempUsageDetail_20' ) end [2024-12-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095681', 'tblTempVendorCDR_20' ) start [2024-12-24 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095681', 'tblTempVendorCDR_20' ) end [2024-12-24 23:56:18] Production.INFO: ProcessCDR(1,14095681,1,1,2) [2024-12-24 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095681', 'tblTempUsageDetail_20' ) start [2024-12-24 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095681', 'tblTempUsageDetail_20' ) end [2024-12-24 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:56:22] Production.INFO: ==15246== Releasing lock... [2024-12-24 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:56:22] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:57:05 [end_date_ymd] => 2024-12-24 23:57:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:57:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:57:18] Production.INFO: count ==1942 [2024-12-24 23:57:19] Production.ERROR: pbx CDR StartTime 2024-12-24 20:57:05 - End Time 2024-12-24 23:57:05 [2024-12-24 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095686', 'tblTempUsageDetail_20' ) start [2024-12-24 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095686', 'tblTempUsageDetail_20' ) end [2024-12-24 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095686', 'tblTempVendorCDR_20' ) start [2024-12-24 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095686', 'tblTempVendorCDR_20' ) end [2024-12-24 23:57:19] Production.INFO: ProcessCDR(1,14095686,1,1,2) [2024-12-24 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095686', 'tblTempUsageDetail_20' ) start [2024-12-24 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095686', 'tblTempUsageDetail_20' ) end [2024-12-24 23:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:57:23] Production.INFO: ==15325== Releasing lock... [2024-12-24 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:57:23] Production.INFO: 43 MB #Memory Used# [2024-12-24 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:58:05 [end_date_ymd] => 2024-12-24 23:58:05 [RateCDR] => 1 ) [2024-12-24 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` >= '2024-12-24 20:58:05' and `end` < '2024-12-24 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 ,'') [2024-12-24 23:58:17] Production.INFO: count ==1941 [2024-12-24 23:58:17] Production.ERROR: pbx CDR StartTime 2024-12-24 20:58:05 - End Time 2024-12-24 23:58:05 [2024-12-24 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095691', 'tblTempUsageDetail_20' ) start [2024-12-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095691', 'tblTempUsageDetail_20' ) end [2024-12-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095691', 'tblTempVendorCDR_20' ) start [2024-12-24 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095691', 'tblTempVendorCDR_20' ) end [2024-12-24 23:58:18] Production.INFO: ProcessCDR(1,14095691,1,1,2) [2024-12-24 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095691', 'tblTempUsageDetail_20' ) start [2024-12-24 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095691', 'tblTempUsageDetail_20' ) end [2024-12-24 23:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:58:22] Production.INFO: ==15404== Releasing lock... [2024-12-24 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:58:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-24 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 20:59:05 [end_date_ymd] => 2024-12-24 23:59:05 [RateCDR] => 1 ) [2024-12-24 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 20:59:05' and `end` < '2024-12-24 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-24 23:59:18] Production.INFO: count ==1941 [2024-12-24 23:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 20:59:05 - End Time 2024-12-24 23:59:05 [2024-12-24 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095696', 'tblTempUsageDetail_20' ) start [2024-12-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095696', 'tblTempUsageDetail_20' ) end [2024-12-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095696', 'tblTempVendorCDR_20' ) start [2024-12-24 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095696', 'tblTempVendorCDR_20' ) end [2024-12-24 23:59:18] Production.INFO: ProcessCDR(1,14095696,1,1,2) [2024-12-24 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-24 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095696', 'tblTempUsageDetail_20' ) start [2024-12-24 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095696', 'tblTempUsageDetail_20' ) end [2024-12-24 23:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-24 23:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-24 23:59:21] Production.INFO: ==15481== Releasing lock... [2024-12-24 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-24 23:59:21] Production.INFO: 43.25 MB #Memory Used#